Add YaRN rope scaling for 1M context

#2
Files changed (1) hide show
  1. config.json +8 -0
config.json CHANGED
@@ -202,5 +202,13 @@
202
  "model.layers.35.attention.g_proj",
203
  "model.layers.41.attention.g_proj"
204
  ]
 
 
 
 
 
 
 
 
205
  }
206
  }
 
202
  "model.layers.35.attention.g_proj",
203
  "model.layers.41.attention.g_proj"
204
  ]
205
+ },
206
+ "max_position_embeddings": 1048576,
207
+ "rope_scaling": {
208
+ "rope_type": "yarn",
209
+ "factor": 4.0,
210
+ "original_max_position_embeddings": 262144,
211
+ "partial_rotary_factor": 0.5,
212
+ "rope_theta": 6000000
213
  }
214
  }