Fix grammatical error in MoE variable name: expert_hitted → expert_hit, hitted_experts → hit_experts #39959
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes a grammatical error in variable naming across all Mixture of Experts (MoE) implementations. The variables
expert_hittedandhitted_expertsare grammatically incorrect: the past tense/past participle of "hit" is "hit", not "hitted".Fixes #39955.
Before submitting
Who can review?
Anyone can review. This is a simple grammatical fix in internal variable naming. No functionality changes.
Changes made
Renamed
expert_hitted→expert_hitin:src/transformers/models/gpt_oss/modular_gpt_oss.pysrc/transformers/models/mixtral/modular_mixtral.pysrc/transformers/models/ernie4_5_moe/modular_ernie4_5_moe.pysrc/transformers/models/qwen3_moe/modular_qwen3_moe.pysrc/transformers/models/gpt_oss/modeling_gpt_oss.pysrc/transformers/models/mixtral/modeling_mixtral.pysrc/transformers/models/ernie4_5_moe/modeling_ernie4_5_moe.pysrc/transformers/models/qwen3_moe/modeling_qwen3_moe.pysrc/transformers/models/qwen2_moe/modeling_qwen2_moe.pysrc/transformers/models/minimax/modeling_minimax.pyRenamed
hitted_experts->hit_expertsin:src/transformers/integrations/mxfp4.py