Skip to content

Read RoPE settings from transformers 5 rope_parameters - #1964

Draft
JayeshSuryavanshi wants to merge 1 commit into
ml-explore:mainfrom
JayeshSuryavanshi:fix/transformers-v5-rope-parameters
Draft

JayeshSuryavanshi wants to merge 1 commit into
ml-explore:mainfrom
JayeshSuryavanshi:fix/transformers-v5-rope-parameters

Conversation

@JayeshSuryavanshi

Copy link
Copy Markdown
Contributor
  • ☑️ I understand it is strictly prohibited to use AI to write PR description
  • AI usage disclosure: None used.

Topabaem05 pushed a commit to Topabaem05/CuMLX that referenced this pull request Nov 7, 2026
…rules for a new F1 run

An independent recheck of the raw files (13 readers) confirmed every number
of the M6 finish runs and found one claim that the rules do not allow:
validation/m6-f1-limits.json gives grade A only on the first complete run of
both machines, and F1 failed in that run (attempt 2, 4bf9b41). Attempt 3 ran
on the Mac only, after a fix to the adapter, on the same golden. The record
and the documents now give F1 no grade, and F2 to F5 keep their grades.

validation/m6-f1-rerun-limits.json, committed before its run, repeats F1 on
both machines with the same limits and controls and a golden prompt that no
run has used. spikes/remote/m6_f1rerun.sh runs the V100 side, and
CUMLX_F1_PROMPT gives the prompt to the Mac side. The replay fault
ieee_row_scale is reported and not judged.

Fixes from a review of the README:
- cumlx run makes the folder of --report before the script runs.
- cumlx run refuses a dotted --substitute NAME, which never matched.
- bitsandbytes_int8.optim refuses every optimizer, and flash_attn_sdpa
  refuses the two varlen packed functions, as their documents said.

Also: the README rewritten in Korean after the V100 runs, the PyPI release
workflow and docs/RELEASE.md (nothing is published), and a check that
ml-explore/mlx-lm#1964 fixes the RoPE reproduction.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Topabaem05 pushed a commit to Topabaem05/CuMLX that referenced this pull request Nov 7, 2026
… README in English

config_scan.py reads the config.json of recent mlx-tagged repositories and compares the RoPE base and
scaling that mlx-lm's ModelArgs takes with the ones transformers resolves from the same config. With
mlx-lm 0.32.2, 8 of 4864 ports differ; the change of ml-explore/mlx-lm#1964 fixes 7, and not a config
whose top-level rope_theta disagrees with rope_parameters. port_rope_check.py proves three of them on the
published weights: each diverges at model.layers.0.self_attn, and the same port with only a top-level
rope_theta added passes. long_context_effect.py measures the top-1 token differing at 31% to 46% of
positions. Nothing is reported upstream; mlx-lm's policy requires a person to write the report.

README.md follows the layout of Best-README-Template, in English, with a banner and a section on the
ports checked in the wild.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant