Pipeline parallelism not working for GLM 5.3 Flash Q2 (Strix Halo & DGX Spark)
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
- Área
- backend, distributed-systems
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
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de antirez/ds4
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
antirez/ds4#1189 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
antirez/ds4#1173 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
antirez/ds4#1032 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de antirez/ds4
Issues similares
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Life-Framework/Life-Framework#5378 ·
Los mantenedores suelen responder en 1 día
-
Bug Status: Needs Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug status: planned ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
ChupathingyCE/chupathingyce#2126 ·
Los mantenedores suelen responder en 1 día
-
good first issue simulation
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
MarcosAsh/Lattice_Fluid_Dynamics#270 ·
Los mantenedores suelen responder en 1 día
-
needs-kind
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
falcosecurity/libs#3173 · 1 comentario ·
Los mantenedores suelen responder en 1 día