Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#353 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
15/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
Python
Estrellas
337
Forks
52
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ServiceNow/Fast-LLM

Todos los issues de ServiceNow/Fast-LLM

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.