Skip to content

convert: fix GPT-2 and StableLM conversion after generator migration - #33677

Merged
CISC merged 3 commits into
ggml-org:masterfrom
HeZ2z:fix-convert-gpt2-stablelm
Dec 4, 2026
Merged

CISC merged 3 commits into
ggml-org:masterfrom
HeZ2z:fix-convert-gpt2-stablelm

Conversation

@HeZ2z

@HeZ2z HeZ2z commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Since #18866 modify_tensors is a generator: GPT-2 checkpoints with causal mask buffers fail with Can not map tensor, and StableLM checkpoints with qk_layernorm fail with Unprocessed norms. This restores the previous behavior.

Additional information

Fixes #33648.

Verified by converting distilgpt2 (76 tensors) and a synthetic StableLM checkpoint with qk_layernorm.

Requirements

@HeZ2z
HeZ2z requested review from CISC and ggerganov as code owners December 4, 2026 08:37
@github-actions github-actions Bot added testing Everything test related conversion labels Dec 4, 2026

@CISC CISC left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop the test.

@HeZ2z

HeZ2z commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

Drop the test.

Done, I've removed the test. Could you please take another look?

@CISC
CISC merged commit 9cc2807 into ggml-org:master Dec 4, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conversion testing Everything test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Eval bug: convert_hf_to_gguf.py fails on openai-community/gpt2 and on StableLM with qk_layernorm (both since #18866)

2 participants