-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmodel_dict.py
127 lines (119 loc) · 3.05 KB
/
model_dict.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
CACHE_DIR_BASE = "./model_weights"
MODEL_DICT_LLMs = {
### llama2 model
"llama2_7b": {
"model_id": "meta-llama/Llama-2-7b-hf",
"cache_dir": CACHE_DIR_BASE
},
"llama2_13b": {
"model_id": "meta-llama/Llama-2-13b-hf",
"cache_dir": CACHE_DIR_BASE
},
"llama2_70b": {
"model_id": "meta-llama/Llama-2-70b-hf",
"cache_dir": CACHE_DIR_BASE
},
### llama2 chat model
"llama2_7b_chat": {
"model_id": "meta-llama/Llama-2-7b-chat-hf",
"cache_dir": CACHE_DIR_BASE
},
"llama2_13b_chat": {
"model_id": "meta-llama/Llama-2-13b-chat-hf",
"cache_dir": CACHE_DIR_BASE
},
"llama2_70b_chat": {
"model_id": "meta-llama/Llama-2-70b-chat-hf",
"cache_dir": CACHE_DIR_BASE
},
### mistral model
"mistral_7b": {
"model_id": "mistralai/Mistral-7B-v0.1",
"cache_dir": CACHE_DIR_BASE,
},
"mistral_moe": {
"model_id": "mistralai/Mixtral-8x7B-v0.1",
"cache_dir": CACHE_DIR_BASE,
},
"mistral_7b_instruct":{
"model_id": "mistralai/Mistral-7B-Instruct-v0.2",
"cache_dir": CACHE_DIR_BASE,
},
"mistral_moe_instruct": {
"model_id": "mistralai/Mixtral-8x7B-Instruct-v0.1",
"cache_dir": CACHE_DIR_BASE,
},
### phi-2
"phi-2": {
"model_id": "microsoft/phi-2",
"cache_dir": CACHE_DIR_BASE,
},
### falcon model
"falcon_7b": {
"model_id": "tiiuae/falcon-7b",
"cache_dir": CACHE_DIR_BASE,
},
"falcon_40b": {
"model_id": "tiiuae/falcon-40b",
"cache_dir": CACHE_DIR_BASE,
},
### mpt model
"mpt_7b": {
"model_id": "mosaicml/mpt-7b",
"cache_dir": CACHE_DIR_BASE,
},
"mpt_30b": {
"model_id": "mosaicml/mpt-30b",
"cache_dir": CACHE_DIR_BASE,
},
### opt model
"opt_125m": {
"model_id": "facebook/opt-125m",
"cache_dir": CACHE_DIR_BASE,
},
"opt_350m": {
"model_id": "facebook/opt-350m",
"cache_dir": CACHE_DIR_BASE,
},
"opt_1.3b": {
"model_id": "facebook/opt-1.3b",
"cache_dir": CACHE_DIR_BASE,
},
"opt_2.7b": {
"model_id": "facebook/opt-2.7b",
"cache_dir": CACHE_DIR_BASE,
},
"opt_7b": {
"model_id": "facebook/opt-6.7b",
"cache_dir": CACHE_DIR_BASE,
},
"opt_13b": {
"model_id": "facebook/opt-13b",
"cache_dir": CACHE_DIR_BASE,
},
"opt_30b": {
"model_id": "facebook/opt-30b",
"cache_dir": CACHE_DIR_BASE,
},
"opt_66b": {
"model_id": "facebook/opt-66b",
"cache_dir": CACHE_DIR_BASE,
},
### gpt2 model
"gpt2": {
"model_id": "gpt2",
"cache_dir": CACHE_DIR_BASE
},
"gpt2_medium": {
"model_id": "gpt2-medium",
"cache_dir": CACHE_DIR_BASE
},
"gpt2_large": {
"model_id": "gpt2-large",
"cache_dir": CACHE_DIR_BASE
},
"gpt2_xl": {
"model_id": "gpt2-xl",
"cache_dir": CACHE_DIR_BASE
},
}