Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Reference-model is slow on long sequences, especially with TP>1

Aperta
#353 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

Start with the reference-model forward timing in fast_llm/models/gpt/model.py around lines 336-342, since the issue asks whether the measurement itself is wrong. Check whether the timing synchronizes the device before and after the forward pass, then compare TP=1 and TP=2 runs at the same sequence length. Done means the TP=2 overhead and the mbs=1 vs mbs=2 anomaly are either explained or traced to a measurement error, with the findings written up on the issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

need update

Here are some latency numbers, run with https://github.com/ServiceNow/Fast-LLM/tree/874cb2a875a439cff10d18a67b293ed59831ce4e, by measuring the time taken to run the reference-model's forward https://github.com/ServiceNow/Fast-LLM/blob/874cb2a875a439cff10d18a67b293ed59831ce4e/fast_llm/models/gpt/model.py#L336-L342.

With TP=2, mbs=1, the time taken to run the reference model is much larger in comparison to TP=1.
Another puzzling point is that the reference-model-forward-time is larger in TP=2,mbs=1 than in TP=2,mbs=2.
Could be an issue in how this ref-model-forward time is measured here?

<style> </style>
Seq-length TP MBS BS Sequential micro-batches Teacher-size Studen-size Ref-model forward (ms) Step-time (ms)
2048 1 1 16 1 4.6B 4.6B 24 206
4096 1 1 16 1 4.6B 4.6B 46 333
8192 1 1 16 1 4.6B 4.6B 95 656
2048 2 1 8 1 4.6B 4.6B 80 230
4096 2 1 8 1 4.6B 4.6B 150 367
8192 2 1 8 1 4.6B 4.6B 301 655
2048 2 2 16 1 4.6B 4.6B 33 231
4096 2 2 16 1 4.6B 4.6B 59 376
8192 2 2 16 1 4.6B 4.6B 121 739
Lingua principale
Python
Stelle
337
Fork
52
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ServiceNow/Fast-LLM

Tutte le issue di ServiceNow/Fast-LLM

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.