diff --git a/python/sglang/srt/models/gemma3_causal.py b/python/sglang/srt/models/gemma3_causal.py index 2aab93125..958b90db0 100644 --- a/python/sglang/srt/models/gemma3_causal.py +++ b/python/sglang/srt/models/gemma3_causal.py @@ -578,8 +578,9 @@ class Gemma3TextModel(PreTrainedModel): global_config = copy.deepcopy(config) global_config.rope_parameters = { - "rope_type": "default", "rope_theta": global_theta, + "factor": config.rope_parameters["full_attention"]["factor"], + "rope_type": "linear", } self.rotary_emb = Gemma3RotaryEmbedding(config=global_config) self.gradient_checkpointing = False