Skip to content

Commit

Permalink
Merge pull request #380 from princepride/main
Browse files Browse the repository at this point in the history
Change Llama tokenizer from LlamaTokenizer to AutoTokenizer
  • Loading branch information
shibing624 authored May 31, 2024
2 parents 6531cb9 + f2cf523 commit d0b487e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion orpo_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
MODEL_CLASSES = {
"bloom": (AutoConfig, BloomForCausalLM, BloomTokenizerFast),
"chatglm": (AutoConfig, AutoModel, AutoTokenizer),
"llama": (AutoConfig, LlamaForCausalLM, LlamaTokenizer),
"llama": (AutoConfig, LlamaForCausalLM, AutoTokenizer),
"baichuan": (AutoConfig, AutoModelForCausalLM, AutoTokenizer),
"auto": (AutoConfig, AutoModelForCausalLM, AutoTokenizer),
}
Expand Down
2 changes: 1 addition & 1 deletion ppo_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
MODEL_CLASSES = {
"bloom": (AutoConfig, BloomForCausalLM, BloomTokenizerFast),
"chatglm": (AutoConfig, AutoModel, AutoTokenizer),
"llama": (AutoConfig, LlamaForCausalLM, LlamaTokenizer),
"llama": (AutoConfig, LlamaForCausalLM, AutoTokenizer),
"baichuan": (AutoConfig, AutoModelForCausalLM, AutoTokenizer),
"auto": (AutoConfig, AutoModelForCausalLM, AutoTokenizer),
}
Expand Down
2 changes: 1 addition & 1 deletion pretraining.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
MODEL_CLASSES = {
"bloom": (AutoConfig, BloomForCausalLM, BloomTokenizerFast),
"chatglm": (AutoConfig, AutoModel, AutoTokenizer),
"llama": (AutoConfig, LlamaForCausalLM, LlamaTokenizer),
"llama": (AutoConfig, LlamaForCausalLM, AutoTokenizer),
"baichuan": (AutoConfig, AutoModelForCausalLM, AutoTokenizer),
"auto": (AutoConfig, AutoModelForCausalLM, AutoTokenizer),
}
Expand Down
2 changes: 1 addition & 1 deletion supervised_finetuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
MODEL_CLASSES = {
"bloom": (AutoConfig, BloomForCausalLM, BloomTokenizerFast),
"chatglm": (AutoConfig, AutoModel, AutoTokenizer),
"llama": (AutoConfig, LlamaForCausalLM, LlamaTokenizer),
"llama": (AutoConfig, LlamaForCausalLM, AutoTokenizer),
"baichuan": (AutoConfig, AutoModelForCausalLM, AutoTokenizer),
"auto": (AutoConfig, AutoModelForCausalLM, AutoTokenizer),
}
Expand Down

0 comments on commit d0b487e

Please sign in to comment.