Skip to content

[Float8] Remove Float8 training support - #4961

Merged
acisseJZhong merged 3 commits into
mainfrom
remove-float8-tensorwise-rowwise
Oct 1, 2026
Merged

acisseJZhong merged 3 commits into
mainfrom
remove-float8-tensorwise-rowwise

Conversation

@acisseJZhong

@acisseJZhong acisseJZhong commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • remove TorchTitan-owned Float8 rowwise dense and grouped-expert implementations
  • remove the corresponding converters, model recipes, integration coverage, and documentation
  • retain MXFP8, NVFP4 checkpoint compatibility

Why

Float8 tensorwise and rowwise recipes depend on model compilation for competitive performance and are no longer widely used. Removing them keeps the supported low-precision surface focused on the formats still in active use.

Context: #4895 (comment)

Testing

  • SKIP=pyrefly-check pre-commit run --all-files
  • 19 config, integration-definition, and CLI tests passed
  • 24 LoRA tests passed (one unrelated CPU FlexAttention test excluded)
  • 11 quantization tests passed and 37 skipped (four existing MXFP8 tests requiring torchao nightly excluded)

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 30, 2026
Comment thread docs/converging.md Outdated
Comment on lines +61 to +62
| FSDP 8, TP 2, PP 2 | torch.compile, async TP, Interleaved 1F1B | 3D test set |
| FSDP 8, TP 2, CP 2, PP 2 | torch.compile, async TP, Interleaved 1F1B | 4D test set |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is about history, should be kept

],
)


def llama3_debugmodel_ce_loss(
seq_len: int | None = DEFAULT_DEBUG_MODEL_SEQ_LEN,
) -> Trainer.Config:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should the LoRA integration test be kept? Similar in qwen35.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

which one are you referring to?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oops, it seems like I selected the wrong lines.

I was referring to the deleted
llama3_debugmodel_float8_emulate_lora and qwen35_debugmodel_moe_float8_lora

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

float8 was entirely deleted, why keep the float8 lora test?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Removing those would not cover LoRA at all in the integration test, so maybe something like llama3_debugmodel_lora can be kept that does not apply Float8LinearConverter but only applies LoRA transform.

@acisseJZhong
acisseJZhong force-pushed the remove-float8-tensorwise-rowwise branch 2 times, most recently from f76d6be to 0b60229 Compare October 1, 2026 06:08
@acisseJZhong

Copy link
Copy Markdown
Contributor Author

deleting the model_compile_enabled flag in second commit 0b60229

@acisseJZhong
acisseJZhong marked this pull request as ready for review October 1, 2026 06:12
@pytorch-bot pytorch-bot Bot added the ciflow/fake-pg Run 1-GPU Fake PG integration tests label Oct 1, 2026
@acisseJZhong
acisseJZhong requested a review from vkuzo October 1, 2026 06:13
@vkuzo

vkuzo commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

retain MXFP8, NVFP4, and FP8 checkpoint compatibility

what does "retain fp8 checkpoint compatibility" mean, if we are deleting float8?

for test plan, can we run a small mxfp8 training job and verify performance did not regress?

@acisseJZhong

Copy link
Copy Markdown
Contributor Author

for test plan, can we run a small mxfp8 training job and verify performance did not regress?

I ran two mxfp8 jobs with per block compile and without compile, there's ~8% tps regression, mostly due to per block compile, the mxfp8 quantize kernel itself does not regress.

Remove the quantization converter compile flag left obsolete after per-block compilation and Float8 training support were removed. Preserve Float8 in the historical convergence setup as requested in review.
@acisseJZhong
acisseJZhong force-pushed the remove-float8-tensorwise-rowwise branch from 1d14649 to c1a83e3 Compare October 1, 2026 19:54
@acisseJZhong
acisseJZhong merged commit 6bbfbdd into main Oct 1, 2026
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/fake-pg Run 1-GPU Fake PG integration tests ciflow/rl 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.

4 participants