Pipeline parallelism not working for GLM 5.3 Flash Q2 (Strix Halo & DGX Spark)

Abierto
#1,209 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
c

Línea de trabajo

Start by reproducing the crash with the two commands and GLM 5.3 Flash Q2 model split described in the issue; both instances load and connect, then generation aborts with free(): invalid next size (normal). Trace the pipeline generation path to find the memory corruption and add a regression check for this two machine setup. Done means split generation produces output without aborting.

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

Descripción

Hi and thanks for an amazing project.

I'm trying to run GLM 5.3 flash Q2 split in two 128 Gb machines, one is a Strix Halo 128Gb and the other a DGX Spark.

Running the model in one machine only works without an issue.

Splitting the model among the two raises a core dumped before any output is created. One example:

On the Strix Halo:

./ds4 -m gguf/GLM-5.3-Flash-Q2.gguf  --role worker --layers 31:output --coordinator spark-QWER.local 9911

On the DGX Spark:

./ds4 -m gguf/GLM-5.3-Flash-Q2.gguf  --role coordinator --layers 0:30 --listen spark-QWER.local 9911

Both ds4 instances run, load the partial model, and connect to each other. Yet no output is produced:

spark-QWER:~/ds4$ ./ds4 -m gguf/GLM-5.3-Flash-Q2.gguf  --role coordinator --layers 0:30 --listen spark-QWER.local 9911
ds4: Linux cuda backend set oom_score_adj=1000
ds4: CUDA backend initialized on NVIDIA GB10 (sm_121) dev=0
ds4: restricting cuda model map to layers 0:30+output (64 spans, 59.17 GiB tensor span)
ds4: CUDA preparing model tensor mappings: 58.54 GiB
ds4: CUDA startup model preparation covered 59.17 GiB of tensor spans in 10.015s
ds4: cuda backend initialized for graph diagnostics
ds4: memory: KV 0.23 GiB (raw 0.00 + compressed 0.23) + buffers 2.94 GiB + resident model 59.17 GiB = 62.33 GiB planned
ds4: memory detail: ctx=32768 prefill_cap=2048 raw_kv_rows=0 compressed_kv_rows=32768 backend=cuda
ds4: memory: KV 0.37 GiB (raw 0.00 + compressed 0.37) + buffers 2.98 GiB = 3.34 GiB context
ds4: memory detail: ctx=32768 prefill_cap=2048 raw_kv_rows=0 compressed_kv_rows=32768 backend=cuda
ds4: GLM session ctx=32768 (model max=1048576); prefill/work cap=4096; dense attention limit=2051
ds4: GLM graph using compact DSA KV only; expanded full-attention KV cache is skipped
ds4: GLM graph allocating compact DSA cache: rows=32768 logical_ctx=32768 kv_layers=31 indexer_layers=7 f16 0.23 GiB
ds4: GLM compact indexed prefill chunk=2048 score_rows=2048 score_scratch=64.00 MiB
Commands:
  /help          Show this help.
  /think [N]     Use normal thinking, or V4.1 effort 0..100 (0 disables thinking).
  /think-max     Use maximum thinking (V4.1: 100; V4: requires ctx >= 393216).
  /nothink       Disable thinking mode.
  /ctx N         Set context size for following prompts.
  /power N       Set GPU duty cycle percentage, 1..100.
  /steer F       Set FFN steering for subsequent tokens; no value shows it.
  /read FILE     Submit a text file, PNG, or JPEG.
  /quit, /exit   Leave the prompt.
  Ctrl+C         Stop generation and return to the prompt.
ds4> Hello. What can you do?
free(): invalid next size (normal)
Aborted (core dumped)

Is there any way to make this work? I'm looking into pipeline parallelism as the only way to split larger models that would fit in 256 Gb.

Thank you!

Lenguaje dominante
C
Estrellas
24.4k
Forks
2.4k
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 antirez/ds4

Todos los issues de antirez/ds4

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.