logan-vegna-shopify commited on
Commit
d92fdeb
·
verified ·
1 Parent(s): 8ef52d1

Extend context to 262144 with YaRN rope scaling

Browse files

Extend max_position_embeddings from 128K to 262144 (256K) using YaRN rope scaling (factor=2.05). This enables vLLM to serve the model with longer context windows.

Files changed (1) hide show
  1. config.json +7 -2
config.json CHANGED
@@ -52,7 +52,7 @@
52
  "full_attention",
53
  "conv"
54
  ],
55
- "max_position_embeddings": 128000,
56
  "model_type": "lfm2_moe",
57
  "moe_intermediate_size": 1536,
58
  "norm_eps": 1e-05,
@@ -72,5 +72,10 @@
72
  "transformers_version": "5.0.0rc1",
73
  "use_cache": true,
74
  "use_expert_bias": true,
75
- "vocab_size": 65536
 
 
 
 
 
76
  }
 
52
  "full_attention",
53
  "conv"
54
  ],
55
+ "max_position_embeddings": 262144,
56
  "model_type": "lfm2_moe",
57
  "moe_intermediate_size": 1536,
58
  "norm_eps": 1e-05,
 
72
  "transformers_version": "5.0.0rc1",
73
  "use_cache": true,
74
  "use_expert_bias": true,
75
+ "vocab_size": 65536,
76
+ "rope_scaling": {
77
+ "rope_type": "yarn",
78
+ "factor": 2.05,
79
+ "original_max_position_embeddings": 128000
80
+ }
81
  }