Spaces:
Runtime error
Runtime error
Update models.py
Browse files
models.py
CHANGED
@@ -135,7 +135,7 @@ login(token=hf_api_key)
|
|
135 |
|
136 |
model_id = "meta-llama/Meta-Llama-3.1-8B-Instruct"
|
137 |
model_config = transformers.LlamaConfig.from_pretrained(model_id)
|
138 |
-
model_config.rope_scaling = {"type": "llama3", "factor": 8.0}
|
139 |
model = transformers.AutoModelForCausalLM.from_pretrained(model_id, config=model_config)
|
140 |
|
141 |
pipeline = transformers.pipeline(
|
|
|
135 |
|
136 |
model_id = "meta-llama/Meta-Llama-3.1-8B-Instruct"
|
137 |
model_config = transformers.LlamaConfig.from_pretrained(model_id)
|
138 |
+
model_config.rope_scaling = {"type": "llama3", "factor": 8.0,'low_freq_factor': 1.0, 'high_freq_factor': 4.0, 'original_max_position_embeddings': 8192}
|
139 |
model = transformers.AutoModelForCausalLM.from_pretrained(model_id, config=model_config)
|
140 |
|
141 |
pipeline = transformers.pipeline(
|