Skip to content

[qwen3_8_fn] Remove the deleted ModelConfigConverter from build_model_config - #6314

Merged
tianyu-l merged 1 commit into
mainfrom
qwen3-8-fn-fix-converters
Nov 21, 2026
Merged

tianyu-l merged 1 commit into
mainfrom
qwen3-8-fn-fix-converters

Conversation

@shuhuayu

@shuhuayu shuhuayu commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary (human-written)

as titled.

Why

main fails to import Flash-Next. #6164 deleted ModelConfigConverter, validate_converter_compatibility and the converters argument of every build_model_config. The Flash-Next stack (#6046-#6054) merged about 2.5 hours later, but its CI had run against the older base, so torchtitan/models/qwen3_8_flash_next/flavors.py still imports the deleted names.

Example.

$ python -c "import torchtitan.models.qwen3_8_flash_next"
ImportError: cannot import name 'ModelConfigConverter' from 'torchtitan.config.transform'

On main (65e88e9) this breaks:

  • CPU Unit Test: the 4 Flash-Next CPU test modules fail to collect;
  • 1 GPU and Multi-GPU Unit Tests: the Flash-Next GPU test modules fail to collect;
  • lint: pyrefly missing-module-attribute at qwen3_8_flash_next/flavors.py:19-21.

What changed

Numerics

None: the removed branch ran only when converters was passed, and no caller passed it.

Testing

  • pytest tests/unit_tests/cpu (with main's attn-gym pin): all Flash-Next tests pass. The 12 failures are in test_loss, test_dist_moe, test_lora and qwen3_5; the same 12 fail in this environment on main before the Flash-Next stack (31d93fe), so they come from the local environment, not this change.
  • Pyrefly reports no errors in qwen3_8_flash_next/flavors.py.

Known issues / follow-ups

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 21, 2026
@shuhuayu
shuhuayu marked this pull request as ready for review November 21, 2026 09:54
@pytorch-bot pytorch-bot Bot added the ciflow/fake-pg Run 1-GPU Fake PG integration tests label Nov 21, 2026
@shuhuayu shuhuayu added the ciflow/b200 Trigger B200 CI label Nov 21, 2026
…_config

#6164 deleted ModelConfigConverter, validate_converter_compatibility and
the converters argument of every build_model_config. The Flash-Next stack
(#6046-#6054) landed after it with CI from the older base, so
qwen3_8_flash_next/flavors.py still imports them and fails at import time.
Remove the import, the argument and its loop, as #6164 did for the other
models; no Flash-Next caller passes converters.
@shuhuayu
shuhuayu force-pushed the qwen3-8-fn-fix-converters branch from 99a236e to c06d6df Compare November 21, 2026 09:56
@tianyu-l
tianyu-l merged commit b4ad9b7 into main Nov 21, 2026
21 checks passed
@tianyu-l
tianyu-l deleted the qwen3-8-fn-fix-converters branch November 21, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/b200 Trigger B200 CI ciflow/fake-pg Run 1-GPU Fake PG integration tests CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants