Niansuh commited on
Commit
c90d65f
·
verified ·
1 Parent(s): abbb658

Update constants/models.py

Browse files
Files changed (1) hide show
  1. constants/models.py +11 -0
constants/models.py CHANGED
@@ -1,6 +1,7 @@
1
  MODEL_MAP = {
2
  "mixtral-8x7b": "mistralai/Mixtral-8x7B-Instruct-v0.1", # [Recommended]
3
  "nous-mixtral-8x7b": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
 
4
  "mistral-7b": "mistralai/Mistral-7B-Instruct-v0.2",
5
  "yi-1.5-34b": "01-ai/Yi-1.5-34B-Chat",
6
  "gemma-7b": "google/gemma-1.1-7b-it",
@@ -20,6 +21,8 @@ STOP_SEQUENCES_MAP = {
20
  "mixtral-8x7b": "</s>",
21
  # https://huggingface.co/NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO/blob/main/tokenizer_config.json#L50
22
  "nous-mixtral-8x7b": "<|im_end|>",
 
 
23
  # https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2/blob/main/tokenizer_config.json#L33
24
  "mistral-7b": "</s>",
25
  # https://huggingface.co/01-ai/Yi-1.5-34B-Chat/blob/main/tokenizer_config.json#L42
@@ -33,6 +36,7 @@ STOP_SEQUENCES_MAP = {
33
  TOKEN_LIMIT_MAP = {
34
  "mixtral-8x7b": 32768,
35
  "nous-mixtral-8x7b": 32768,
 
36
  "mistral-7b": 32768,
37
  "yi-1.5-34b": 4096,
38
  "gemma-7b": 8192,
@@ -62,6 +66,13 @@ AVAILABLE_MODELS_DICTS = [
62
  "created": 1700000000,
63
  "owned_by": "NousResearch",
64
  },
 
 
 
 
 
 
 
65
  {
66
  "id": "mistral-7b",
67
  "description": "[mistralai/Mistral-7B-Instruct-v0.2]: https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2",
 
1
  MODEL_MAP = {
2
  "mixtral-8x7b": "mistralai/Mixtral-8x7B-Instruct-v0.1", # [Recommended]
3
  "nous-mixtral-8x7b": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
4
+ "Llama-3.1-70B-Instruct": "meta-llama/Meta-Llama-3.1-70B-Instruct",
5
  "mistral-7b": "mistralai/Mistral-7B-Instruct-v0.2",
6
  "yi-1.5-34b": "01-ai/Yi-1.5-34B-Chat",
7
  "gemma-7b": "google/gemma-1.1-7b-it",
 
21
  "mixtral-8x7b": "</s>",
22
  # https://huggingface.co/NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO/blob/main/tokenizer_config.json#L50
23
  "nous-mixtral-8x7b": "<|im_end|>",
24
+ # https://huggingface.co/meta-llama/Meta-Llama-3.1-70B-Instruct/blob/1d54af340dc8906a2d21146191a9c184c35e47bd/tokenizer_config.json#L2055
25
+ "Llama-3.1-70B-Instruct": "<|eot_id|>",
26
  # https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2/blob/main/tokenizer_config.json#L33
27
  "mistral-7b": "</s>",
28
  # https://huggingface.co/01-ai/Yi-1.5-34B-Chat/blob/main/tokenizer_config.json#L42
 
36
  TOKEN_LIMIT_MAP = {
37
  "mixtral-8x7b": 32768,
38
  "nous-mixtral-8x7b": 32768,
39
+ "Llama-3.1-70B-Instruct": 32768,
40
  "mistral-7b": 32768,
41
  "yi-1.5-34b": 4096,
42
  "gemma-7b": 8192,
 
66
  "created": 1700000000,
67
  "owned_by": "NousResearch",
68
  },
69
+ {
70
+ "id": "Llama-3.1-70B-Instruct",
71
+ "description": "[meta-llama/Llama-3.1-70B-Instruct]: https://huggingface.co/meta-llama/Llama-3.1-70B-Instruct",
72
+ "object": "model",
73
+ "created": 1700000000,
74
+ "owned_by": "mistralai",
75
+ },
76
  {
77
  "id": "mistral-7b",
78
  "description": "[mistralai/Mistral-7B-Instruct-v0.2]: https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2",