Skip to content

[Bringup] Single-chip dense LLMs to 20% MFU #685

Closed
10 of 10 issues completed
Closed

Description

@vladimirjovanovicTT

Improve perf of Llama 3.2 1B SFT and Llama 3.1 8B LoRA to 20% MFU.

Activity

  1. changed the title [-]Single-chip dense LLMs to 20% MFU[/-] [+][PERF] Single-chip dense LLMs to 20% MFU[/+] on Aug 1, 2026
  2. changed the title [-][PERF] Single-chip dense LLMs to 20% MFU[/-] [+][Perf] Single-chip dense LLMs to 20% MFU[/+] on Aug 1, 2026
  3. 1 remaining item

  4. changed the title [-][Perf] Single-chip dense LLMs to 20% MFU[/-] [+][Bringup] Single-chip dense LLMs to 20% MFU[/+] on Sep 7, 2026
  5. agobeljicTT commented on Sep 8, 2026

    @agobeljicTT
    Contributor

    Update 2026-09-08

    Status

    • tt-kurbla rebased onto tt-mlir main (fork-only commits kept, everything already upstream dropped); the ttml AdamW patch (tensor lr / beta_pow) is now on tt-mlir main.
    • Both ttml lowerings are in kurbla: AdamW (ttir.adamw, eager and torch.compile path) and SDPA (sdpa_fw / sdpa_bw composites promoted to the ttml kernels), plus GQA head-expansion peeling so K/V reach the kernel unexpanded.
    • Multichip (2x2 mesh, data parallel) runs with the same lowerings.

    Results

    Model opt level step time tok/s TFLOPS/s MFU HFU
    Llama 3.2 1B (bs=1, sl=1024, 1 chip) 1 0.825s 1240.7 tok/s 9.05 TFLOP/s MFU 5.95% HFU 5.62%
    Llama 3.2 1B (bs=1, sl=1024, 1 chip) 2 0.767s 1335.0 tok/s 9.74 TFLOP/s MFU 6.40% HFU 6.05%
    Llama 3.1 8B LoRA r=4 (bs=4, sl=256, 4 chips) 1 3.099s 330.4 tok/s 10.06 TFLOP/s MFU 1.65% HFU 1.63%
  6. agobeljicTT commented on Sep 15, 2026

    @agobeljicTT
    Contributor

    Update 2026-09-15

    Status

    • tt-crank is officially a part of tt-mlir
    • for the sake of thorough tracking of progress, we measure from scratch (main tt-mlir = 646c2d41d0)
    • we have done more offline testing and are now in progress of materializing changes on tt-crank

    Results

    Model opt level step time tok/s TFLOPS/s MFU HFU
    Llama 3.2 1B (bs=1, sl=1024, 1 chip) main 1 3.478s 294.4 tok/s 2.15 TFLOP/s MFU 1.41% HFU 1.41%
    Llama 3.2 1B (bs=1, sl=1024, 1 chip) main + ttml.AdamW 1 0.789s 1298.3 tok/s 9.47 TFLOP/s MFU 6.23% HFU 6.23%
  7. agobeljicTT commented on Sep 22, 2026

    @agobeljicTT
    Contributor

    Update 2026-09-22

    Status

    • main = b5f1f345ee

    Results

    Model opt level step time tok/s TFLOPS/s MFU HFU
    Llama 3.2 1B (bs=1, sl=1024, 1 chip) main 1 0.783s 1308.6 tok/s 9.54 TFLOP/s MFU 6.28% HFU 6.27%
    Llama 3.2 1B (bs=1, sl=1024, 1 chip) main + slice_scatter 1 0.577s 1776.2 tok/s 12.95 TFLOP/s MFU 8.52% HFU 8.52%
  8. agobeljicTT commented on Sep 25, 2026

    @agobeljicTT
    Contributor

    Update 2026-09-25

    Status

    • main = aad5ad863c

    Results

    Model opt level step time tok/s TFLOPS/s MFU HFU
    Llama 3.2 1B (bs=1, sl=1024, 1 chip) main 1 0.574s 1784.7 tok/s 13.01 TFLOP/s MFU 8.56% HFU 8.56%
    Llama 3.2 1B (bs=1, sl=1024, 1 chip) main + SDPA (tenstorrent/tt-mlir#9349) 1 0.428s loss 0.4121 2393.3 tok/s 17.45 TFLOP/s MFU 11.48% HFU 10.84%
    Llama 3.2 1B (bs=1, sl=2048, 1 chip) main + SDPA (tenstorrent/tt-mlir#9349) 1 0.787s 2602.3 tok/s 20.02 TFLOP/s MFU 13.17% HFU 11.79%
  9. agobeljicTT commented on Sep 29, 2026

    @agobeljicTT
    Contributor

    Update 2026-09-29

    Status

    • main = 14c76446d7

    Results

    Model opt level step time tok/s TFLOPS/s MFU HFU
    Llama 3.2 1B (bs=1, sl=2048, 1 chip) main 1 0.521s loss 2.8750 3928.3 tok/s 30.23 TFLOP/s MFU 19.88% HFU 17.80%
    Llama 3.2 1B (bs=1, sl=2048, 1 chip) main + cross entropy tenstorrent/tt-mlir#9324 1 0.496s loss 0.0884 4133.1 tok/s 31.80 TFLOP/s MFU 20.91% HFU 18.72%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions