Skip to content

DGX Spark, Qwen3.6-35B-A3B: a CUDA family for single-Spark deployments? (happy to build it) #45

Closed

Description

@philip-pentatonic

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?

Activity

  1. ashhart commented on Sep 27, 2026

    @ashhart
    Owner

    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.

  2. ashhart commented on Sep 28, 2026

    @ashhart
    Owner

    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

  3. philip-pentatonic commented on Sep 29, 2026

    @philip-pentatonic
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions