Post History

Current version by Nick Antonaccio

Current VersionOct 27, 2026 at 10:54

I had ChatGPT provide the following summary of my experience running DeepSeek V4.1 Flash 1017 at 1M Context on Two ASUS Ascent GX10 Systems (the same hardware as DGX Sparks). It contains all the technical details of how I set it up, and the results of the testing. I initially had GPT research the best solutions for hosting the model, and had it prepare a prompt for Pi to install Deepseek locally: https://com-pute.com/nick/ds41f_install_instructions_for_2_clustered_gx10s.txt (the public routing solution uses Cloudflared: https://aibynick.com/thread/42) This is GPT's summary of the exported session HTML after Pi's installation session.

I recently completed one of the more successful local-LLM deployments in my stable:

DeepSeek-V4.1-Flash-1017 running across two ASUS Ascent GX10 systems, each based on NVIDIA’s GB10 platform with 128 GB of unified memory.

The two machines are directly connected through their ConnectX-7/QSFP interfaces and operate as a two-node TensorFold cluster.

The final result exceeded my expectations.

The model is running as an OpenAI-compatible API with:

DeepSeek-V4.1-Flash-1017 EXL3 2.8 bpw quantization TensorFold tensor parallelism, TP=2 Two ASUS Ascent GX10 / GB10 nodes 256 GB total unified memory Direct ConnectX-7 / RoCE interconnect Both logical RoCE rails active 1,048,576-token maximum context Four inference slots Approximately 2.1 million tokens of shared KV capacity DSpark speculative decoding Reasoning support Tool calling Structured output Vision input OpenAI-compatible API Remote access through Cloudflare Tunnel Pi Coding Agent integration

Most importantly, the 1-million-token context was not merely configured. It was actually tested successfully.

A needle-in-a-haystack test containing 1,047,230 prompt tokens successfully retrieved the inserted information. At that point, the two GX10s had only about 7-9 GiB of free memory remaining, so the test was exercising essentially the entire available memory envelope of the cluster.

THE HARDWARE

The cluster consists of:

2 x ASUS Ascent GX10 NVIDIA GB10 128 GB unified memory per machine 256 GB total memory across the pair Direct QSFP / ConnectX-7 connection

The GX10 exposes two logical RoCE interfaces through the direct high-speed connection. Both rails are being used.

The intended network configuration uses jumbo frames with MTU 9000 and RoCEv2. A single rail measures around 109 Gb/s, giving approximately 218 Gb/s across the two logical rails in the tested configuration.

That high-speed interconnect is an important part of why this works so well. Tensor-parallel inference requires constant communication between the two nodes, and using ordinary Ethernet would fundamentally change the performance profile.

THE MODEL

The model being served is:

DeepSeek-V4.1-Flash-1017

The installation uses the approximately 2.8 bpw EXL3 build often referred to as the “flash17” pack.

The model pack itself is approximately 203.8 GB.

TensorFold splits the work across the two GB10 GPUs using TP=2.

The resulting API model ID is:

DeepSeek-V4.1-Flash-TF

The server exposes an OpenAI-compatible /v1 API and supports reasoning, structured output, tools, image input, and streaming.

THE PERFORMANCE

The most surprising part of this project was the actual decode speed.

Measured results on this exact GX10 pair were:

Simple smoke test: 68.5 tokens/second

Counting / highly predictable generation: 103.4 tokens/second

Code generation: 72.8 tokens/second

Long-form prose: 47.4 tokens/second

Structured JSON: 81.3 tokens/second

Reasoning / thinking output: 75.6 tokens/second

These are not theoretical numbers from another system. They were measured on this specific gx10b + gx10d installation.

For my own purposes, the code-generation result is particularly important.

Roughly 70+ tokens per second for coding output is fast enough that the model generally feels immediate during interactive development. In many workflows, model generation speed is no longer the bottleneck.

Before this installation, I had other large models running across dual-GX10 clusters at roughly 10-20 tokens per second.

Going from that performance range to approximately 50-100+ tokens per second depending on workload is a dramatic improvement.

PROMPT PROCESSING PERFORMANCE

DeepSeek’s prefill performance was also strong.

Measured prompt-processing speeds were approximately:

21K-token context: 2,058 tokens/second

85K: 1,512 tokens/second

300K: 1,720 tokens/second

500K: 1,752 tokens/second

Approximately 1M: 1,232 tokens/second

At a full million-token context, the cold prefill required roughly 850 seconds, or a little over 14 minutes.

That sounds long until you consider what is happening:

The system is processing more than one million tokens of context while maintaining more than 1,200 prompt tokens per second.

Once that context has been processed, normal generation remains fast.

This makes caching and persistent sessions particularly valuable. A million-token project context is something you want to ingest once and reuse, not rebuild unnecessarily for every request.

THE 1-MILLION-TOKEN TEST

One of the things I specifically wanted from this system was very long context.

The server is configured for:

1,048,576 tokens

Rather than assuming that setting the context parameter meant the feature actually worked, we performed a real needle-in-a-haystack test.

The final prompt contained:

1,047,230 tokens

The model successfully retrieved the target information.

That test also demonstrated something else important: memory usage at the full context length is extremely tight.

At approximately 1M tokens, only around 7-9 GiB remained free across each node’s memory pool.

In other words, this configuration is using the GX10 pair very efficiently. There is not a huge amount of wasted memory sitting idle.

FOUR INFERENCE SLOTS

The installation is configured with four inference slots and approximately 2.1 million tokens of shared KV capacity.

It is important to understand what that means.

It does not mean four independent one-million-token conversations can all exist simultaneously.

The KV memory pool is shared.

Conceptually, the system can support combinations such as:

one very large 1M-token session plus additional smaller sessions,

two very large sessions approaching 1M each,

four sessions around several hundred thousand tokens each,

or a larger number of ordinary coding/chat sessions.

For agent workflows, this is more useful than simply dedicating the entire machine to one conversation.

STORAGE WAS ONE OF THE HARDER PROBLEMS

A straightforward mirrored installation consumes a lot of storage.

The important components include approximately:

203.8 GB model pack

approximately 95 GB of packed Engram data

approximately 96 GB of prepared runtime data

approximately 191 GB of source Engram files during preparation

Docker images and supporting files

A naive installation can therefore require roughly 600-700 GB of free storage on the head node.

My machines did not have enough convenient free space to duplicate everything unnecessarily.

Instead, we used the 200+ Gb/s direct link to cross-share some of the large read-only assets.

The head GX10 stores the main flash17 model pack and exports it read-only to the worker.

The worker stores the Engram source and exports that read-only back to the head.

This reduced the practical storage footprint to roughly 420 GB per node for the cross-shared configuration.

After the completed installation, disk usage was approximately:

Head: 636 GB used 233 GB free

Worker: 738 GB used 131 GB free

The worker is now the more storage-constrained machine, so I would not casually add another hundred-gigabyte model there without planning the storage first.

THE FIRST MODEL LOAD

The first complete model load took approximately:

443 seconds

There is an important reason for that.

During the first startup, TensorFold creates approximately 96 GB of prepared cache data on each node.

That initial preparation takes several minutes.

Subsequent launches are much faster because those prepared artifacts already exist. The installation guide estimates warm restarts at roughly a minute or two rather than repeating the full preparation process.

THIS INSTALLATION WAS NOT COMPLETELY PAINLESS

Several real issues occurred during the deployment.

That turned out to be useful because the final installation instructions now document fixes for problems that someone following older README files could easily encounter.

Among the problems we encountered:

Remote rsync paths failed because the user home directory on the worker did not match the absolute path on the head.

The fix was to use worker-relative paths such as ~/ rather than copying the head machine’s absolute path.

A Docker builder-image tag was being generated incorrectly.

The script attempted to construct an invalid tag ending in:

:local:builder

That required correcting the tag generation.

Rank 0 initially timed out attempting to load the model because rank 1 had not actually launched correctly.

A nested SSH launcher could also hang unless the worker process was detached using ssh -f.

There were TensorFold AOT kernel problems caused by generating signatures using the wrong reference TensorFold version.

The working procedure uses the TensorFold 1.0.2 Python reference together with the required patches and GEMM graft.

At 1M context, the RoPE file also had to contain enough rows. It is generated with context length plus an additional 2048 rows.

There were also messages indicating that some DeepSeek kernels exceeded the GB10 shared-memory limit. Those messages were informational rather than fatal. TensorFold falls back to kernels with smaller shared-memory requirements.

These details matter because this was not simply a case of cloning a repository and typing one launch command.

There were several places where following an older or generic installation recipe would have resulted in a non-working system.

SOFTWARE ENVIRONMENT

The working configuration uses:

Ubuntu 24.04 / DGX OS environment

NVIDIA kernel 7.0.0 series

NVIDIA driver 580.178.04

CUDA 13.0

Docker 29.x

NVIDIA Container Toolkit

rdma-core

libibverbs

perftest tools

NFS utilities

Python 3

Hugging Face CLI

Git

rsync

The final procedure did not require reinstalling the OS, replacing the NVIDIA driver, downgrading CUDA, repartitioning disks, or changing the existing working QSFP network configuration.

TENSORFOLD AND THE RUNTIME

The core engine comes from the TensorFold-based DeepSeek V4.1 Flash work.

The field-tested installation checked out a specific recipe commit and applied additional fixes from the two-DGX-Spark TensorFold implementation.

The installation also performs ahead-of-time compilation of 144 kernel variants.

Before launch, both ranks are checked to ensure the AOT bundle contains every variant required by the configured runtime.

This is one of the reasons I now consider the installation reproducible rather than merely experimental.

SPECULATIVE DECODING

The server uses DSpark speculative decoding.

The relevant configuration enables DeepSeek V4.1 drafting and speculative draft generation.

This has a substantial effect on generation throughput, particularly for predictable output such as code, structured data, and repetitive token patterns.

That helps explain why structured JSON and counting-style generation can exceed 80-100 tokens per second while unconstrained prose is closer to 47 tokens per second.

This variation is expected.

The actual speed of an MoE/speculative-decoding system should never be represented by a single tokens-per-second number.

The workload matters.

OPENAI-COMPATIBLE API

The server listens through an OpenAI-compatible API.

The served model ID is:

DeepSeek-V4.1-Flash-TF

The primary endpoint runs on port 8888.

Normal OpenAI-style chat completion requests work, along with streaming, tool calls, structured output, reasoning effort controls, and image input.

That means the system can be used by ordinary software expecting an OpenAI-compatible endpoint instead of requiring custom client code.

REMOTE ACCESS THROUGH CLOUDFLARE

I also wanted to use the model remotely rather than only from machines on the local network.

The server is therefore exposed through a Cloudflare Tunnel.

One concern was Cloudflare’s request timeout behavior during enormous prompt-prefill operations.

The TensorFold server sends SSE keepalive traffic every 15 seconds.

That turned out to work well.

A 250K-token streamed request took 153 seconds and still returned HTTP 200.

Even the full 1M-token prefill completed through the Cloudflare route without producing a 524 timeout.

There was one minor Cloudflare issue.

Some stripped-down automated HTTP clients without normal Accept and User-Agent headers can trigger Cloudflare bot detection and receive:

403 error code 1010

Normal clients and Pi Coding Agent do not have this problem when they send normal HTTP headers.

AUTHENTICATION

The TensorFold server does not require an API key by default.

That obviously is not appropriate when exposing the service remotely.

The installation was modified to support an API key file.

The server reads the secret from a file instead of placing the key on the command line, which keeps it out of process listings and Docker command inspection.

Without the Authorization header, the API returns:

401

With the correct Bearer token:

200

That authentication layer can then be combined with Cloudflare Access for additional edge protection.

PI CODING AGENT INTEGRATION

One of my main goals was to use this model directly with Pi Coding Agent.

Pi now recognizes the model as:

DeepSeek V4.1 Flash

with:

1.0M context

32.8K maximum output

reasoning enabled

image input enabled

DeepSeek-format thinking

reasoning-effort support

The Pi configuration points to the OpenAI-compatible endpoint and supplies the API key through an environment variable rather than embedding the secret directly in the main models.json configuration.

Verification included:

Pi successfully listing the model.

A basic arithmetic test:

17 * 23

returning:

391

And a tool-using test confirming that the model can actually operate Pi’s tools rather than simply generate text.

This is particularly exciting to me because a 1-million-token coding-agent context opens up some interesting possibilities for working with very large repositories.

WHAT IMPRESSED ME MOST

There are several parts of this project I consider especially successful.

First, DeepSeek V4.1 Flash actually fits and runs effectively on two relatively small desktop AI systems.

Each GX10 is physically compact, yet together they provide 256 GB of coherent/unified memory plus a very fast direct interconnect.

Second, the performance is much higher than I expected.

I would have considered 20-30 tokens per second a successful result for a model of this scale.

Instead, code generation is around 73 tokens per second, structured generation is over 80, predictable output can exceed 100, and even unconstrained prose remains near 47 tokens per second.

Third, the million-token context really works.

This is not a README claim or a startup parameter.

A prompt containing more than 1.047 million tokens was processed and the target information was successfully retrieved.

Fourth, prompt processing remains respectable even at extreme context lengths.

Approximately 1,232 prompt tokens per second at around one million tokens is impressive for hardware of this size.

Finally, the system integrates cleanly with ordinary OpenAI-compatible clients and Pi Coding Agent.

WHAT I WOULD DO DIFFERENTLY NEXT TIME

The largest lesson from this installation is that I would start from the field-tested TensorFold recipe and its known fixes rather than attempting to reconstruct the setup from generic upstream instructions.

I would also plan storage much earlier.

The model weights themselves are only part of the disk requirement.

Engram source data, packed Engram files, runtime assets, AOT output, prepared TensorFold data, Docker storage, and temporary working files add hundreds of gigabytes.

The high-speed NFS cross-sharing strategy worked very well and is worth considering when each node has limited local NVMe space.

I would also verify the remote user’s actual home directory before using rsync scripts.

That small assumption caused several unnecessary failures.

And I would test the two RoCE rails before doing anything with the model. If TensorFold silently fell back to ordinary TCP networking, it would be easy to spend hours tuning inference settings when the actual bottleneck was the interconnect.

WHAT COMES NEXT

The DeepSeek cluster is now performing well enough that I do not currently want to disturb it.

My next goal is to investigate whether the same level of runtime optimization can improve some of the other large models I run on GX10 hardware.

I currently have GLM 5.3 Flash and MiMo-class models running on similar dual-GX10 configurations, but those deployments have generally operated in roughly the 10-20 token-per-second range.

The DeepSeek installation proves that the GB10 hardware itself is capable of dramatically more when the inference runtime, quantization, speculative decoding, kernel implementation, and network transport are all well matched to the model.

I am therefore particularly interested in seeing whether GLM 5.3 Flash can retain a one-million-token context while moving substantially closer to the performance demonstrated here.

FINAL RESULT

The finished system is:

2 x ASUS Ascent GX10

2 x NVIDIA GB10

256 GB aggregate unified memory

Direct ConnectX-7 / QSFP connection

Dual RoCE rails

TensorFold TP=2

DeepSeek-V4.1-Flash-1017

EXL3 2.8 bpw

DSpark speculative decoding

1,048,576-token context

Four inference slots

Approximately 2.1M-token shared KV pool

OpenAI-compatible API

Pi Coding Agent support

Cloudflare remote access

Verified 1M-token needle retrieval

Approximately 73 tok/s code generation

Approximately 47 tok/s prose

Approximately 81 tok/s structured JSON

Over 100 tok/s on some predictable workloads

Approximately 1,232 prompt tok/s at roughly 1M context

For a two-machine system of this size, I consider the result excellent.

The combination of DeepSeek V4.1 Flash 1017, TensorFold, speculative decoding, 256 GB of GB10 unified memory, and the 200+ Gb/s direct ConnectX-7 fabric turns out to be an unusually effective local inference platform.

This is one of the first local large-model deployments I have completed where the end result does not feel like a technical demonstration.

It feels like a genuinely useful production inference system.

Previous Versions
Version 5Oct 27, 2026 at 10:54

I had ChatGPT provide the following summary of my experience running DeepSeek V4.1 Flash 1017 at 1M Context on Two ASUS Ascent GX10 Systems (the same hardware as DGX Sparks). It contains all the technical details of how I set it up, and the results of the testing. I initially had GPT research the best solutions for hosting the model, and had it prepare a prompt for Pi to install Deepseek locally: https://com-pute.com/nick/ds41f_install_instructions_for_2_clustered_gx10s.txt This is GPT's summary of the exported session HTML after Pi's installation session.

I recently completed one of the more successful local-LLM deployments in my stable:

DeepSeek-V4.1-Flash-1017 running across two ASUS Ascent GX10 systems, each based on NVIDIA’s GB10 platform with 128 GB of unified memory.

The two machines are directly connected through their ConnectX-7/QSFP interfaces and operate as a two-node TensorFold cluster.

The final result exceeded my expectations.

The model is running as an OpenAI-compatible API with:

DeepSeek-V4.1-Flash-1017 EXL3 2.8 bpw quantization TensorFold tensor parallelism, TP=2 Two ASUS Ascent GX10 / GB10 nodes 256 GB total unified memory Direct ConnectX-7 / RoCE interconnect Both logical RoCE rails active 1,048,576-token maximum context Four inference slots Approximately 2.1 million tokens of shared KV capacity DSpark speculative decoding Reasoning support Tool calling Structured output Vision input OpenAI-compatible API Remote access through Cloudflare Tunnel Pi Coding Agent integration

Most importantly, the 1-million-token context was not merely configured. It was actually tested successfully.

A needle-in-a-haystack test containing 1,047,230 prompt tokens successfully retrieved the inserted information. At that point, the two GX10s had only about 7-9 GiB of free memory remaining, so the test was exercising essentially the entire available memory envelope of the cluster.

THE HARDWARE

The cluster consists of:

2 x ASUS Ascent GX10 NVIDIA GB10 128 GB unified memory per machine 256 GB total memory across the pair Direct QSFP / ConnectX-7 connection

The GX10 exposes two logical RoCE interfaces through the direct high-speed connection. Both rails are being used.

The intended network configuration uses jumbo frames with MTU 9000 and RoCEv2. A single rail measures around 109 Gb/s, giving approximately 218 Gb/s across the two logical rails in the tested configuration.

That high-speed interconnect is an important part of why this works so well. Tensor-parallel inference requires constant communication between the two nodes, and using ordinary Ethernet would fundamentally change the performance profile.

THE MODEL

The model being served is:

DeepSeek-V4.1-Flash-1017

The installation uses the approximately 2.8 bpw EXL3 build often referred to as the “flash17” pack.

The model pack itself is approximately 203.8 GB.

TensorFold splits the work across the two GB10 GPUs using TP=2.

The resulting API model ID is:

DeepSeek-V4.1-Flash-TF

The server exposes an OpenAI-compatible /v1 API and supports reasoning, structured output, tools, image input, and streaming.

THE PERFORMANCE

The most surprising part of this project was the actual decode speed.

Measured results on this exact GX10 pair were:

Simple smoke test: 68.5 tokens/second

Counting / highly predictable generation: 103.4 tokens/second

Code generation: 72.8 tokens/second

Long-form prose: 47.4 tokens/second

Structured JSON: 81.3 tokens/second

Reasoning / thinking output: 75.6 tokens/second

These are not theoretical numbers from another system. They were measured on this specific gx10b + gx10d installation.

For my own purposes, the code-generation result is particularly important.

Roughly 70+ tokens per second for coding output is fast enough that the model generally feels immediate during interactive development. In many workflows, model generation speed is no longer the bottleneck.

Before this installation, I had other large models running across dual-GX10 clusters at roughly 10-20 tokens per second.

Going from that performance range to approximately 50-100+ tokens per second depending on workload is a dramatic improvement.

PROMPT PROCESSING PERFORMANCE

DeepSeek’s prefill performance was also strong.

Measured prompt-processing speeds were approximately:

21K-token context: 2,058 tokens/second

85K: 1,512 tokens/second

300K: 1,720 tokens/second

500K: 1,752 tokens/second

Approximately 1M: 1,232 tokens/second

At a full million-token context, the cold prefill required roughly 850 seconds, or a little over 14 minutes.

That sounds long until you consider what is happening:

The system is processing more than one million tokens of context while maintaining more than 1,200 prompt tokens per second.

Once that context has been processed, normal generation remains fast.

This makes caching and persistent sessions particularly valuable. A million-token project context is something you want to ingest once and reuse, not rebuild unnecessarily for every request.

THE 1-MILLION-TOKEN TEST

One of the things I specifically wanted from this system was very long context.

The server is configured for:

1,048,576 tokens

Rather than assuming that setting the context parameter meant the feature actually worked, we performed a real needle-in-a-haystack test.

The final prompt contained:

1,047,230 tokens

The model successfully retrieved the target information.

That test also demonstrated something else important: memory usage at the full context length is extremely tight.

At approximately 1M tokens, only around 7-9 GiB remained free across each node’s memory pool.

In other words, this configuration is using the GX10 pair very efficiently. There is not a huge amount of wasted memory sitting idle.

FOUR INFERENCE SLOTS

The installation is configured with four inference slots and approximately 2.1 million tokens of shared KV capacity.

It is important to understand what that means.

It does not mean four independent one-million-token conversations can all exist simultaneously.

The KV memory pool is shared.

Conceptually, the system can support combinations such as:

one very large 1M-token session plus additional smaller sessions,

two very large sessions approaching 1M each,

four sessions around several hundred thousand tokens each,

or a larger number of ordinary coding/chat sessions.

For agent workflows, this is more useful than simply dedicating the entire machine to one conversation.

STORAGE WAS ONE OF THE HARDER PROBLEMS

A straightforward mirrored installation consumes a lot of storage.

The important components include approximately:

203.8 GB model pack

approximately 95 GB of packed Engram data

approximately 96 GB of prepared runtime data

approximately 191 GB of source Engram files during preparation

Docker images and supporting files

A naive installation can therefore require roughly 600-700 GB of free storage on the head node.

My machines did not have enough convenient free space to duplicate everything unnecessarily.

Instead, we used the 200+ Gb/s direct link to cross-share some of the large read-only assets.

The head GX10 stores the main flash17 model pack and exports it read-only to the worker.

The worker stores the Engram source and exports that read-only back to the head.

This reduced the practical storage footprint to roughly 420 GB per node for the cross-shared configuration.

After the completed installation, disk usage was approximately:

Head: 636 GB used 233 GB free

Worker: 738 GB used 131 GB free

The worker is now the more storage-constrained machine, so I would not casually add another hundred-gigabyte model there without planning the storage first.

THE FIRST MODEL LOAD

The first complete model load took approximately:

443 seconds

There is an important reason for that.

During the first startup, TensorFold creates approximately 96 GB of prepared cache data on each node.

That initial preparation takes several minutes.

Subsequent launches are much faster because those prepared artifacts already exist. The installation guide estimates warm restarts at roughly a minute or two rather than repeating the full preparation process.

THIS INSTALLATION WAS NOT COMPLETELY PAINLESS

Several real issues occurred during the deployment.

That turned out to be useful because the final installation instructions now document fixes for problems that someone following older README files could easily encounter.

Among the problems we encountered:

Remote rsync paths failed because the user home directory on the worker did not match the absolute path on the head.

The fix was to use worker-relative paths such as ~/ rather than copying the head machine’s absolute path.

A Docker builder-image tag was being generated incorrectly.

The script attempted to construct an invalid tag ending in:

:local:builder

That required correcting the tag generation.

Rank 0 initially timed out attempting to load the model because rank 1 had not actually launched correctly.

A nested SSH launcher could also hang unless the worker process was detached using ssh -f.

There were TensorFold AOT kernel problems caused by generating signatures using the wrong reference TensorFold version.

The working procedure uses the TensorFold 1.0.2 Python reference together with the required patches and GEMM graft.

At 1M context, the RoPE file also had to contain enough rows. It is generated with context length plus an additional 2048 rows.

There were also messages indicating that some DeepSeek kernels exceeded the GB10 shared-memory limit. Those messages were informational rather than fatal. TensorFold falls back to kernels with smaller shared-memory requirements.

These details matter because this was not simply a case of cloning a repository and typing one launch command.

There were several places where following an older or generic installation recipe would have resulted in a non-working system.

SOFTWARE ENVIRONMENT

The working configuration uses:

Ubuntu 24.04 / DGX OS environment

NVIDIA kernel 7.0.0 series

NVIDIA driver 580.178.04

CUDA 13.0

Docker 29.x

NVIDIA Container Toolkit

rdma-core

libibverbs

perftest tools

NFS utilities

Python 3

Hugging Face CLI

Git

rsync

The final procedure did not require reinstalling the OS, replacing the NVIDIA driver, downgrading CUDA, repartitioning disks, or changing the existing working QSFP network configuration.

TENSORFOLD AND THE RUNTIME

The core engine comes from the TensorFold-based DeepSeek V4.1 Flash work.

The field-tested installation checked out a specific recipe commit and applied additional fixes from the two-DGX-Spark TensorFold implementation.

The installation also performs ahead-of-time compilation of 144 kernel variants.

Before launch, both ranks are checked to ensure the AOT bundle contains every variant required by the configured runtime.

This is one of the reasons I now consider the installation reproducible rather than merely experimental.

SPECULATIVE DECODING

The server uses DSpark speculative decoding.

The relevant configuration enables DeepSeek V4.1 drafting and speculative draft generation.

This has a substantial effect on generation throughput, particularly for predictable output such as code, structured data, and repetitive token patterns.

That helps explain why structured JSON and counting-style generation can exceed 80-100 tokens per second while unconstrained prose is closer to 47 tokens per second.

This variation is expected.

The actual speed of an MoE/speculative-decoding system should never be represented by a single tokens-per-second number.

The workload matters.

OPENAI-COMPATIBLE API

The server listens through an OpenAI-compatible API.

The served model ID is:

DeepSeek-V4.1-Flash-TF

The primary endpoint runs on port 8888.

Normal OpenAI-style chat completion requests work, along with streaming, tool calls, structured output, reasoning effort controls, and image input.

That means the system can be used by ordinary software expecting an OpenAI-compatible endpoint instead of requiring custom client code.

REMOTE ACCESS THROUGH CLOUDFLARE

I also wanted to use the model remotely rather than only from machines on the local network.

The server is therefore exposed through a Cloudflare Tunnel.

One concern was Cloudflare’s request timeout behavior during enormous prompt-prefill operations.

The TensorFold server sends SSE keepalive traffic every 15 seconds.

That turned out to work well.

A 250K-token streamed request took 153 seconds and still returned HTTP 200.

Even the full 1M-token prefill completed through the Cloudflare route without producing a 524 timeout.

There was one minor Cloudflare issue.

Some stripped-down automated HTTP clients without normal Accept and User-Agent headers can trigger Cloudflare bot detection and receive:

403 error code 1010

Normal clients and Pi Coding Agent do not have this problem when they send normal HTTP headers.

AUTHENTICATION

The TensorFold server does not require an API key by default.

That obviously is not appropriate when exposing the service remotely.

The installation was modified to support an API key file.

The server reads the secret from a file instead of placing the key on the command line, which keeps it out of process listings and Docker command inspection.

Without the Authorization header, the API returns:

401

With the correct Bearer token:

200

That authentication layer can then be combined with Cloudflare Access for additional edge protection.

PI CODING AGENT INTEGRATION

One of my main goals was to use this model directly with Pi Coding Agent.

Pi now recognizes the model as:

DeepSeek V4.1 Flash

with:

1.0M context

32.8K maximum output

reasoning enabled

image input enabled

DeepSeek-format thinking

reasoning-effort support

The Pi configuration points to the OpenAI-compatible endpoint and supplies the API key through an environment variable rather than embedding the secret directly in the main models.json configuration.

Verification included:

Pi successfully listing the model.

A basic arithmetic test:

17 * 23

returning:

391

And a tool-using test confirming that the model can actually operate Pi’s tools rather than simply generate text.

This is particularly exciting to me because a 1-million-token coding-agent context opens up some interesting possibilities for working with very large repositories.

WHAT IMPRESSED ME MOST

There are several parts of this project I consider especially successful.

First, DeepSeek V4.1 Flash actually fits and runs effectively on two relatively small desktop AI systems.

Each GX10 is physically compact, yet together they provide 256 GB of coherent/unified memory plus a very fast direct interconnect.

Second, the performance is much higher than I expected.

I would have considered 20-30 tokens per second a successful result for a model of this scale.

Instead, code generation is around 73 tokens per second, structured generation is over 80, predictable output can exceed 100, and even unconstrained prose remains near 47 tokens per second.

Third, the million-token context really works.

This is not a README claim or a startup parameter.

A prompt containing more than 1.047 million tokens was processed and the target information was successfully retrieved.

Fourth, prompt processing remains respectable even at extreme context lengths.

Approximately 1,232 prompt tokens per second at around one million tokens is impressive for hardware of this size.

Finally, the system integrates cleanly with ordinary OpenAI-compatible clients and Pi Coding Agent.

WHAT I WOULD DO DIFFERENTLY NEXT TIME

The largest lesson from this installation is that I would start from the field-tested TensorFold recipe and its known fixes rather than attempting to reconstruct the setup from generic upstream instructions.

I would also plan storage much earlier.

The model weights themselves are only part of the disk requirement.

Engram source data, packed Engram files, runtime assets, AOT output, prepared TensorFold data, Docker storage, and temporary working files add hundreds of gigabytes.

The high-speed NFS cross-sharing strategy worked very well and is worth considering when each node has limited local NVMe space.

I would also verify the remote user’s actual home directory before using rsync scripts.

That small assumption caused several unnecessary failures.

And I would test the two RoCE rails before doing anything with the model. If TensorFold silently fell back to ordinary TCP networking, it would be easy to spend hours tuning inference settings when the actual bottleneck was the interconnect.

WHAT COMES NEXT

The DeepSeek cluster is now performing well enough that I do not currently want to disturb it.

My next goal is to investigate whether the same level of runtime optimization can improve some of the other large models I run on GX10 hardware.

I currently have GLM 5.3 Flash and MiMo-class models running on similar dual-GX10 configurations, but those deployments have generally operated in roughly the 10-20 token-per-second range.

The DeepSeek installation proves that the GB10 hardware itself is capable of dramatically more when the inference runtime, quantization, speculative decoding, kernel implementation, and network transport are all well matched to the model.

I am therefore particularly interested in seeing whether GLM 5.3 Flash can retain a one-million-token context while moving substantially closer to the performance demonstrated here.

FINAL RESULT

The finished system is:

2 x ASUS Ascent GX10

2 x NVIDIA GB10

256 GB aggregate unified memory

Direct ConnectX-7 / QSFP connection

Dual RoCE rails

TensorFold TP=2

DeepSeek-V4.1-Flash-1017

EXL3 2.8 bpw

DSpark speculative decoding

1,048,576-token context

Four inference slots

Approximately 2.1M-token shared KV pool

OpenAI-compatible API

Pi Coding Agent support

Cloudflare remote access

Verified 1M-token needle retrieval

Approximately 73 tok/s code generation

Approximately 47 tok/s prose

Approximately 81 tok/s structured JSON

Over 100 tok/s on some predictable workloads

Approximately 1,232 prompt tok/s at roughly 1M context

For a two-machine system of this size, I consider the result excellent.

The combination of DeepSeek V4.1 Flash 1017, TensorFold, speculative decoding, 256 GB of GB10 unified memory, and the 200+ Gb/s direct ConnectX-7 fabric turns out to be an unusually effective local inference platform.

This is one of the first local large-model deployments I have completed where the end result does not feel like a technical demonstration.

It feels like a genuinely useful production inference system.

Version 4Oct 27, 2026 at 10:47

I had ChatGPT provide the following summary of my experience running DeepSeek V4.1 Flash 1017 at 1M Context on Two ASUS Ascent GX10 Systems (the same hardware as DGX Sparks). It contains all the technical details of how I set it up, and the results of the testing. I initially had GPT research the best solutions for hosting the model, and had it prepare a prompt for Pi to install Deepseek locally: https://com-pute.com/nick/ds41f_install_instructions_for_2_clustered_gx10s.txt This is GPT's summary of the exported session HTML after Pi's installation session.

I recently completed one of the more successful local-LLM deployments in my stable:

DeepSeek-V4.1-Flash-1017 running across two ASUS Ascent GX10 systems, each based on NVIDIA’s GB10 platform with 128 GB of unified memory.

The two machines are directly connected through their ConnectX-7/QSFP interfaces and operate as a two-node TensorFold cluster.

The final result exceeded my expectations.

The model is running as an OpenAI-compatible API with:

DeepSeek-V4.1-Flash-1017 EXL3 2.8 bpw quantization TensorFold tensor parallelism, TP=2 Two ASUS Ascent GX10 / GB10 nodes 256 GB total unified memory Direct ConnectX-7 / RoCE interconnect Both logical RoCE rails active 1,048,576-token maximum context Four inference slots Approximately 2.1 million tokens of shared KV capacity DSpark speculative decoding Reasoning support Tool calling Structured output Vision input OpenAI-compatible API Remote access through Cloudflare Tunnel Pi Coding Agent integration

Most importantly, the 1-million-token context was not merely configured. It was actually tested successfully.

A needle-in-a-haystack test containing 1,047,230 prompt tokens successfully retrieved the inserted information. At that point, the two GX10s had only about 7-9 GiB of free memory remaining, so the test was exercising essentially the entire available memory envelope of the cluster.

THE HARDWARE

The cluster consists of:

2 x ASUS Ascent GX10 NVIDIA GB10 128 GB unified memory per machine 256 GB total memory across the pair Direct QSFP / ConnectX-7 connection

The GX10 exposes two logical RoCE interfaces through the direct high-speed connection. Both rails are being used.

The intended network configuration uses jumbo frames with MTU 9000 and RoCEv2. A single rail measures around 109 Gb/s, giving approximately 218 Gb/s across the two logical rails in the tested configuration.

That high-speed interconnect is an important part of why this works so well. Tensor-parallel inference requires constant communication between the two nodes, and using ordinary Ethernet would fundamentally change the performance profile.

THE MODEL

The model being served is:

DeepSeek-V4.1-Flash-1017

The installation uses the approximately 2.8 bpw EXL3 build often referred to as the “flash17” pack.

The model pack itself is approximately 203.8 GB.

TensorFold splits the work across the two GB10 GPUs using TP=2.

The resulting API model ID is:

DeepSeek-V4.1-Flash-TF

The server exposes an OpenAI-compatible /v1 API and supports reasoning, structured output, tools, image input, and streaming.

THE PERFORMANCE

The most surprising part of this project was the actual decode speed.

Measured results on this exact GX10 pair were:

Simple smoke test: 68.5 tokens/second

Counting / highly predictable generation: 103.4 tokens/second

Code generation: 72.8 tokens/second

Long-form prose: 47.4 tokens/second

Structured JSON: 81.3 tokens/second

Reasoning / thinking output: 75.6 tokens/second

These are not theoretical numbers from another system. They were measured on this specific gx10b + gx10d installation.

For my own purposes, the code-generation result is particularly important.

Roughly 70+ tokens per second for coding output is fast enough that the model generally feels immediate during interactive development. In many workflows, model generation speed is no longer the bottleneck.

Before this installation, I had other large models running across dual-GX10 clusters at roughly 10-20 tokens per second.

Going from that performance range to approximately 50-100+ tokens per second depending on workload is a dramatic improvement.

PROMPT PROCESSING PERFORMANCE

DeepSeek’s prefill performance was also strong.

Measured prompt-processing speeds were approximately:

21K-token context: 2,058 tokens/second

85K: 1,512 tokens/second

300K: 1,720 tokens/second

500K: 1,752 tokens/second

Approximately 1M: 1,232 tokens/second

At a full million-token context, the cold prefill required roughly 850 seconds, or a little over 14 minutes.

That sounds long until you consider what is happening:

The system is processing more than one million tokens of context while maintaining more than 1,200 prompt tokens per second.

Once that context has been processed, normal generation remains fast.

This makes caching and persistent sessions particularly valuable. A million-token project context is something you want to ingest once and reuse, not rebuild unnecessarily for every request.

THE 1-MILLION-TOKEN TEST

One of the things I specifically wanted from this system was very long context.

The server is configured for:

1,048,576 tokens

Rather than assuming that setting the context parameter meant the feature actually worked, we performed a real needle-in-a-haystack test.

The final prompt contained:

1,047,230 tokens

The model successfully retrieved the target information.

That test also demonstrated something else important: memory usage at the full context length is extremely tight.

At approximately 1M tokens, only around 7-9 GiB remained free across each node’s memory pool.

In other words, this configuration is using the GX10 pair very efficiently. There is not a huge amount of wasted memory sitting idle.

FOUR INFERENCE SLOTS

The installation is configured with four inference slots and approximately 2.1 million tokens of shared KV capacity.

It is important to understand what that means.

It does not mean four independent one-million-token conversations can all exist simultaneously.

The KV memory pool is shared.

Conceptually, the system can support combinations such as:

one very large 1M-token session plus additional smaller sessions,

two very large sessions approaching 1M each,

four sessions around several hundred thousand tokens each,

or a larger number of ordinary coding/chat sessions.

For agent workflows, this is more useful than simply dedicating the entire machine to one conversation.

STORAGE WAS ONE OF THE HARDER PROBLEMS

A straightforward mirrored installation consumes a lot of storage.

The important components include approximately:

203.8 GB model pack

approximately 95 GB of packed Engram data

approximately 96 GB of prepared runtime data

approximately 191 GB of source Engram files during preparation

Docker images and supporting files

A naive installation can therefore require roughly 600-700 GB of free storage on the head node.

My machines did not have enough convenient free space to duplicate everything unnecessarily.

Instead, we used the 200+ Gb/s direct link to cross-share some of the large read-only assets.

The head GX10 stores the main flash17 model pack and exports it read-only to the worker.

The worker stores the Engram source and exports that read-only back to the head.

This reduced the practical storage footprint to roughly 420 GB per node for the cross-shared configuration.

After the completed installation, disk usage was approximately:

Head: 636 GB used 233 GB free

Worker: 738 GB used 131 GB free

The worker is now the more storage-constrained machine, so I would not casually add another hundred-gigabyte model there without planning the storage first.

THE FIRST MODEL LOAD

The first complete model load took approximately:

443 seconds

There is an important reason for that.

During the first startup, TensorFold creates approximately 96 GB of prepared cache data on each node.

That initial preparation takes several minutes.

Subsequent launches are much faster because those prepared artifacts already exist. The installation guide estimates warm restarts at roughly a minute or two rather than repeating the full preparation process.

THIS INSTALLATION WAS NOT COMPLETELY PAINLESS

Several real issues occurred during the deployment.

That turned out to be useful because the final installation instructions now document fixes for problems that someone following older README files could easily encounter.

Among the problems we encountered:

Remote rsync paths failed because the user home directory on the worker did not match the absolute path on the head.

The fix was to use worker-relative paths such as ~/ rather than copying the head machine’s absolute path.

A Docker builder-image tag was being generated incorrectly.

The script attempted to construct an invalid tag ending in:

:local:builder

That required correcting the tag generation.

Rank 0 initially timed out attempting to load the model because rank 1 had not actually launched correctly.

A nested SSH launcher could also hang unless the worker process was detached using ssh -f.

There were TensorFold AOT kernel problems caused by generating signatures using the wrong reference TensorFold version.

The working procedure uses the TensorFold 1.0.2 Python reference together with the required patches and GEMM graft.

At 1M context, the RoPE file also had to contain enough rows. It is generated with context length plus an additional 2048 rows.

There were also messages indicating that some DeepSeek kernels exceeded the GB10 shared-memory limit. Those messages were informational rather than fatal. TensorFold falls back to kernels with smaller shared-memory requirements.

These details matter because this was not simply a case of cloning a repository and typing one launch command.

There were several places where following an older or generic installation recipe would have resulted in a non-working system.

SOFTWARE ENVIRONMENT

The working configuration uses:

Ubuntu 24.04 / DGX OS environment

NVIDIA kernel 7.0.0 series

NVIDIA driver 580.178.04

CUDA 13.0

Docker 29.x

NVIDIA Container Toolkit

rdma-core

libibverbs

perftest tools

NFS utilities

Python 3

Hugging Face CLI

Git

rsync

The final procedure did not require reinstalling the OS, replacing the NVIDIA driver, downgrading CUDA, repartitioning disks, or changing the existing working QSFP network configuration.

TENSORFOLD AND THE RUNTIME

The core engine comes from the TensorFold-based DeepSeek V4.1 Flash work.

The field-tested installation checked out a specific recipe commit and applied additional fixes from the two-DGX-Spark TensorFold implementation.

The installation also performs ahead-of-time compilation of 144 kernel variants.

Before launch, both ranks are checked to ensure the AOT bundle contains every variant required by the configured runtime.

This is one of the reasons I now consider the installation reproducible rather than merely experimental.

SPECULATIVE DECODING

The server uses DSpark speculative decoding.

The relevant configuration enables DeepSeek V4.1 drafting and speculative draft generation.

This has a substantial effect on generation throughput, particularly for predictable output such as code, structured data, and repetitive token patterns.

That helps explain why structured JSON and counting-style generation can exceed 80-100 tokens per second while unconstrained prose is closer to 47 tokens per second.

This variation is expected.

The actual speed of an MoE/speculative-decoding system should never be represented by a single tokens-per-second number.

The workload matters.

OPENAI-COMPATIBLE API

The server listens through an OpenAI-compatible API.

The served model ID is:

DeepSeek-V4.1-Flash-TF

The primary endpoint runs on port 8888.

Normal OpenAI-style chat completion requests work, along with streaming, tool calls, structured output, reasoning effort controls, and image input.

That means the system can be used by ordinary software expecting an OpenAI-compatible endpoint instead of requiring custom client code.

REMOTE ACCESS THROUGH CLOUDFLARE

I also wanted to use the model remotely rather than only from machines on the local network.

The server is therefore exposed through a Cloudflare Tunnel.

One concern was Cloudflare’s request timeout behavior during enormous prompt-prefill operations.

The TensorFold server sends SSE keepalive traffic every 15 seconds.

That turned out to work well.

A 250K-token streamed request took 153 seconds and still returned HTTP 200.

Even the full 1M-token prefill completed through the Cloudflare route without producing a 524 timeout.

There was one minor Cloudflare issue.

Some stripped-down automated HTTP clients without normal Accept and User-Agent headers can trigger Cloudflare bot detection and receive:

403 error code 1010

Normal clients and Pi Coding Agent do not have this problem when they send normal HTTP headers.

AUTHENTICATION

The TensorFold server does not require an API key by default.

That obviously is not appropriate when exposing the service remotely.

The installation was modified to support an API key file.

The server reads the secret from a file instead of placing the key on the command line, which keeps it out of process listings and Docker command inspection.

Without the Authorization header, the API returns:

401

With the correct Bearer token:

200

That authentication layer can then be combined with Cloudflare Access for additional edge protection.

PI CODING AGENT INTEGRATION

One of my main goals was to use this model directly with Pi Coding Agent.

Pi now recognizes the model as:

DeepSeek V4.1 Flash

with:

1.0M context

32.8K maximum output

reasoning enabled

image input enabled

DeepSeek-format thinking

reasoning-effort support

The Pi configuration points to the OpenAI-compatible endpoint and supplies the API key through an environment variable rather than embedding the secret directly in the main models.json configuration.

Verification included:

Pi successfully listing the model.

A basic arithmetic test:

17 * 23

returning:

391

And a tool-using test confirming that the model can actually operate Pi’s tools rather than simply generate text.

This is particularly exciting to me because a 1-million-token coding-agent context opens up some interesting possibilities for working with very large repositories.

WHAT IMPRESSED ME MOST

There are several parts of this project I consider especially successful.

First, DeepSeek V4.1 Flash actually fits and runs effectively on two relatively small desktop AI systems.

Each GX10 is physically compact, yet together they provide 256 GB of coherent/unified memory plus a very fast direct interconnect.

Second, the performance is much higher than I expected.

I would have considered 20-30 tokens per second a successful result for a model of this scale.

Instead, code generation is around 73 tokens per second, structured generation is over 80, predictable output can exceed 100, and even unconstrained prose remains near 47 tokens per second.

Third, the million-token context really works.

This is not a README claim or a startup parameter.

A prompt containing more than 1.047 million tokens was processed and the target information was successfully retrieved.

Fourth, prompt processing remains respectable even at extreme context lengths.

Approximately 1,232 prompt tokens per second at around one million tokens is impressive for hardware of this size.

Finally, the system integrates cleanly with ordinary OpenAI-compatible clients and Pi Coding Agent.

WHAT I WOULD DO DIFFERENTLY NEXT TIME

The largest lesson from this installation is that I would start from the field-tested TensorFold recipe and its known fixes rather than attempting to reconstruct the setup from generic upstream instructions.

I would also plan storage much earlier.

The model weights themselves are only part of the disk requirement.

Engram source data, packed Engram files, runtime assets, AOT output, prepared TensorFold data, Docker storage, and temporary working files add hundreds of gigabytes.

The high-speed NFS cross-sharing strategy worked very well and is worth considering when each node has limited local NVMe space.

I would also verify the remote user’s actual home directory before using rsync scripts.

That small assumption caused several unnecessary failures.

And I would test the two RoCE rails before doing anything with the model. If TensorFold silently fell back to ordinary TCP networking, it would be easy to spend hours tuning inference settings when the actual bottleneck was the interconnect.

WHAT COMES NEXT

The DeepSeek cluster is now performing well enough that I do not currently want to disturb it.

My next goal is to investigate whether the same level of runtime optimization can improve some of the other large models I run on GX10 hardware.

I currently have GLM 5.3 Flash and MiMo-class models running on similar dual-GX10 configurations, but those deployments have generally operated in roughly the 10-20 token-per-second range.

The DeepSeek installation proves that the GB10 hardware itself is capable of dramatically more when the inference runtime, quantization, speculative decoding, kernel implementation, and network transport are all well matched to the model.

I am therefore particularly interested in seeing whether GLM 5.3 Flash can retain a one-million-token context while moving substantially closer to the performance demonstrated here.

FINAL RESULT

The finished system is:

2 x ASUS Ascent GX10

2 x NVIDIA GB10

256 GB aggregate unified memory

Direct ConnectX-7 / QSFP connection

Dual RoCE rails

TensorFold TP=2

DeepSeek-V4.1-Flash-1017

EXL3 2.8 bpw

DSpark speculative decoding

1,048,576-token context

Four inference slots

Approximately 2.1M-token shared KV pool

OpenAI-compatible API

Pi Coding Agent support

Cloudflare remote access

Verified 1M-token needle retrieval

Approximately 73 tok/s code generation

Approximately 47 tok/s prose

Approximately 81 tok/s structured JSON

Over 100 tok/s on some predictable workloads

Approximately 1,232 prompt tok/s at roughly 1M context

For a two-machine system of this size, I consider the result excellent.

The combination of DeepSeek V4.1 Flash 1017, TensorFold, speculative decoding, 256 GB of GB10 unified memory, and the 200+ Gb/s direct ConnectX-7 fabric turns out to be an unusually effective local inference platform.

This is one of the first local large-model deployments I have completed where the end result does not feel like a technical demonstration.

It feels like a genuinely useful production inference system.

Version 3Oct 27, 2026 at 10:47

I had ChatGPT provide the following summary of my experience running DeepSeek V4.1 Flash 1017 at 1M Context on Two ASUS Ascent GX10 Systems. It contains all the technical details of how I set it up, and the results of the testing. I initially had GPT research the best solutions for hosting the model, and had it prepare a prompt for Pi to install Deepseek locally: https://com-pute.com/nick/ds41f_install_instructions_for_2_clustered_gx10s.txt This is GPT's summary of the exported session HTML after Pi's installation session.

I recently completed one of the more successful local-LLM deployments in my stable:

DeepSeek-V4.1-Flash-1017 running across two ASUS Ascent GX10 systems, each based on NVIDIA’s GB10 platform with 128 GB of unified memory.

The two machines are directly connected through their ConnectX-7/QSFP interfaces and operate as a two-node TensorFold cluster.

The final result exceeded my expectations.

The model is running as an OpenAI-compatible API with:

DeepSeek-V4.1-Flash-1017 EXL3 2.8 bpw quantization TensorFold tensor parallelism, TP=2 Two ASUS Ascent GX10 / GB10 nodes 256 GB total unified memory Direct ConnectX-7 / RoCE interconnect Both logical RoCE rails active 1,048,576-token maximum context Four inference slots Approximately 2.1 million tokens of shared KV capacity DSpark speculative decoding Reasoning support Tool calling Structured output Vision input OpenAI-compatible API Remote access through Cloudflare Tunnel Pi Coding Agent integration

Most importantly, the 1-million-token context was not merely configured. It was actually tested successfully.

A needle-in-a-haystack test containing 1,047,230 prompt tokens successfully retrieved the inserted information. At that point, the two GX10s had only about 7-9 GiB of free memory remaining, so the test was exercising essentially the entire available memory envelope of the cluster.

THE HARDWARE

The cluster consists of:

2 x ASUS Ascent GX10 NVIDIA GB10 128 GB unified memory per machine 256 GB total memory across the pair Direct QSFP / ConnectX-7 connection

The GX10 exposes two logical RoCE interfaces through the direct high-speed connection. Both rails are being used.

The intended network configuration uses jumbo frames with MTU 9000 and RoCEv2. A single rail measures around 109 Gb/s, giving approximately 218 Gb/s across the two logical rails in the tested configuration.

That high-speed interconnect is an important part of why this works so well. Tensor-parallel inference requires constant communication between the two nodes, and using ordinary Ethernet would fundamentally change the performance profile.

THE MODEL

The model being served is:

DeepSeek-V4.1-Flash-1017

The installation uses the approximately 2.8 bpw EXL3 build often referred to as the “flash17” pack.

The model pack itself is approximately 203.8 GB.

TensorFold splits the work across the two GB10 GPUs using TP=2.

The resulting API model ID is:

DeepSeek-V4.1-Flash-TF

The server exposes an OpenAI-compatible /v1 API and supports reasoning, structured output, tools, image input, and streaming.

THE PERFORMANCE

The most surprising part of this project was the actual decode speed.

Measured results on this exact GX10 pair were:

Simple smoke test: 68.5 tokens/second

Counting / highly predictable generation: 103.4 tokens/second

Code generation: 72.8 tokens/second

Long-form prose: 47.4 tokens/second

Structured JSON: 81.3 tokens/second

Reasoning / thinking output: 75.6 tokens/second

These are not theoretical numbers from another system. They were measured on this specific gx10b + gx10d installation.

For my own purposes, the code-generation result is particularly important.

Roughly 70+ tokens per second for coding output is fast enough that the model generally feels immediate during interactive development. In many workflows, model generation speed is no longer the bottleneck.

Before this installation, I had other large models running across dual-GX10 clusters at roughly 10-20 tokens per second.

Going from that performance range to approximately 50-100+ tokens per second depending on workload is a dramatic improvement.

PROMPT PROCESSING PERFORMANCE

DeepSeek’s prefill performance was also strong.

Measured prompt-processing speeds were approximately:

21K-token context: 2,058 tokens/second

85K: 1,512 tokens/second

300K: 1,720 tokens/second

500K: 1,752 tokens/second

Approximately 1M: 1,232 tokens/second

At a full million-token context, the cold prefill required roughly 850 seconds, or a little over 14 minutes.

That sounds long until you consider what is happening:

The system is processing more than one million tokens of context while maintaining more than 1,200 prompt tokens per second.

Once that context has been processed, normal generation remains fast.

This makes caching and persistent sessions particularly valuable. A million-token project context is something you want to ingest once and reuse, not rebuild unnecessarily for every request.

THE 1-MILLION-TOKEN TEST

One of the things I specifically wanted from this system was very long context.

The server is configured for:

1,048,576 tokens

Rather than assuming that setting the context parameter meant the feature actually worked, we performed a real needle-in-a-haystack test.

The final prompt contained:

1,047,230 tokens

The model successfully retrieved the target information.

That test also demonstrated something else important: memory usage at the full context length is extremely tight.

At approximately 1M tokens, only around 7-9 GiB remained free across each node’s memory pool.

In other words, this configuration is using the GX10 pair very efficiently. There is not a huge amount of wasted memory sitting idle.

FOUR INFERENCE SLOTS

The installation is configured with four inference slots and approximately 2.1 million tokens of shared KV capacity.

It is important to understand what that means.

It does not mean four independent one-million-token conversations can all exist simultaneously.

The KV memory pool is shared.

Conceptually, the system can support combinations such as:

one very large 1M-token session plus additional smaller sessions,

two very large sessions approaching 1M each,

four sessions around several hundred thousand tokens each,

or a larger number of ordinary coding/chat sessions.

For agent workflows, this is more useful than simply dedicating the entire machine to one conversation.

STORAGE WAS ONE OF THE HARDER PROBLEMS

A straightforward mirrored installation consumes a lot of storage.

The important components include approximately:

203.8 GB model pack

approximately 95 GB of packed Engram data

approximately 96 GB of prepared runtime data

approximately 191 GB of source Engram files during preparation

Docker images and supporting files

A naive installation can therefore require roughly 600-700 GB of free storage on the head node.

My machines did not have enough convenient free space to duplicate everything unnecessarily.

Instead, we used the 200+ Gb/s direct link to cross-share some of the large read-only assets.

The head GX10 stores the main flash17 model pack and exports it read-only to the worker.

The worker stores the Engram source and exports that read-only back to the head.

This reduced the practical storage footprint to roughly 420 GB per node for the cross-shared configuration.

After the completed installation, disk usage was approximately:

Head: 636 GB used 233 GB free

Worker: 738 GB used 131 GB free

The worker is now the more storage-constrained machine, so I would not casually add another hundred-gigabyte model there without planning the storage first.

THE FIRST MODEL LOAD

The first complete model load took approximately:

443 seconds

There is an important reason for that.

During the first startup, TensorFold creates approximately 96 GB of prepared cache data on each node.

That initial preparation takes several minutes.

Subsequent launches are much faster because those prepared artifacts already exist. The installation guide estimates warm restarts at roughly a minute or two rather than repeating the full preparation process.

THIS INSTALLATION WAS NOT COMPLETELY PAINLESS

Several real issues occurred during the deployment.

That turned out to be useful because the final installation instructions now document fixes for problems that someone following older README files could easily encounter.

Among the problems we encountered:

Remote rsync paths failed because the user home directory on the worker did not match the absolute path on the head.

The fix was to use worker-relative paths such as ~/ rather than copying the head machine’s absolute path.

A Docker builder-image tag was being generated incorrectly.

The script attempted to construct an invalid tag ending in:

:local:builder

That required correcting the tag generation.

Rank 0 initially timed out attempting to load the model because rank 1 had not actually launched correctly.

A nested SSH launcher could also hang unless the worker process was detached using ssh -f.

There were TensorFold AOT kernel problems caused by generating signatures using the wrong reference TensorFold version.

The working procedure uses the TensorFold 1.0.2 Python reference together with the required patches and GEMM graft.

At 1M context, the RoPE file also had to contain enough rows. It is generated with context length plus an additional 2048 rows.

There were also messages indicating that some DeepSeek kernels exceeded the GB10 shared-memory limit. Those messages were informational rather than fatal. TensorFold falls back to kernels with smaller shared-memory requirements.

These details matter because this was not simply a case of cloning a repository and typing one launch command.

There were several places where following an older or generic installation recipe would have resulted in a non-working system.

SOFTWARE ENVIRONMENT

The working configuration uses:

Ubuntu 24.04 / DGX OS environment

NVIDIA kernel 7.0.0 series

NVIDIA driver 580.178.04

CUDA 13.0

Docker 29.x

NVIDIA Container Toolkit

rdma-core

libibverbs

perftest tools

NFS utilities

Python 3

Hugging Face CLI

Git

rsync

The final procedure did not require reinstalling the OS, replacing the NVIDIA driver, downgrading CUDA, repartitioning disks, or changing the existing working QSFP network configuration.

TENSORFOLD AND THE RUNTIME

The core engine comes from the TensorFold-based DeepSeek V4.1 Flash work.

The field-tested installation checked out a specific recipe commit and applied additional fixes from the two-DGX-Spark TensorFold implementation.

The installation also performs ahead-of-time compilation of 144 kernel variants.

Before launch, both ranks are checked to ensure the AOT bundle contains every variant required by the configured runtime.

This is one of the reasons I now consider the installation reproducible rather than merely experimental.

SPECULATIVE DECODING

The server uses DSpark speculative decoding.

The relevant configuration enables DeepSeek V4.1 drafting and speculative draft generation.

This has a substantial effect on generation throughput, particularly for predictable output such as code, structured data, and repetitive token patterns.

That helps explain why structured JSON and counting-style generation can exceed 80-100 tokens per second while unconstrained prose is closer to 47 tokens per second.

This variation is expected.

The actual speed of an MoE/speculative-decoding system should never be represented by a single tokens-per-second number.

The workload matters.

OPENAI-COMPATIBLE API

The server listens through an OpenAI-compatible API.

The served model ID is:

DeepSeek-V4.1-Flash-TF

The primary endpoint runs on port 8888.

Normal OpenAI-style chat completion requests work, along with streaming, tool calls, structured output, reasoning effort controls, and image input.

That means the system can be used by ordinary software expecting an OpenAI-compatible endpoint instead of requiring custom client code.

REMOTE ACCESS THROUGH CLOUDFLARE

I also wanted to use the model remotely rather than only from machines on the local network.

The server is therefore exposed through a Cloudflare Tunnel.

One concern was Cloudflare’s request timeout behavior during enormous prompt-prefill operations.

The TensorFold server sends SSE keepalive traffic every 15 seconds.

That turned out to work well.

A 250K-token streamed request took 153 seconds and still returned HTTP 200.

Even the full 1M-token prefill completed through the Cloudflare route without producing a 524 timeout.

There was one minor Cloudflare issue.

Some stripped-down automated HTTP clients without normal Accept and User-Agent headers can trigger Cloudflare bot detection and receive:

403 error code 1010

Normal clients and Pi Coding Agent do not have this problem when they send normal HTTP headers.

AUTHENTICATION

The TensorFold server does not require an API key by default.

That obviously is not appropriate when exposing the service remotely.

The installation was modified to support an API key file.

The server reads the secret from a file instead of placing the key on the command line, which keeps it out of process listings and Docker command inspection.

Without the Authorization header, the API returns:

401

With the correct Bearer token:

200

That authentication layer can then be combined with Cloudflare Access for additional edge protection.

PI CODING AGENT INTEGRATION

One of my main goals was to use this model directly with Pi Coding Agent.

Pi now recognizes the model as:

DeepSeek V4.1 Flash

with:

1.0M context

32.8K maximum output

reasoning enabled

image input enabled

DeepSeek-format thinking

reasoning-effort support

The Pi configuration points to the OpenAI-compatible endpoint and supplies the API key through an environment variable rather than embedding the secret directly in the main models.json configuration.

Verification included:

Pi successfully listing the model.

A basic arithmetic test:

17 * 23

returning:

391

And a tool-using test confirming that the model can actually operate Pi’s tools rather than simply generate text.

This is particularly exciting to me because a 1-million-token coding-agent context opens up some interesting possibilities for working with very large repositories.

WHAT IMPRESSED ME MOST

There are several parts of this project I consider especially successful.

First, DeepSeek V4.1 Flash actually fits and runs effectively on two relatively small desktop AI systems.

Each GX10 is physically compact, yet together they provide 256 GB of coherent/unified memory plus a very fast direct interconnect.

Second, the performance is much higher than I expected.

I would have considered 20-30 tokens per second a successful result for a model of this scale.

Instead, code generation is around 73 tokens per second, structured generation is over 80, predictable output can exceed 100, and even unconstrained prose remains near 47 tokens per second.

Third, the million-token context really works.

This is not a README claim or a startup parameter.

A prompt containing more than 1.047 million tokens was processed and the target information was successfully retrieved.

Fourth, prompt processing remains respectable even at extreme context lengths.

Approximately 1,232 prompt tokens per second at around one million tokens is impressive for hardware of this size.

Finally, the system integrates cleanly with ordinary OpenAI-compatible clients and Pi Coding Agent.

WHAT I WOULD DO DIFFERENTLY NEXT TIME

The largest lesson from this installation is that I would start from the field-tested TensorFold recipe and its known fixes rather than attempting to reconstruct the setup from generic upstream instructions.

I would also plan storage much earlier.

The model weights themselves are only part of the disk requirement.

Engram source data, packed Engram files, runtime assets, AOT output, prepared TensorFold data, Docker storage, and temporary working files add hundreds of gigabytes.

The high-speed NFS cross-sharing strategy worked very well and is worth considering when each node has limited local NVMe space.

I would also verify the remote user’s actual home directory before using rsync scripts.

That small assumption caused several unnecessary failures.

And I would test the two RoCE rails before doing anything with the model. If TensorFold silently fell back to ordinary TCP networking, it would be easy to spend hours tuning inference settings when the actual bottleneck was the interconnect.

WHAT COMES NEXT

The DeepSeek cluster is now performing well enough that I do not currently want to disturb it.

My next goal is to investigate whether the same level of runtime optimization can improve some of the other large models I run on GX10 hardware.

I currently have GLM 5.3 Flash and MiMo-class models running on similar dual-GX10 configurations, but those deployments have generally operated in roughly the 10-20 token-per-second range.

The DeepSeek installation proves that the GB10 hardware itself is capable of dramatically more when the inference runtime, quantization, speculative decoding, kernel implementation, and network transport are all well matched to the model.

I am therefore particularly interested in seeing whether GLM 5.3 Flash can retain a one-million-token context while moving substantially closer to the performance demonstrated here.

FINAL RESULT

The finished system is:

2 x ASUS Ascent GX10

2 x NVIDIA GB10

256 GB aggregate unified memory

Direct ConnectX-7 / QSFP connection

Dual RoCE rails

TensorFold TP=2

DeepSeek-V4.1-Flash-1017

EXL3 2.8 bpw

DSpark speculative decoding

1,048,576-token context

Four inference slots

Approximately 2.1M-token shared KV pool

OpenAI-compatible API

Pi Coding Agent support

Cloudflare remote access

Verified 1M-token needle retrieval

Approximately 73 tok/s code generation

Approximately 47 tok/s prose

Approximately 81 tok/s structured JSON

Over 100 tok/s on some predictable workloads

Approximately 1,232 prompt tok/s at roughly 1M context

For a two-machine system of this size, I consider the result excellent.

The combination of DeepSeek V4.1 Flash 1017, TensorFold, speculative decoding, 256 GB of GB10 unified memory, and the 200+ Gb/s direct ConnectX-7 fabric turns out to be an unusually effective local inference platform.

This is one of the first local large-model deployments I have completed where the end result does not feel like a technical demonstration.

It feels like a genuinely useful production inference system.

Version 2Oct 27, 2026 at 10:46

I had GPT provide the following summary of my experience running DeepSeek V4.1 Flash 1017 at 1M Context on Two ASUS Ascent GX10 Systems. It contains all the technical details of how it set it up, and the results of the testing. I had GPT research the best solutions for hosting the model, and prepare a prompt for Pi to install it. This is GPT's summary of the exported session HTML from Pi's installation session.

I recently completed one of the more successful local-LLM deployments in my stable:

DeepSeek-V4.1-Flash-1017 running across two ASUS Ascent GX10 systems, each based on NVIDIA’s GB10 platform with 128 GB of unified memory.

The two machines are directly connected through their ConnectX-7/QSFP interfaces and operate as a two-node TensorFold cluster.

The final result exceeded my expectations.

The model is running as an OpenAI-compatible API with:

DeepSeek-V4.1-Flash-1017 EXL3 2.8 bpw quantization TensorFold tensor parallelism, TP=2 Two ASUS Ascent GX10 / GB10 nodes 256 GB total unified memory Direct ConnectX-7 / RoCE interconnect Both logical RoCE rails active 1,048,576-token maximum context Four inference slots Approximately 2.1 million tokens of shared KV capacity DSpark speculative decoding Reasoning support Tool calling Structured output Vision input OpenAI-compatible API Remote access through Cloudflare Tunnel Pi Coding Agent integration

Most importantly, the 1-million-token context was not merely configured. It was actually tested successfully.

A needle-in-a-haystack test containing 1,047,230 prompt tokens successfully retrieved the inserted information. At that point, the two GX10s had only about 7-9 GiB of free memory remaining, so the test was exercising essentially the entire available memory envelope of the cluster.

THE HARDWARE

The cluster consists of:

2 x ASUS Ascent GX10 NVIDIA GB10 128 GB unified memory per machine 256 GB total memory across the pair Direct QSFP / ConnectX-7 connection

The GX10 exposes two logical RoCE interfaces through the direct high-speed connection. Both rails are being used.

The intended network configuration uses jumbo frames with MTU 9000 and RoCEv2. A single rail measures around 109 Gb/s, giving approximately 218 Gb/s across the two logical rails in the tested configuration.

That high-speed interconnect is an important part of why this works so well. Tensor-parallel inference requires constant communication between the two nodes, and using ordinary Ethernet would fundamentally change the performance profile.

THE MODEL

The model being served is:

DeepSeek-V4.1-Flash-1017

The installation uses the approximately 2.8 bpw EXL3 build often referred to as the “flash17” pack.

The model pack itself is approximately 203.8 GB.

TensorFold splits the work across the two GB10 GPUs using TP=2.

The resulting API model ID is:

DeepSeek-V4.1-Flash-TF

The server exposes an OpenAI-compatible /v1 API and supports reasoning, structured output, tools, image input, and streaming.

THE PERFORMANCE

The most surprising part of this project was the actual decode speed.

Measured results on this exact GX10 pair were:

Simple smoke test: 68.5 tokens/second

Counting / highly predictable generation: 103.4 tokens/second

Code generation: 72.8 tokens/second

Long-form prose: 47.4 tokens/second

Structured JSON: 81.3 tokens/second

Reasoning / thinking output: 75.6 tokens/second

These are not theoretical numbers from another system. They were measured on this specific gx10b + gx10d installation.

For my own purposes, the code-generation result is particularly important.

Roughly 70+ tokens per second for coding output is fast enough that the model generally feels immediate during interactive development. In many workflows, model generation speed is no longer the bottleneck.

Before this installation, I had other large models running across dual-GX10 clusters at roughly 10-20 tokens per second.

Going from that performance range to approximately 50-100+ tokens per second depending on workload is a dramatic improvement.

PROMPT PROCESSING PERFORMANCE

DeepSeek’s prefill performance was also strong.

Measured prompt-processing speeds were approximately:

21K-token context: 2,058 tokens/second

85K: 1,512 tokens/second

300K: 1,720 tokens/second

500K: 1,752 tokens/second

Approximately 1M: 1,232 tokens/second

At a full million-token context, the cold prefill required roughly 850 seconds, or a little over 14 minutes.

That sounds long until you consider what is happening:

The system is processing more than one million tokens of context while maintaining more than 1,200 prompt tokens per second.

Once that context has been processed, normal generation remains fast.

This makes caching and persistent sessions particularly valuable. A million-token project context is something you want to ingest once and reuse, not rebuild unnecessarily for every request.

THE 1-MILLION-TOKEN TEST

One of the things I specifically wanted from this system was very long context.

The server is configured for:

1,048,576 tokens

Rather than assuming that setting the context parameter meant the feature actually worked, we performed a real needle-in-a-haystack test.

The final prompt contained:

1,047,230 tokens

The model successfully retrieved the target information.

That test also demonstrated something else important: memory usage at the full context length is extremely tight.

At approximately 1M tokens, only around 7-9 GiB remained free across each node’s memory pool.

In other words, this configuration is using the GX10 pair very efficiently. There is not a huge amount of wasted memory sitting idle.

FOUR INFERENCE SLOTS

The installation is configured with four inference slots and approximately 2.1 million tokens of shared KV capacity.

It is important to understand what that means.

It does not mean four independent one-million-token conversations can all exist simultaneously.

The KV memory pool is shared.

Conceptually, the system can support combinations such as:

one very large 1M-token session plus additional smaller sessions,

two very large sessions approaching 1M each,

four sessions around several hundred thousand tokens each,

or a larger number of ordinary coding/chat sessions.

For agent workflows, this is more useful than simply dedicating the entire machine to one conversation.

STORAGE WAS ONE OF THE HARDER PROBLEMS

A straightforward mirrored installation consumes a lot of storage.

The important components include approximately:

203.8 GB model pack

approximately 95 GB of packed Engram data

approximately 96 GB of prepared runtime data

approximately 191 GB of source Engram files during preparation

Docker images and supporting files

A naive installation can therefore require roughly 600-700 GB of free storage on the head node.

My machines did not have enough convenient free space to duplicate everything unnecessarily.

Instead, we used the 200+ Gb/s direct link to cross-share some of the large read-only assets.

The head GX10 stores the main flash17 model pack and exports it read-only to the worker.

The worker stores the Engram source and exports that read-only back to the head.

This reduced the practical storage footprint to roughly 420 GB per node for the cross-shared configuration.

After the completed installation, disk usage was approximately:

Head: 636 GB used 233 GB free

Worker: 738 GB used 131 GB free

The worker is now the more storage-constrained machine, so I would not casually add another hundred-gigabyte model there without planning the storage first.

THE FIRST MODEL LOAD

The first complete model load took approximately:

443 seconds

There is an important reason for that.

During the first startup, TensorFold creates approximately 96 GB of prepared cache data on each node.

That initial preparation takes several minutes.

Subsequent launches are much faster because those prepared artifacts already exist. The installation guide estimates warm restarts at roughly a minute or two rather than repeating the full preparation process.

THIS INSTALLATION WAS NOT COMPLETELY PAINLESS

Several real issues occurred during the deployment.

That turned out to be useful because the final installation instructions now document fixes for problems that someone following older README files could easily encounter.

Among the problems we encountered:

Remote rsync paths failed because the user home directory on the worker did not match the absolute path on the head.

The fix was to use worker-relative paths such as ~/ rather than copying the head machine’s absolute path.

A Docker builder-image tag was being generated incorrectly.

The script attempted to construct an invalid tag ending in:

:local:builder

That required correcting the tag generation.

Rank 0 initially timed out attempting to load the model because rank 1 had not actually launched correctly.

A nested SSH launcher could also hang unless the worker process was detached using ssh -f.

There were TensorFold AOT kernel problems caused by generating signatures using the wrong reference TensorFold version.

The working procedure uses the TensorFold 1.0.2 Python reference together with the required patches and GEMM graft.

At 1M context, the RoPE file also had to contain enough rows. It is generated with context length plus an additional 2048 rows.

There were also messages indicating that some DeepSeek kernels exceeded the GB10 shared-memory limit. Those messages were informational rather than fatal. TensorFold falls back to kernels with smaller shared-memory requirements.

These details matter because this was not simply a case of cloning a repository and typing one launch command.

There were several places where following an older or generic installation recipe would have resulted in a non-working system.

SOFTWARE ENVIRONMENT

The working configuration uses:

Ubuntu 24.04 / DGX OS environment

NVIDIA kernel 7.0.0 series

NVIDIA driver 580.178.04

CUDA 13.0

Docker 29.x

NVIDIA Container Toolkit

rdma-core

libibverbs

perftest tools

NFS utilities

Python 3

Hugging Face CLI

Git

rsync

The final procedure did not require reinstalling the OS, replacing the NVIDIA driver, downgrading CUDA, repartitioning disks, or changing the existing working QSFP network configuration.

TENSORFOLD AND THE RUNTIME

The core engine comes from the TensorFold-based DeepSeek V4.1 Flash work.

The field-tested installation checked out a specific recipe commit and applied additional fixes from the two-DGX-Spark TensorFold implementation.

The installation also performs ahead-of-time compilation of 144 kernel variants.

Before launch, both ranks are checked to ensure the AOT bundle contains every variant required by the configured runtime.

This is one of the reasons I now consider the installation reproducible rather than merely experimental.

SPECULATIVE DECODING

The server uses DSpark speculative decoding.

The relevant configuration enables DeepSeek V4.1 drafting and speculative draft generation.

This has a substantial effect on generation throughput, particularly for predictable output such as code, structured data, and repetitive token patterns.

That helps explain why structured JSON and counting-style generation can exceed 80-100 tokens per second while unconstrained prose is closer to 47 tokens per second.

This variation is expected.

The actual speed of an MoE/speculative-decoding system should never be represented by a single tokens-per-second number.

The workload matters.

OPENAI-COMPATIBLE API

The server listens through an OpenAI-compatible API.

The served model ID is:

DeepSeek-V4.1-Flash-TF

The primary endpoint runs on port 8888.

Normal OpenAI-style chat completion requests work, along with streaming, tool calls, structured output, reasoning effort controls, and image input.

That means the system can be used by ordinary software expecting an OpenAI-compatible endpoint instead of requiring custom client code.

REMOTE ACCESS THROUGH CLOUDFLARE

I also wanted to use the model remotely rather than only from machines on the local network.

The server is therefore exposed through a Cloudflare Tunnel.

One concern was Cloudflare’s request timeout behavior during enormous prompt-prefill operations.

The TensorFold server sends SSE keepalive traffic every 15 seconds.

That turned out to work well.

A 250K-token streamed request took 153 seconds and still returned HTTP 200.

Even the full 1M-token prefill completed through the Cloudflare route without producing a 524 timeout.

There was one minor Cloudflare issue.

Some stripped-down automated HTTP clients without normal Accept and User-Agent headers can trigger Cloudflare bot detection and receive:

403 error code 1010

Normal clients and Pi Coding Agent do not have this problem when they send normal HTTP headers.

AUTHENTICATION

The TensorFold server does not require an API key by default.

That obviously is not appropriate when exposing the service remotely.

The installation was modified to support an API key file.

The server reads the secret from a file instead of placing the key on the command line, which keeps it out of process listings and Docker command inspection.

Without the Authorization header, the API returns:

401

With the correct Bearer token:

200

That authentication layer can then be combined with Cloudflare Access for additional edge protection.

PI CODING AGENT INTEGRATION

One of my main goals was to use this model directly with Pi Coding Agent.

Pi now recognizes the model as:

DeepSeek V4.1 Flash

with:

1.0M context

32.8K maximum output

reasoning enabled

image input enabled

DeepSeek-format thinking

reasoning-effort support

The Pi configuration points to the OpenAI-compatible endpoint and supplies the API key through an environment variable rather than embedding the secret directly in the main models.json configuration.

Verification included:

Pi successfully listing the model.

A basic arithmetic test:

17 * 23

returning:

391

And a tool-using test confirming that the model can actually operate Pi’s tools rather than simply generate text.

This is particularly exciting to me because a 1-million-token coding-agent context opens up some interesting possibilities for working with very large repositories.

WHAT IMPRESSED ME MOST

There are several parts of this project I consider especially successful.

First, DeepSeek V4.1 Flash actually fits and runs effectively on two relatively small desktop AI systems.

Each GX10 is physically compact, yet together they provide 256 GB of coherent/unified memory plus a very fast direct interconnect.

Second, the performance is much higher than I expected.

I would have considered 20-30 tokens per second a successful result for a model of this scale.

Instead, code generation is around 73 tokens per second, structured generation is over 80, predictable output can exceed 100, and even unconstrained prose remains near 47 tokens per second.

Third, the million-token context really works.

This is not a README claim or a startup parameter.

A prompt containing more than 1.047 million tokens was processed and the target information was successfully retrieved.

Fourth, prompt processing remains respectable even at extreme context lengths.

Approximately 1,232 prompt tokens per second at around one million tokens is impressive for hardware of this size.

Finally, the system integrates cleanly with ordinary OpenAI-compatible clients and Pi Coding Agent.

WHAT I WOULD DO DIFFERENTLY NEXT TIME

The largest lesson from this installation is that I would start from the field-tested TensorFold recipe and its known fixes rather than attempting to reconstruct the setup from generic upstream instructions.

I would also plan storage much earlier.

The model weights themselves are only part of the disk requirement.

Engram source data, packed Engram files, runtime assets, AOT output, prepared TensorFold data, Docker storage, and temporary working files add hundreds of gigabytes.

The high-speed NFS cross-sharing strategy worked very well and is worth considering when each node has limited local NVMe space.

I would also verify the remote user’s actual home directory before using rsync scripts.

That small assumption caused several unnecessary failures.

And I would test the two RoCE rails before doing anything with the model. If TensorFold silently fell back to ordinary TCP networking, it would be easy to spend hours tuning inference settings when the actual bottleneck was the interconnect.

WHAT COMES NEXT

The DeepSeek cluster is now performing well enough that I do not currently want to disturb it.

My next goal is to investigate whether the same level of runtime optimization can improve some of the other large models I run on GX10 hardware.

I currently have GLM 5.3 Flash and MiMo-class models running on similar dual-GX10 configurations, but those deployments have generally operated in roughly the 10-20 token-per-second range.

The DeepSeek installation proves that the GB10 hardware itself is capable of dramatically more when the inference runtime, quantization, speculative decoding, kernel implementation, and network transport are all well matched to the model.

I am therefore particularly interested in seeing whether GLM 5.3 Flash can retain a one-million-token context while moving substantially closer to the performance demonstrated here.

FINAL RESULT

The finished system is:

2 x ASUS Ascent GX10

2 x NVIDIA GB10

256 GB aggregate unified memory

Direct ConnectX-7 / QSFP connection

Dual RoCE rails

TensorFold TP=2

DeepSeek-V4.1-Flash-1017

EXL3 2.8 bpw

DSpark speculative decoding

1,048,576-token context

Four inference slots

Approximately 2.1M-token shared KV pool

OpenAI-compatible API

Pi Coding Agent support

Cloudflare remote access

Verified 1M-token needle retrieval

Approximately 73 tok/s code generation

Approximately 47 tok/s prose

Approximately 81 tok/s structured JSON

Over 100 tok/s on some predictable workloads

Approximately 1,232 prompt tok/s at roughly 1M context

For a two-machine system of this size, I consider the result excellent.

The combination of DeepSeek V4.1 Flash 1017, TensorFold, speculative decoding, 256 GB of GB10 unified memory, and the 200+ Gb/s direct ConnectX-7 fabric turns out to be an unusually effective local inference platform.

This is one of the first local large-model deployments I have completed where the end result does not feel like a technical demonstration.

It feels like a genuinely useful production inference system.

Version 1Oct 27, 2026 at 10:43

I had GPT provide the following summary of my experience running DeepSeek V4.1 Flash 1017 at 1M Context on Two ASUS Ascent GX10 Systems:

I recently completed one of the more successful local-LLM deployments in my stable:

DeepSeek-V4.1-Flash-1017 running across two ASUS Ascent GX10 systems, each based on NVIDIA’s GB10 platform with 128 GB of unified memory.

The two machines are directly connected through their ConnectX-7/QSFP interfaces and operate as a two-node TensorFold cluster.

The final result exceeded my expectations.

The model is running as an OpenAI-compatible API with:

DeepSeek-V4.1-Flash-1017 EXL3 2.8 bpw quantization TensorFold tensor parallelism, TP=2 Two ASUS Ascent GX10 / GB10 nodes 256 GB total unified memory Direct ConnectX-7 / RoCE interconnect Both logical RoCE rails active 1,048,576-token maximum context Four inference slots Approximately 2.1 million tokens of shared KV capacity DSpark speculative decoding Reasoning support Tool calling Structured output Vision input OpenAI-compatible API Remote access through Cloudflare Tunnel Pi Coding Agent integration

Most importantly, the 1-million-token context was not merely configured. It was actually tested successfully.

A needle-in-a-haystack test containing 1,047,230 prompt tokens successfully retrieved the inserted information. At that point, the two GX10s had only about 7-9 GiB of free memory remaining, so the test was exercising essentially the entire available memory envelope of the cluster.

THE HARDWARE

The cluster consists of:

2 x ASUS Ascent GX10 NVIDIA GB10 128 GB unified memory per machine 256 GB total memory across the pair Direct QSFP / ConnectX-7 connection

The GX10 exposes two logical RoCE interfaces through the direct high-speed connection. Both rails are being used.

The intended network configuration uses jumbo frames with MTU 9000 and RoCEv2. A single rail measures around 109 Gb/s, giving approximately 218 Gb/s across the two logical rails in the tested configuration.

That high-speed interconnect is an important part of why this works so well. Tensor-parallel inference requires constant communication between the two nodes, and using ordinary Ethernet would fundamentally change the performance profile.

THE MODEL

The model being served is:

DeepSeek-V4.1-Flash-1017

The installation uses the approximately 2.8 bpw EXL3 build often referred to as the “flash17” pack.

The model pack itself is approximately 203.8 GB.

TensorFold splits the work across the two GB10 GPUs using TP=2.

The resulting API model ID is:

DeepSeek-V4.1-Flash-TF

The server exposes an OpenAI-compatible /v1 API and supports reasoning, structured output, tools, image input, and streaming.

THE PERFORMANCE

The most surprising part of this project was the actual decode speed.

Measured results on this exact GX10 pair were:

Simple smoke test: 68.5 tokens/second

Counting / highly predictable generation: 103.4 tokens/second

Code generation: 72.8 tokens/second

Long-form prose: 47.4 tokens/second

Structured JSON: 81.3 tokens/second

Reasoning / thinking output: 75.6 tokens/second

These are not theoretical numbers from another system. They were measured on this specific gx10b + gx10d installation.

For my own purposes, the code-generation result is particularly important.

Roughly 70+ tokens per second for coding output is fast enough that the model generally feels immediate during interactive development. In many workflows, model generation speed is no longer the bottleneck.

Before this installation, I had other large models running across dual-GX10 clusters at roughly 10-20 tokens per second.

Going from that performance range to approximately 50-100+ tokens per second depending on workload is a dramatic improvement.

PROMPT PROCESSING PERFORMANCE

DeepSeek’s prefill performance was also strong.

Measured prompt-processing speeds were approximately:

21K-token context: 2,058 tokens/second

85K: 1,512 tokens/second

300K: 1,720 tokens/second

500K: 1,752 tokens/second

Approximately 1M: 1,232 tokens/second

At a full million-token context, the cold prefill required roughly 850 seconds, or a little over 14 minutes.

That sounds long until you consider what is happening:

The system is processing more than one million tokens of context while maintaining more than 1,200 prompt tokens per second.

Once that context has been processed, normal generation remains fast.

This makes caching and persistent sessions particularly valuable. A million-token project context is something you want to ingest once and reuse, not rebuild unnecessarily for every request.

THE 1-MILLION-TOKEN TEST

One of the things I specifically wanted from this system was very long context.

The server is configured for:

1,048,576 tokens

Rather than assuming that setting the context parameter meant the feature actually worked, we performed a real needle-in-a-haystack test.

The final prompt contained:

1,047,230 tokens

The model successfully retrieved the target information.

That test also demonstrated something else important: memory usage at the full context length is extremely tight.

At approximately 1M tokens, only around 7-9 GiB remained free across each node’s memory pool.

In other words, this configuration is using the GX10 pair very efficiently. There is not a huge amount of wasted memory sitting idle.

FOUR INFERENCE SLOTS

The installation is configured with four inference slots and approximately 2.1 million tokens of shared KV capacity.

It is important to understand what that means.

It does not mean four independent one-million-token conversations can all exist simultaneously.

The KV memory pool is shared.

Conceptually, the system can support combinations such as:

one very large 1M-token session plus additional smaller sessions,

two very large sessions approaching 1M each,

four sessions around several hundred thousand tokens each,

or a larger number of ordinary coding/chat sessions.

For agent workflows, this is more useful than simply dedicating the entire machine to one conversation.

STORAGE WAS ONE OF THE HARDER PROBLEMS

A straightforward mirrored installation consumes a lot of storage.

The important components include approximately:

203.8 GB model pack

approximately 95 GB of packed Engram data

approximately 96 GB of prepared runtime data

approximately 191 GB of source Engram files during preparation

Docker images and supporting files

A naive installation can therefore require roughly 600-700 GB of free storage on the head node.

My machines did not have enough convenient free space to duplicate everything unnecessarily.

Instead, we used the 200+ Gb/s direct link to cross-share some of the large read-only assets.

The head GX10 stores the main flash17 model pack and exports it read-only to the worker.

The worker stores the Engram source and exports that read-only back to the head.

This reduced the practical storage footprint to roughly 420 GB per node for the cross-shared configuration.

After the completed installation, disk usage was approximately:

Head: 636 GB used 233 GB free

Worker: 738 GB used 131 GB free

The worker is now the more storage-constrained machine, so I would not casually add another hundred-gigabyte model there without planning the storage first.

THE FIRST MODEL LOAD

The first complete model load took approximately:

443 seconds

There is an important reason for that.

During the first startup, TensorFold creates approximately 96 GB of prepared cache data on each node.

That initial preparation takes several minutes.

Subsequent launches are much faster because those prepared artifacts already exist. The installation guide estimates warm restarts at roughly a minute or two rather than repeating the full preparation process.

THIS INSTALLATION WAS NOT COMPLETELY PAINLESS

Several real issues occurred during the deployment.

That turned out to be useful because the final installation instructions now document fixes for problems that someone following older README files could easily encounter.

Among the problems we encountered:

Remote rsync paths failed because the user home directory on the worker did not match the absolute path on the head.

The fix was to use worker-relative paths such as ~/ rather than copying the head machine’s absolute path.

A Docker builder-image tag was being generated incorrectly.

The script attempted to construct an invalid tag ending in:

:local:builder

That required correcting the tag generation.

Rank 0 initially timed out attempting to load the model because rank 1 had not actually launched correctly.

A nested SSH launcher could also hang unless the worker process was detached using ssh -f.

There were TensorFold AOT kernel problems caused by generating signatures using the wrong reference TensorFold version.

The working procedure uses the TensorFold 1.0.2 Python reference together with the required patches and GEMM graft.

At 1M context, the RoPE file also had to contain enough rows. It is generated with context length plus an additional 2048 rows.

There were also messages indicating that some DeepSeek kernels exceeded the GB10 shared-memory limit. Those messages were informational rather than fatal. TensorFold falls back to kernels with smaller shared-memory requirements.

These details matter because this was not simply a case of cloning a repository and typing one launch command.

There were several places where following an older or generic installation recipe would have resulted in a non-working system.

SOFTWARE ENVIRONMENT

The working configuration uses:

Ubuntu 24.04 / DGX OS environment

NVIDIA kernel 7.0.0 series

NVIDIA driver 580.178.04

CUDA 13.0

Docker 29.x

NVIDIA Container Toolkit

rdma-core

libibverbs

perftest tools

NFS utilities

Python 3

Hugging Face CLI

Git

rsync

The final procedure did not require reinstalling the OS, replacing the NVIDIA driver, downgrading CUDA, repartitioning disks, or changing the existing working QSFP network configuration.

TENSORFOLD AND THE RUNTIME

The core engine comes from the TensorFold-based DeepSeek V4.1 Flash work.

The field-tested installation checked out a specific recipe commit and applied additional fixes from the two-DGX-Spark TensorFold implementation.

The installation also performs ahead-of-time compilation of 144 kernel variants.

Before launch, both ranks are checked to ensure the AOT bundle contains every variant required by the configured runtime.

This is one of the reasons I now consider the installation reproducible rather than merely experimental.

SPECULATIVE DECODING

The server uses DSpark speculative decoding.

The relevant configuration enables DeepSeek V4.1 drafting and speculative draft generation.

This has a substantial effect on generation throughput, particularly for predictable output such as code, structured data, and repetitive token patterns.

That helps explain why structured JSON and counting-style generation can exceed 80-100 tokens per second while unconstrained prose is closer to 47 tokens per second.

This variation is expected.

The actual speed of an MoE/speculative-decoding system should never be represented by a single tokens-per-second number.

The workload matters.

OPENAI-COMPATIBLE API

The server listens through an OpenAI-compatible API.

The served model ID is:

DeepSeek-V4.1-Flash-TF

The primary endpoint runs on port 8888.

Normal OpenAI-style chat completion requests work, along with streaming, tool calls, structured output, reasoning effort controls, and image input.

That means the system can be used by ordinary software expecting an OpenAI-compatible endpoint instead of requiring custom client code.

REMOTE ACCESS THROUGH CLOUDFLARE

I also wanted to use the model remotely rather than only from machines on the local network.

The server is therefore exposed through a Cloudflare Tunnel.

One concern was Cloudflare’s request timeout behavior during enormous prompt-prefill operations.

The TensorFold server sends SSE keepalive traffic every 15 seconds.

That turned out to work well.

A 250K-token streamed request took 153 seconds and still returned HTTP 200.

Even the full 1M-token prefill completed through the Cloudflare route without producing a 524 timeout.

There was one minor Cloudflare issue.

Some stripped-down automated HTTP clients without normal Accept and User-Agent headers can trigger Cloudflare bot detection and receive:

403 error code 1010

Normal clients and Pi Coding Agent do not have this problem when they send normal HTTP headers.

AUTHENTICATION

The TensorFold server does not require an API key by default.

That obviously is not appropriate when exposing the service remotely.

The installation was modified to support an API key file.

The server reads the secret from a file instead of placing the key on the command line, which keeps it out of process listings and Docker command inspection.

Without the Authorization header, the API returns:

401

With the correct Bearer token:

200

That authentication layer can then be combined with Cloudflare Access for additional edge protection.

PI CODING AGENT INTEGRATION

One of my main goals was to use this model directly with Pi Coding Agent.

Pi now recognizes the model as:

DeepSeek V4.1 Flash

with:

1.0M context

32.8K maximum output

reasoning enabled

image input enabled

DeepSeek-format thinking

reasoning-effort support

The Pi configuration points to the OpenAI-compatible endpoint and supplies the API key through an environment variable rather than embedding the secret directly in the main models.json configuration.

Verification included:

Pi successfully listing the model.

A basic arithmetic test:

17 * 23

returning:

391

And a tool-using test confirming that the model can actually operate Pi’s tools rather than simply generate text.

This is particularly exciting to me because a 1-million-token coding-agent context opens up some interesting possibilities for working with very large repositories.

WHAT IMPRESSED ME MOST

There are several parts of this project I consider especially successful.

First, DeepSeek V4.1 Flash actually fits and runs effectively on two relatively small desktop AI systems.

Each GX10 is physically compact, yet together they provide 256 GB of coherent/unified memory plus a very fast direct interconnect.

Second, the performance is much higher than I expected.

I would have considered 20-30 tokens per second a successful result for a model of this scale.

Instead, code generation is around 73 tokens per second, structured generation is over 80, predictable output can exceed 100, and even unconstrained prose remains near 47 tokens per second.

Third, the million-token context really works.

This is not a README claim or a startup parameter.

A prompt containing more than 1.047 million tokens was processed and the target information was successfully retrieved.

Fourth, prompt processing remains respectable even at extreme context lengths.

Approximately 1,232 prompt tokens per second at around one million tokens is impressive for hardware of this size.

Finally, the system integrates cleanly with ordinary OpenAI-compatible clients and Pi Coding Agent.

WHAT I WOULD DO DIFFERENTLY NEXT TIME

The largest lesson from this installation is that I would start from the field-tested TensorFold recipe and its known fixes rather than attempting to reconstruct the setup from generic upstream instructions.

I would also plan storage much earlier.

The model weights themselves are only part of the disk requirement.

Engram source data, packed Engram files, runtime assets, AOT output, prepared TensorFold data, Docker storage, and temporary working files add hundreds of gigabytes.

The high-speed NFS cross-sharing strategy worked very well and is worth considering when each node has limited local NVMe space.

I would also verify the remote user’s actual home directory before using rsync scripts.

That small assumption caused several unnecessary failures.

And I would test the two RoCE rails before doing anything with the model. If TensorFold silently fell back to ordinary TCP networking, it would be easy to spend hours tuning inference settings when the actual bottleneck was the interconnect.

WHAT COMES NEXT

The DeepSeek cluster is now performing well enough that I do not currently want to disturb it.

My next goal is to investigate whether the same level of runtime optimization can improve some of the other large models I run on GX10 hardware.

I currently have GLM 5.3 Flash and MiMo-class models running on similar dual-GX10 configurations, but those deployments have generally operated in roughly the 10-20 token-per-second range.

The DeepSeek installation proves that the GB10 hardware itself is capable of dramatically more when the inference runtime, quantization, speculative decoding, kernel implementation, and network transport are all well matched to the model.

I am therefore particularly interested in seeing whether GLM 5.3 Flash can retain a one-million-token context while moving substantially closer to the performance demonstrated here.

FINAL RESULT

The finished system is:

2 x ASUS Ascent GX10

2 x NVIDIA GB10

256 GB aggregate unified memory

Direct ConnectX-7 / QSFP connection

Dual RoCE rails

TensorFold TP=2

DeepSeek-V4.1-Flash-1017

EXL3 2.8 bpw

DSpark speculative decoding

1,048,576-token context

Four inference slots

Approximately 2.1M-token shared KV pool

OpenAI-compatible API

Pi Coding Agent support

Cloudflare remote access

Verified 1M-token needle retrieval

Approximately 73 tok/s code generation

Approximately 47 tok/s prose

Approximately 81 tok/s structured JSON

Over 100 tok/s on some predictable workloads

Approximately 1,232 prompt tok/s at roughly 1M context

For a two-machine system of this size, I consider the result excellent.

The combination of DeepSeek V4.1 Flash 1017, TensorFold, speculative decoding, 256 GB of GB10 unified memory, and the 200+ Gb/s direct ConnectX-7 fabric turns out to be an unusually effective local inference platform.

This is one of the first local large-model deployments I have completed where the end result does not feel like a technical demonstration.

It feels like a genuinely useful production inference system.