Skip to content

Normalize Qwen3.5 GDN LoRA target aliases - #100

Merged
kailash109 merged 1 commit into
spindle-sglang-v0.5.23from
codex/qwen35-native-lora-aliases
Nov 17, 2026
Merged

kailash109 merged 1 commit into
spindle-sglang-v0.5.23from
codex/qwen35-native-lora-aliases

Conversation

@kailash109

Copy link
Copy Markdown

Summary

Qwen3.5 native LoRA selects HF GDN targets in_proj_qkv and in_proj_z, then exports independent in_proj_q/k/v/z adapters. The model does not map either target spelling to SGLang's in_proj_qkvz buffer, so the sampler fails during startup with get_hidden_dim not implemented for in_proj_qkv.

Define the missing model target aliases and expose them on the conditional-generation wrappers. The existing normalization and four-projection adapter loader then use the same fused buffer while preserving independent adapter factors. Add coverage for trainer and adapter names across all four dense/MoE model wrappers.

Validation

  • Isolated CPU normalization check: eight model/target combinations fail on the parent and pass with this change.
  • GPU end to end through Spindle's Miles command backend and the stock Tinker SDK: Qwen3.5-4B and Qwen3.5-9B-Base, ranks 8 and 16, five arithmetic RL updates per client, optimizer restore, adapter publication and sampling. Every selected GDN Q/K/V/Z and output B tensor is nonzero in all 24 linear-attention layers at both ranks.
  • Full unit module not run locally; it imports the GPU runtime. MoE serving was not run.

The GPU validation applied this source patch to Spindle's pinned SGLang v0.5.23 image. Related integration: modal-labs/spindle#312.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant