Skip to content

Fix triton head num - #1482

Merged
zhyncs merged 5 commits into
sgl-project:mainfrom
ispobock:fix_head_num
Sep 21, 2024
Merged

zhyncs merged 5 commits into
sgl-project:mainfrom
ispobock:fix_head_num

Conversation

@ispobock

Copy link
Copy Markdown
Collaborator

Motivation

Fix triton backend head num. Add MLA ut.

@ispobock
ispobock requested review from merrymercy and zhyncs and removed request for merrymercy September 21, 2024 01:51
@zhyncs
zhyncs merged commit a68cb20 into sgl-project:main Sep 21, 2024
@zhyncs zhyncs mentioned this pull request Sep 21, 2024
3 tasks
@zhyncs zhyncs mentioned this pull request Sep 21, 2024
5 tasks done
timethink pushed a commit to timethink/sglang that referenced this pull request Mar 9, 2025
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 17, 2026
…t_scale, not the ignore list

df2l (17.09., lued/Qwen3.8-27B-INT8-W8A16-MTP, the ORIGINAL checkpoint):
BF16 vocab, targets ['Linear'], embed_tokens not in ignore -- exactly the
shape our sgl-project#727 requant has with int8 rows, so vocab_is_quantized answered
'quantized' and BF16 rows went through the int8 method: the target
answered '!!!' (token 0) on every prompt, NEXTN's MTP head died in
gemma_rmsnorm on a Char tensor.  The tensor file is the authority now
(index.json / single-file header: <leaf>.weight_scale present?), read via
the runtime context's model_path at both call sites; the ignore-list
reading stays the fallback without a readable index.

Tests: test_ct_embedding_vocab_scale_1482 (3) + test_ct_embedding_int8_727 (18) -> 21 passed.
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 17, 2026
…t_scale, not the ignore list

df2l (17.09., lued/Qwen3.8-27B-INT8-W8A16-MTP, the ORIGINAL checkpoint):
BF16 vocab, targets ['Linear'], embed_tokens not in ignore -- exactly the
shape our sgl-project#727 requant has with int8 rows, so vocab_is_quantized answered
'quantized' and BF16 rows went through the int8 method: the target
answered '!!!' (token 0) on every prompt, NEXTN's MTP head died in
gemma_rmsnorm on a Char tensor.  The tensor file is the authority now
(index.json / single-file header: <leaf>.weight_scale present?), read via
the runtime context's model_path at both call sites; the ignore-list
reading stays the fallback without a readable index.

Tests: test_ct_embedding_vocab_scale_1482 (3) + test_ct_embedding_int8_727 (18) -> 21 passed.
(cherry picked from commit 40d2439)
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.

2 participants