this file is generated by Qwen3.8-27B under human supervision

ๆจกๅž‹ๆ่ฟฐ

YModel3.2-fm-1B ๆ˜ฏ YModel3.2 ๅฎถๆ—็š„ 1B ๅ‚ๆ•ฐๅŸบ็ก€ๆƒ้‡ๆจกๅž‹๏ผˆfoundation weights๏ผ‰ใ€‚

ๆจกๅž‹็ป†่Š‚

้กน็›ฎ ๅ€ผ
ๆžถๆž„ YModel3.2
Scale level 1
ๅ‚ๆ•ฐ้‡ 1,120,343,553๏ผˆ1.12B๏ผŒๅซๅตŒๅ…ฅ๏ผ‰
Hidden size 1024
ๅ—ๆ•ฐ 31๏ผˆ6 ไธช FullBlock + 25 ไธช GroupBlock๏ผ‰
layer pattern fgggggfgggggfgggggfgggggfgggggf
ๆณจๆ„ๅŠ›ๅคด / KV ๅคด 8 / 2๏ผˆGQA๏ผ‰
ๅคด็ปดๅบฆ 256
Group size 8๏ผˆๅ›บๅฎšๅˆ†็ป„๏ผ‰
FFN SwiGLU + SEBlock๏ผŒintermediate 3072
DCP dynamic compression probe๏ผˆprobe hidden 1024๏ผ‰๏ผ›use_dcp=false๏ผŒๅˆ†็ป„ๅ›บๅฎš๏ผŒprobe ๆƒ้‡ไฟ็•™
Sengram bucket 16384 / topk 12
่ฏ่กจ 151,669๏ผˆQwen3 tokenizer๏ผŒtied embeddings๏ผ‰
ไธŠไธ‹ๆ–‡ 8192
็ฒพๅบฆ bfloat16

Group Attn ไธŽ Token Superposition

YModel3.2-fm ็š„ group attn ไธป่ฆๅ€Ÿ้‰ดไบ†่ฎบๆ–‡ Efficient Pre-Training with Token Superposition๏ผˆBowen Peng, Thรฉo Gigant, Jeffrey Quesnelle, arXiv:2605.06546๏ผ‰็š„ๆ€ๆƒณ๏ผšๅฐ†่ฟž็ปญ token ๅˆ†็ป„๏ผˆsuperpose๏ผ‰ไธบไธ€ไธชๆ•ดไฝ“่ฟ›่กŒ้ซ˜ๆ•ˆๅค„็†ใ€‚่ฎบๆ–‡ๆๅ‡บ็š„ Token-Superposition Training๏ผˆTST๏ผ‰ๆŠŠๅคšไธช่ฟž็ปญ token ๅˆๅนถไธบไธ€ไธช bagใ€ไปฅ multi-hot ไบคๅ‰็†ต๏ผˆMCE๏ผ‰็›ฎๆ ‡่ฎญ็ปƒ๏ผŒๅ†็ป recovery ้˜ถๆฎตๅ›žๅˆฐๆ ‡ๅ‡†่ฎญ็ปƒ๏ผŒๅœจ 10B A1B ่ง„ๆจกไธŠๆŠฅๅ‘Šไบ†่‡ณๅคš 2.5x ็š„้ข„่ฎญ็ปƒๆ—ถ้—ด็ผฉๅ‡ใ€‚ๆœฌๆจกๅž‹็š„ group attn ๆ˜ฏๅ…ถๆžถๆž„ไพง็š„ๅปถไผธ๏ผšGroupBlock ไปฅ group_size=8 ็š„ๅˆ†็ป„ๅค„็† token๏ผŒFullBlock / GroupBlock ๆŒ‰ f/g pattern ไบค้”™ๆŽ’ๅธƒ๏ผŒๅนถ็”จ F2G / G2F ๅฑ‚ๅฎŒๆˆ็ป„ไธŽๅฎŒๆ•ด token ๆตไน‹้—ด็š„ไฟกๆฏ่ฝฌๆขใ€‚

่ฎญ็ปƒ็ป†่Š‚

่ฎญ็ปƒๅˆ†ๅ››ไธช้˜ถๆฎตๅฎŒๆˆ๏ผˆbf16๏ผŒAdamW ไธŽ Muon ๅŒไผ˜ๅŒ–ๅ™จ๏ผ‰๏ผš

  1. ้ข„่ฎญ็ปƒ๏ผšcausal LM๏ผŒ1024 ไธŠไธ‹ๆ–‡๏ผŒ8.52B Tokens๏ผŒๅ†ป็ป“ๅตŒๅ…ฅไธŽ lm_headใ€‚
  2. SFT๏ผšUltraData SFT + Instant ๆททๅˆ่ฏญๆ–™๏ผŒ8192 ไธŠไธ‹ๆ–‡๏ผˆ้ข„่ฎญ็ปƒไธบ 1024๏ผŒๆญค้˜ถๆฎต้ฆ–ๆฌกๆ‰ฉๅฑ•ๅˆฐ 8192๏ผ‰๏ผŒMuon 5e-6 / AdamW 5e-7๏ผŒๅตŒๅ…ฅไธŽ lm_head ๅ†ป็ป“๏ผŒ4.14B Tokensใ€‚
  3. ่’ธ้ฆ๏ผšteacher ไธบ Qwen3-0.6B๏ผˆCE=0.5 / KL=0.5๏ผŒtemperature=1.0๏ผ‰๏ผŒๅ›บๅฎš group_size=4๏ผŒDCP probe ๅ†ป็ป“๏ผŒๅ“ˆๅธŒ่พ…ๅŠฉ็›‘็ฃๅŠ ๅผบ่‡ณ 1e-1๏ผŒMuon 1e-4 / AdamW 1e-5๏ผŒ0.98B Tokensใ€‚

Usage

from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "SnifferCaptain/YModel3.2-fm-1B"

tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True,
    torch_dtype="auto",
)

ๅฏน่ฏๆ ผๅผ

ๆจกๅž‹ไฝฟ็”จ ChatML ้ฃŽๆ ผ็š„ๅฏน่ฏ่พน็•Œใ€‚ๅฎŒๆ•ด็š„่พ“ๅ…ฅๅฏไปฅๅ†™ๆˆ๏ผš

<|im_start|>system
{system prompt}<|im_end|>
<|im_start|>user
{user content}<|im_end|>
<|im_start|>assistant
<think>{thinking_definitions}
{reasoning content}</think>

{assistant content}<|im_end|>

ๅ…ถไธญ๏ผŒ{thinking_definitions} ๆ˜ฏ็ดง่ทŸๅœจ <think> ๅŽ้ข็š„็ฌฌไธ€่กŒๆŽงๅˆถไฟกๆฏ๏ผŒไธๆ˜ฏๆ€่€ƒๆญฃๆ–‡ใ€‚ๅฎƒๅฏไปฅๆ˜ฏ๏ผš

  • juice = 1.23๏ผšๆ€่€ƒ้ข„็ฎ—ๆ็คบ๏ผŒๅฏไปฅไฝฟ็”จๅฐๆ•ฐใ€‚
  • structured = true๏ผš่กจ็คบ็ป“ๆž„ๅŒ–ๆ€่€ƒใ€‚
  • juice = 1.23; structured = true๏ผšๅŒๆ—ถๆŒ‡ๅฎš้ข„็ฎ—ๅ’Œ็ป“ๆž„ๅŒ–ๆ€่€ƒใ€‚

ๆŽงๅˆถ่กŒ็ป“ๆŸๅŽๆข่กŒ๏ผŒๅ†ๅ†™ๅ…ฅ {reasoning content}๏ผ›ๆ€่€ƒ็ป“ๆŸไฝฟ็”จ </think>๏ผŒไน‹ๅŽ็ฉบไธ€่กŒๅ†™ๆœ€็ปˆ็š„ {assistant content}ใ€‚่‡ช็”ฑๅฝขๅผๆ€่€ƒๅฏไปฅ็œ็•ฅ structured๏ผŒไนŸๅฏไปฅๆ˜พๅผๅ†™ๆˆ structured = falseใ€‚ๅฆ‚ๆžœๆฒกๆœ‰ๆŽงๅˆถๅญ—ๆฎต๏ผŒไฟ็•™็ฉบ็š„ๆŽงๅˆถ่กŒๅณๅฏ๏ผš

<think>
{reasoning content}
</think>

ๆฏไธช่ง’่‰ฒ้ƒฝไฝฟ็”จ <|im_start|>role\n...<|im_end|> ่พน็•Œ๏ผ›system ๅ’Œ user ๅ†…ๅฎนไธไผšๆ”พๅ…ฅ <think>๏ผŒๆ€่€ƒไธŽๆœ€็ปˆๅ›ž็ญ”ๅชๅฑžไบŽ assistant ๆถˆๆฏใ€‚

ๆณจๆ„๏ผš่ฏฅๆžถๆž„็š„ generate() ไธบๆจกๅž‹่‡ชๅฎšไน‰ๅฎž็Žฐ๏ผŒไธไฝฟ็”จ KV cache๏ผˆๆฏๆญฅ้‡็ฎ—ๅฎŒๆ•ดๅ‰็ผ€๏ผ‰๏ผŒ้•ฟๅบๅˆ—็”Ÿๆˆไผš็›ธๅบ”ๅ˜ๆ…ขใ€‚

Notes

  • ๅŒ…ๅซ่‡ชๅฎšไน‰ไปฃ็ ๏ผšmodeling_ymodel32.py๏ผˆ่‡ชๅŒ…ๅซ๏ผš้…็ฝฎ็ฑป + ๅฎŒๆ•ดๆžถๆž„๏ผ‰ใ€ymodel32_eval.py๏ผˆๅ‚่€ƒๅฎž็Žฐ๏ผ‰๏ผŒๅŠ ่ฝฝ้œ€ trust_remote_code=Trueใ€‚
  • ๆƒ้‡ไธบๅ•ไธช model.safetensors๏ผˆbfloat16๏ผŒ็บฆ 2.55GB๏ผ‰ใ€‚
  • ๅŸบๅ‡†ๅˆ†ๆ•ฐไธŽ็คบไพ‹่พ“ๅ‡บๅพ…่กฅๅ……ใ€‚

Model Description

YModel3.2-fm-1B is the 1B-parameter foundation-weights model of the YModel3.2 family.

Model Details

Item Value
Architecture YModel3.2
Scale level 1
Parameters 1,120,343,553 (1.12B, incl. embeddings)
Hidden size 1024
Blocks 31 (6 FullBlocks + 25 GroupBlocks)
Layer pattern fgggggfgggggfgggggfgggggfgggggf
Attention heads / KV heads 8 / 2 (GQA)
Head dim 256
Group size 8 (fixed grouping)
FFN SwiGLU + SEBlock, intermediate 3072
DCP dynamic compression probe (probe hidden 1024); use_dcp=false, fixed grouping, probe weights retained
Sengram bucket 16384 / topk 12
Vocab 151,669 (Qwen3 tokenizer, tied embeddings)
Context 8192
Dtype bfloat16

Group Attn and Token Superposition

The group attn of YModel3.2-fm is inspired primarily by Efficient Pre-Training with Token Superposition (Bowen Peng, Thรฉo Gigant, Jeffrey Quesnelle, arXiv:2605.06546): superposing contiguous tokens into a group and processing them as a single unit. The paper's Token-Superposition Training (TST) merges many contiguous tokens into one bag and trains with a multi-hot cross-entropy (MCE) objective, then recovers to standard training, reporting up to a 2.5x pre-training time reduction at 10B A1B scale. This model's group attn is the architectural extension of that idea: GroupBlocks process tokens in groups of 8, FullBlocks and GroupBlocks are interleaved per the f/g pattern, and F2G / G2F layers transfer information between the group and full-token streams.

Training Details

Training ran in four stages (bf16, AdamW + Muon dual optimizers):

  1. Pre-training: causal LM, 1024 context, 8.52B Tokens, embeddings and lm_head frozen.
  2. SFT: mixed UltraData SFT + Instant corpus, 8192 context (pre-training used 1024, so 8192 is new context here), Muon 5e-6 / AdamW 5e-7, embeddings and lm_head frozen, 4.14B Tokens.
  3. Distillation: teacher Qwen3-0.6B (CE=0.5 / KL=0.5, temperature 1.0), fixed group_size=4, DCP probe frozen, hash auxiliary supervision raised to 1e-1, Muon 1e-4 / AdamW 1e-5, 0.98B Tokens.

Usage

from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "SnifferCaptain/YModel3.2-fm-1B"

tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True,
    torch_dtype="auto",
)

Chat Format

The model uses ChatML-style turn boundaries. A complete input can be written as:

<|im_start|>system
{system prompt}<|im_end|>
<|im_start|>user
{user content}<|im_end|>
<|im_start|>assistant
<think>{thinking_definitions}
{reasoning content}</think>

{assistant content}<|im_end|>

{thinking_definitions} is the first control line immediately after <think>, not the reasoning body. It may be:

  • juice = 1.23 for a numeric reasoning-budget hint;
  • structured = true to mark structured reasoning; or
  • juice = 1.23; structured = true to provide both fields.

Terminate the control line with a newline, then place the reasoning in {reasoning content}. Close it with </think>, leave one blank line, and put the final answer in {assistant content}. For free-form reasoning, structured may be omitted or written as structured = false. If no control field is needed, keep an empty control line:

<think>
{reasoning content}
</think>

Note: this architecture ships a custom generate() implementation without KV caching (the full prefix is recomputed each step), so long-sequence generation is correspondingly slower.

Notes

  • Custom code included: modeling_ymodel32.py (self-contained: config class + full architecture) and ymodel32_eval.py (reference implementation); load with trust_remote_code=True.
  • Weights: single model.safetensors (bfloat16, ~2.55GB).
  • Benchmark scores and sample outputs: to be added.
Downloads last month
64
Safetensors
Model size
1B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Collection including SnifferCaptain/YModel3.2-fm-1B

Paper for SnifferCaptain/YModel3.2-fm-1B