Skip to content

Add Qwen3.5/3.6 model families#1514

Open
YunchaoYang wants to merge 4 commits into
mainfrom
yy/qwen35-pr
Open

Add Qwen3.5/3.6 model families#1514
YunchaoYang wants to merge 4 commits into
mainfrom
yy/qwen35-pr

Conversation

@YunchaoYang

@YunchaoYang YunchaoYang commented May 27, 2026

Copy link
Copy Markdown
Contributor

What does this PR do? Please describe:
A summary of the change or the issue that is fixed.

Fixes #{issue number}

Does your PR introduce any breaking changes? If yes, please list them:
List of all backwards-incompatible changes.

Check list:

  • Was the content of this PR discussed and approved via a GitHub issue? (no need for typos or documentation improvements)
  • Did you read the contributor guideline?
  • Did you make sure that your PR does only one thing instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests?
  • Did you verify new and existing tests pass locally with your changes?
  • Did you update the CHANGELOG? (no need for typos, documentation, or minor internal changes)

yunchaoyang1 user added 2 commits May 27, 2026 20:45
Implement the Qwen 3.5 model family in fairseq2 with hybrid
GatedDeltaNet linear attention (75%) + full attention (25%)
architecture. Includes:

- GatedDeltaNet module with chunked/recurrent delta rule kernels,
  causal conv1d, and fused PyTorch fallbacks
- Qwen35Attention with partial RoPE, QK-norm, and output gating
- Qwen35DecoderLayer supporting both full and linear attention types
- Top-K MoE routing with shared experts for MoE variants
- Bidirectional HuggingFace state dict conversion with RMSNorm 1+w
  convention handling
- Asset cards for all model sizes (0.8B, 2B, 9B, 27B, MoE 35B-A3B)
- 42 unit tests covering all modules and interop
- Integration test for HF logit parity (Qwen3.5-0.8B)
- SFT and pretraining recipe configs
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 27, 2026
yunchaoyang1 user added 2 commits May 27, 2026 20:57
Merge 5 separate test files (test_gated_delta_net, test_qwen35_attention,
test_qwen35_decoder_layer, test_qwen35_interop, test_qwen35_moe) into one
test_qwen35.py with 19 focused tests covering all modules.
@YunchaoYang YunchaoYang changed the title Add Qwen3.5 model families Add Qwen3.5/3.6 model families May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant