You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Split qwen3_ssm/trait_layer.rs below the 500-LoC cap #18
Tracking issue required by the file-size-cap allow-list policy (added in PR #17).
crates/spark-model/src/layers/qwen3_ssm/trait_layer.rs is 670 LoC on feat/qwen4exp-serve. It is the single impl TransformerLayer for Qwen3SsmLayer block: every method body already lives in a trait_*.rs sibling as an *_inner fn, so the remaining LoC is trait-mandated signatures plus one-call delegation — and Rust does not allow one trait impl to span files.
Candidate reductions when someone owns this properly:
collapse multi-line arg-forwarding via a macro (delegate!-style) — saves ~150 LoC but hides signatures;
narrow the TransformerLayer trait itself (the tracked follow-up on traits/model.rs / transformer_layer.rs — same disease, same cure): pulling the SSM-prefill-phase methods into a sibling supertrait would let this impl split legitimately.
Activity
chore: clear the 500-LoC file-size gate