Skip to content

Conversation

@ggerganov
Copy link
Member

@ggerganov ggerganov requested a review from CISC as a code owner December 13, 2025 20:23
Co-authored-by: Sigbjørn Skjæret <[email protected]>
assert rope_type == "yarn", f"GPT-OSS only supports yarn rope scaling, got {rope_type}"
self.gguf_writer.add_rope_scaling_type(gguf.RopeScalingType.YARN)
self.gguf_writer.add_rope_scaling_factor(rope_scaling["factor"])
self.gguf_writer.add_rope_freq_base(rope_scaling.get("rope_theta"))
Copy link
Collaborator

@CISC CISC Dec 13, 2025

Choose a reason for hiding this comment

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

Suggested change
self.gguf_writer.add_rope_freq_base(rope_scaling.get("rope_theta"))
self.gguf_writer.add_rope_freq_base(rope_scaling.get("rope_theta", hparams.get("rope_theta")))

So, they moved this in v5, we need to check both places.

@CISC
Copy link
Collaborator

CISC commented Dec 13, 2025

I can make a follow up if you want, this needs to be fixed quite a few places.

@github-actions github-actions bot added the python python script changes label Dec 13, 2025
@CISC
Copy link
Collaborator

CISC commented Dec 13, 2025

I can make a follow up if you want, this needs to be fixed quite a few places.

It's a fairly big refactor actually, will obsolete this PR.

@ggerganov
Copy link
Member Author

Superseded by #18013

@ggerganov ggerganov closed this Dec 14, 2025
@ggerganov ggerganov deleted the gg/convert-fix-gpt-oss branch December 14, 2025 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python python script changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants