You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DGX Spark, Qwen3.6-35B-A3B: a CUDA family for single-Spark deployments? (happy to build it) #45
We deploy single DGX Sparks in some configurations, where the larger Qwen3.8 models don't fit alongside everything else, so those run Qwen3.6-35B-A3B. On vLLM (NVIDIA's NVFP4 checkpoint, MTP) it holds 48–63 GB for about 20 GB of weights. Moving Qwen3.8-27B to the branch in #38 took that model from 56 GB to 18.6 GB idle, so we'd like the same for 3.6.
The model is qwen3_5_moe: 40 layers, every 4th full attention and the rest GDN, 256 experts with 8 active plus a shared expert, one MTP layer, 262k context. As far as we can see, TensorFold already has the pieces on CUDA (GDN and attention in qwen3_5, MoE in qwen4_exp, MTP drafting), but no family that puts them together.
Are you planning it? If not, we're happy to do it on our fork. First a single-stream engine with an exactness check and numbers against vLLM, then concurrent serving on top of the 0.3.6 work. Is there a checkpoint you'd want it to read (an MLX 4-bit conversion?), and anything about the MoE path you'd want done a particular way?
Thanks @philip-pentatonic, yes please. docs/recipes/adding-a-cuda-family.md describes the contract a family meets: drafted output byte-identical to its own serial decode, resumed prompts equal to fresh ones, concurrent streams equal to their solo runs, and capacity checked before loading. Please base it on 0.3.5, which ships tonight, reuse the shared CUDA kernels where the shapes allow, and open it in reviewable pieces if it grows large. We'll test it on our Sparks.
Thanks @philip-pentatonic. Qwen3.6-35B-A3B has a CUDA family in 0.3.6.2 (qwen3_5_moe) with MTP drafts, and drafted replies equal serial ones. On one DGX Spark against vLLM with MTP=3 on the same checkpoint, decode runs 1.36-1.49x and prompts 1.21-1.37x. It serves one request at a time for now. docs/recipes/qwen3.6-moe.md has the recipe. You offered to build it; if you'd like to take on concurrent serving for it, that PR would be very welcome. Release: https://github.com/ashhart/TensorFold/releases/tag/v0.3.6.2
Thanks Ash, happy to take it. Concurrent serving is up as #84 (on top of #78, now in 0.3.6.3; thanks for taking it): --parallel N, with every reply equal to its solo run and to "draft": false, checked at N = 1, 4 and 8 on a DGX Spark and an RTX PRO 6000. On the Spark, 8 in flight gives 1.9× on JSON labels and 2.2× on chat, in 22.7 GiB.
Running 0.3.6.2 on our workload turned up two things, fixed on the way:
#80 adds response_format JSON schemas on the 27B. Next we'll send response_format for this family, and let --mtp-confidence set its chain rule (the flag is refused for it today). Each PR carries its evidence; happy to change anything.
Activity
ashhart commentedon Sep 27, 2026
Thanks @philip-pentatonic, yes please.
docs/recipes/adding-a-cuda-family.mddescribes the contract a family meets: drafted output byte-identical to its own serial decode, resumed prompts equal to fresh ones, concurrent streams equal to their solo runs, and capacity checked before loading. Please base it on 0.3.5, which ships tonight, reuse the shared CUDA kernels where the shapes allow, and open it in reviewable pieces if it grows large. We'll test it on our Sparks.feat(cuda): concurrent 27B serving and the Qwen3.6 family; Gemma 4 dr…
release: TensorFold 0.3.6.2
ashhart commentedon Sep 28, 2026
Thanks @philip-pentatonic. Qwen3.6-35B-A3B has a CUDA family in 0.3.6.2 (
qwen3_5_moe) with MTP drafts, and drafted replies equal serial ones. On one DGX Spark against vLLM with MTP=3 on the same checkpoint, decode runs 1.36-1.49x and prompts 1.21-1.37x. It serves one request at a time for now. docs/recipes/qwen3.6-moe.md has the recipe. You offered to build it; if you'd like to take on concurrent serving for it, that PR would be very welcome. Release: https://github.com/ashhart/TensorFold/releases/tag/v0.3.6.2philip-pentatonic commentedon Sep 29, 2026
Thanks Ash, happy to take it. Concurrent serving is up as #84 (on top of #78, now in 0.3.6.3; thanks for taking it):
--parallel N, with every reply equal to its solo run and to"draft": false, checked at N = 1, 4 and 8 on a DGX Spark and an RTX PRO 6000. On the Spark, 8 in flight gives 1.9× on JSON labels and 2.2× on chat, in 22.7 GiB.Running 0.3.6.2 on our workload turned up two things, fixed on the way:
expandable_segments:True, the first request past 8,192 rows and every one after it failed at graph capture.message_markersfound no message starts in Qwen3.6's template, so shared system blocks and chat turns were never resumed (first token on a shared 2.9k-token system block goes from 0.39 s to 0.08 s on the Spark).#80 adds
response_formatJSON schemas on the 27B. Next we'll sendresponse_formatfor this family, and let--mtp-confidenceset its chain rule (the flag is refused for it today). Each PR carries its evidence; happy to change anything.