Fariddvp commited on
Commit
91a26ac
·
verified ·
1 Parent(s): 5b5955f

Update models.py

Browse files
Files changed (1) hide show
  1. models.py +1 -1
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(