aapot
commited on
Commit
·
1219966
1
Parent(s):
b0df802
Fix
Browse files
EasyLM/models/llama/convert_easylm_to_hf.py
CHANGED
|
@@ -227,6 +227,7 @@ def write_model(loaded, model_path, model_size):
|
|
| 227 |
write_json(index_dict, os.path.join(tmp_model_path, "pytorch_model.bin.index.json"))
|
| 228 |
|
| 229 |
config = LlamaConfig(
|
|
|
|
| 230 |
hidden_size=dim,
|
| 231 |
intermediate_size=params["intermediate_size"],
|
| 232 |
num_attention_heads=params["n_heads"],
|
|
|
|
| 227 |
write_json(index_dict, os.path.join(tmp_model_path, "pytorch_model.bin.index.json"))
|
| 228 |
|
| 229 |
config = LlamaConfig(
|
| 230 |
+
vocab_size=params["vocab_size"],
|
| 231 |
hidden_size=dim,
|
| 232 |
intermediate_size=params["intermediate_size"],
|
| 233 |
num_attention_heads=params["n_heads"],
|