Add YaRN rope scaling for 1M context
#2
by JustinTong - opened
Add YaRN rope scaling so the checkpoint serves a 1M-token context:
max_position_embeddings: 1048576rope_scaling: YaRN, factor 4 over the 262,144-token window
With these in config.json, SGLang (https://github.com/sgl-project/sglang/pull/52593) resolves the 1,048,576-token context for the model and its MTP draft with no launch flags. Measured with this configuration: single-needle retrieval at 199,998 / 399,940 / 900,100 prompt tokens, and GSM8K 97.12% on 2x B200 (TP2) and 96.97% on 4x GB300 (TP4).