Skip to content

Commit

Permalink
Update tokenization_moss.py
Browse files Browse the repository at this point in the history
  • Loading branch information
txsun1997 authored Apr 20, 2023
1 parent e4bee35 commit a1b428e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions models/tokenization_moss.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@

PRETRAINED_VOCAB_FILES_MAP = {
"vocab_file": {
"fnlp/moss-16B-base": "https://huggingface.co/fnlp/moss-16B-base/resolve/main/vocab.json",
"fnlp/moss-16B-sft": "https://huggingface.co/fnlp/moss-16B-sft/resolve/main/vocab.json",
"fnlp/moss-16B-sft-plugin": "https://huggingface.co/fnlp/moss-16B-sft-plugin/resolve/main/vocab.json",
"fnlp/moss-moon-003-base": "https://huggingface.co/fnlp/moss-moon-003-base/resolve/main/vocab.json",
"fnlp/moss-moon-003-sft": "https://huggingface.co/fnlp/moss-moon-003-sft/resolve/main/vocab.json",
"fnlp/moss-moon-003-sft-plugin": "https://huggingface.co/fnlp/moss-moon-003-sft-plugin/resolve/main/vocab.json",
},
"merges_file": {
"fnlp/moss-16B-base": "https://huggingface.co/fnlp/moss-16B-base/resolve/main/merge.txt",
"fnlp/moss-16B-sft": "https://huggingface.co/fnlp/moss-16B-sft/resolve/main/merge.txt",
"fnlp/moss-16B-sft-plugin": "https://huggingface.co/fnlp/moss-16B-sft-plugin/resolve/main/merge.txt",
"fnlp/moss-moon-003-base": "https://huggingface.co/fnlp/moss-moon-003-base/resolve/main/merge.txt",
"fnlp/moss-moon-003-sft": "https://huggingface.co/fnlp/moss-moon-003-sft/resolve/main/merge.txt",
"fnlp/moss-moon-003-sft-plugin": "https://huggingface.co/fnlp/moss-moon-003-sft-plugin/resolve/main/merge.txt",
},
}

PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES = {
"fnlp/moss-16B-base": 2048,
"fnlp/moss-16B-sft": 2048,
"fnlp/moss-16B-sft-plugin": 2048,
"fnlp/moss-moon-003-base": 2048,
"fnlp/moss-moon-003-sft": 2048,
"fnlp/moss-moon-003-sft-plugin": 2048,
}


Expand Down Expand Up @@ -365,4 +365,4 @@ def find_re(string, pattern, start_pos):
if len(terminals_pos) > 0:
return completion[: min(terminals_pos)]
else:
return completion
return completion

0 comments on commit a1b428e

Please sign in to comment.