lint : fix whitespaces
This commit is contained in:
parent
06d3e693db
commit
c56e19db4b
2 changed files with 3 additions and 3 deletions
|
@ -1315,7 +1315,7 @@ class PersimmonModel(Model):
|
||||||
@Model.register("LlamaForCausalLM")
|
@Model.register("LlamaForCausalLM")
|
||||||
class DeepseekCoderModel(Model):
|
class DeepseekCoderModel(Model):
|
||||||
model_arch = gguf.MODEL_ARCH.LLAMA
|
model_arch = gguf.MODEL_ARCH.LLAMA
|
||||||
|
|
||||||
def set_gguf_parameters(self):
|
def set_gguf_parameters(self):
|
||||||
super().set_gguf_parameters()
|
super().set_gguf_parameters()
|
||||||
head_count = self.hparams["num_attention_heads"]
|
head_count = self.hparams["num_attention_heads"]
|
||||||
|
|
|
@ -4247,7 +4247,7 @@ static void llm_load_vocab(
|
||||||
vocab.type = LLAMA_VOCAB_TYPE_DEEPSEEKCODER;
|
vocab.type = LLAMA_VOCAB_TYPE_DEEPSEEKCODER;
|
||||||
} else if (tokenizer_name == "deepseek_llm") {
|
} else if (tokenizer_name == "deepseek_llm") {
|
||||||
vocab.type = LLAMA_VOCAB_TYPE_DEEPSEEKLLM;
|
vocab.type = LLAMA_VOCAB_TYPE_DEEPSEEKLLM;
|
||||||
} else {
|
} else {
|
||||||
LLAMA_LOG_WARN("%s: unknown tokenizer: '%s'", __func__, tokenizer_name.c_str());
|
LLAMA_LOG_WARN("%s: unknown tokenizer: '%s'", __func__, tokenizer_name.c_str());
|
||||||
LLAMA_LOG_WARN("%s: using default tokenizer: 'llama'", __func__);
|
LLAMA_LOG_WARN("%s: using default tokenizer: 'llama'", __func__);
|
||||||
vocab.type = LLAMA_VOCAB_TYPE_SPM;
|
vocab.type = LLAMA_VOCAB_TYPE_SPM;
|
||||||
|
@ -11812,7 +11812,7 @@ static llama_token llama_byte_to_token(const llama_vocab & vocab, uint8_t ch) {
|
||||||
return vocab.token_to_id.at(buf2);
|
return vocab.token_to_id.at(buf2);
|
||||||
}
|
}
|
||||||
case LLAMA_VOCAB_TYPE_WPM:
|
case LLAMA_VOCAB_TYPE_WPM:
|
||||||
case LLAMA_VOCAB_TYPE_DEEPSEEKCODER:
|
case LLAMA_VOCAB_TYPE_DEEPSEEKCODER:
|
||||||
case LLAMA_VOCAB_TYPE_BPE: {
|
case LLAMA_VOCAB_TYPE_BPE: {
|
||||||
return vocab.token_to_id.at(unicode_byte_to_utf8(ch));
|
return vocab.token_to_id.at(unicode_byte_to_utf8(ch));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue