<img alt="" src="https://secure.insightful-enterprise-intelligence.com/783141.png" style="display:none;">

NVIDIA B300s are coming to Hyperstack — On-Demand in August, reserved private clusters in Q4

alert

We’ve been made aware of a fraudulent website impersonating Hyperstack at hyperstack.my.
This domain is not affiliated with Hyperstack or NexGen Cloud.

If you’ve been approached or interacted with this site, please contact our team immediately at support@hyperstack.cloud.

close

publish-dateDecember 2, 2025

5 min read

Updated-dateUpdated on 26 Aug 2026

Run DeepSeek OCR on Hyperstack with your Own UI

Written by

Hitesh Kumar

Hitesh Kumar

Share this post

TABLE OF CONTENTS

NVIDIA H100 GPUs On-Demand

Sign up/Login

Key Takeaways

  • DeepSeek-OCR is a multimodal OCR model designed to extract both text and document structure from images and PDFs.

  • The setup uses a Hyperstack GPU virtual machine to run DeepSeek-OCR in a private, high-performance environment.

  • The model combines a vision encoder and a language decoder to handle complex layouts such as tables and multi-column documents.

  • Deployment involves cloning the DeepSeek-OCR repository, installing Python dependencies, and configuring the runtime environment.

  • A Gradio-based web interface allows users to upload documents and view OCR results in structured Markdown output.

  • The deployed OCR service can be extended into APIs or integrated into document processing and RAG workflows.

Take Control of Your Own OCR Workflow with DeepSeek-OCR and Hyperstack

Optical Character Recognition (OCR) is the process of recognising and extracting text from a source like images or PDFs using just the visual field - it's what we do when we read!

Methods for performing OCR have exited for a while but in the past few years (or even months rather), transformer-based models have become incredibly competent at it. DeepSeek, one of the world's leading AI foundation model labs, have released their DeepSeek-OCR 3B parameter model for quickly and easily creating your own OCR workflows.

deepseek

Why is it harder to run than other DeepSeek models?

You might be used to running other AI models, like DeepSeek's LLMs, which are often available via a simple API call or a straightforward Python library like transformers. We've even made tutorials in the past that you can follow to get DeepSeek V3. DeepSeek-OCR is a bit more hands-on because it's not just a language model; it's a specialised multi-modal system.

It essentially has two parts: a sophisticated vision encoder that sees and understands the layout of a page (just like our eyes), and a 3-billion-parameter language decoder that reads and interprets the text from that visual information. This two-stage process is what makes it so powerful, but it also requires a more complex stack of software to run efficiently.

The setup in this guide uses vLLM, a high-throughput serving engine, to get the best possible performance. This is what adds most of the setup steps - we need to install a particular version of it along with dependencies like flash-attn. It's this requirement for a high-performance, GPU-accelerated serving environment that makes it more complex than a simple pip install package, but the payoff in speed and accuracy is well worth it.

How good is DeepSeek-OCR? 

In short: it's exceptionally good. It represents the current state-of-the-art for open-source OCR in its size group, especially when it comes to understanding real-world, complex documents.

Where traditional OCR tools might just extract a "wall of text" that loses all formatting, DeepSeek-OCR understands the structure of the document. This is its key advantage. It excels at:

  • Complex Layouts: Accurately reading multi-column articles, magazine pages, and scientific papers.

  • Tables: It doesn't just see text in a table; it understands the table's rows and columns and formats the output (as markdown) to match.

  • Mixed Content: It's highly adept at handling pages with a mix of text, code blocks, and even mathematical equations.

Because it outputs structured markdown, you're not just getting the raw text; you're getting the document's semantic structure. This makes its output immediately useful for feeding into other systems, like a RAG pipeline or a summarisation model. For its 3B-parameter size, it hits a perfect sweet spot of being incredibly accurate while still being fast enough to interpret huge documents on a single H100 GPU.

How to set up DeepSeek-OCR on your own Hyperstack VM, step-by-step

We'll take you through the whole process from start to end to get a really simple and basic OCR workflow running on your own Hyperstack VM. 

Step 0: Getting a Hyperstack VM

This guide assumes you've just spun up a new Linux VM on our platform and can access it via SSH. If you haven't done this before, please see our getting started guide in our documentation.

Step 1: Clone the DeepSeek-OCR repo 

# Clone the DeepSeek-OCR repository
git clone https://github.com/deepseek-ai/DeepSeek-OCR.git

Step 2: Install UV (the package manager):

curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env

Step 3: Create a python virtual environment:

uv venv deepseek-ocr --python 3.12.9
source deepseek-ocr/bin/activate

Step 4: Install vLLM and other requirements

cd DeepSeek-OCR

# Get vllm whl
wget https://github.com/vllm-project/vllm/releases/download/v0.8.5/vllm-0.8.5+cu118-cp38-abi3-manylinux1_x86_64.whl
unzip vllm-0.8.5+cu118-cp38-abi3-manylinux1_x86_64.whl -d vllm-0.8.5+cu118-whl

# Install requirements
uv pip install torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 --index-url https://download.pytorch.org/whl/cu118
uv pip install vllm-0.8.5+cu118-cp38-abi3-manylinux1_x86_64.whl
uv pip install -r requirements.txt
uv pip install flash-attn==2.7.3 --no-build-isolation
uv pip install uvicorn fastapi gradio --upgrade
uv pip install transformers==4.57.1 --upgrade

This step may take a while, there are a lot of dependencies!

Step 5: Download the Python code

main.py 

This is a standalone python file that sets up the webserver and hosts it on your VM. We recommend you have a quick read through before you attempt to run it, just to familiarise yourself with what it does (more on this later).

Step 6: Get the code into your VM:

# Create the "web" dir and put main.py in there
cd DeepSeek-OCR-master/DeepSeek-OCR-vllm
mkdir -p web

cat <<EOF > web/main.py
<paste the contents of main.py here>
EOF

You can alternatively use some editor like nano or vim, or SSH into this VM from a more interactive source like VSCode or similar to make this part easier. 

Step 7: Start the server and access via your browser

# Start the server
uvicorn web.main:app --host 0.0.0.0 --port 3000

You should now be able to navigate to the UI by going to http://<your-VMs-ip>:3000, and interact with the UI! 

NOTE: Remember to open port 3000 for inbound TCP traffic via your VM's firewall on Hyperstack! For more info on this, see our documentation here 

Once loaded, It should look something like this:

start the server

In this simple, barebones UI, you can upload PDFs or images and DeepSeek-OCR will automatically run on them.

The results will be visible in the lower box, with the option to see (and download) the labelled input and the extracted text in markdown format. 

To re-run, simple delete the existing input and upload something new!

Here's an example of an example PDF article output from DeepSeek-OCR:

deepseek ocr

Troubleshooting

As stated, this is a very minimal, quickly-put-together UI, and hence is not maintained and updated by Hyperstack, and is certainly not bug-free! However, feel free to modify the code the main.py file to solve any issues or add any features you like.

One bug we are aware of in our early testing is the UI's inability to replace old inputs when new ones are uploaded. In this case, simply Ctrl+C to terminate the server and re-run the same uvicorn command - this and a reload of the web page will then start a fresh instance of the UI with the issue no longer being present. 

What's Next?

Congratulations! You've now got your own private, high-performance OCR server running. This Gradio UI is a fantastic sandbox for testing, but the real power comes from what you can build on top of it.

The most logical next step is to adapt the web/main.py file. Instead of launching a Gradio UI, you could modify it to create a simple, robust REST API endpoint using FastAPI. Imagine an endpoint where you can POST an image or PDF file and get a clean JSON response containing the extracted markdown.

Once you have that API, the possibilities are endless:

  • Build a RAG Pipeline: This is the big one. You can now programmatically feed your entire library of PDFs and documents through this API, storing the clean markdown output in a vector database.

  • Create a "Chat with your Docs" App: Combine your new OCR API with a conversational LLM (like DeepSeek-LLM) to build a powerful application that lets you ask questions about your documents.

  • Automate Data Entry: Create a workflow that watches a specific folder or email inbox, runs any new attachments through your OCR API, and then parses the structured output to populate a database or spreadsheet.

You've done the hard part by setting up the core engine. Now you can use your Hyperstack VM as a stable, private microservice to power all kinds of intelligent document-processing workflows.

Launch Your VM today and Get Started with Hyperstack!

FAQs

What type of model is DeepSeek-OCR?

DeepSeek-OCR is a multimodal model combining vision and language understanding, designed to extract text and structure from documents efficiently.

What format does DeepSeek-OCR output?

It outputs structured markdown that preserves tables, layout, and semantic information, making it ready for downstream processing or RAG pipelines.

Which engine is used for high-throughput serving?

vLLM is used as a high-throughput serving engine, optimised for GPU acceleration to deliver fast, efficient OCR performance.

Which package manager is required for setup?

The setup requires UV, a modern package manager, to create virtual environments and install all dependencies reliably on Hyperstack.

Subscribe to Hyperstack!

Enter your email to get updates to your inbox every week

Get Started

Ready to build the next big thing in AI?

Sign up now
Talk to an expert

Share On Social Media

Related content

Stay updated with our latest articles.

tutorials Tutorials link

Deploy DeepSeek-V4.1-Flash on GPU Cloud for 1M-Context Inference

DeepSeek-V4.1-Flash-1017 is an updated release of ...

DeepSeek-V4.1-Flash-1017 is an updated release of DeepSeek-V4.1-Flash, a multimodal mixture-of-experts model with 552 billion backbone parameters that reads text and images, writes text and holds up to 1,048,576 tokens of context. Only 8 billion parameters are active for each prompt token and 16 billion for each generated token. The whole checkpoint is 510 GB, and once its Engram memory moves to host RAM, a DeepSeek-V4.1-Flash deployment fits on one node of eight 80 GB GPUs.

This guide deploys it on a single Hyperstack virtual machine with 8x NVIDIA H100-80G-PCIe-NVLink GPUs, using vLLM 0.31.0 and the NVIDIA H100 configuration from the vLLM recipe for DeepSeek-V4.1-Flash: tensor parallel 8, the Engram tables in pinned host memory, a 4,096-token batch budget and the full one-million-token context. The result is a private, OpenAI-compatible endpoint with thinking, a reasoning effort setting from 1 to 100, tool calling and image input, ready for an agent harness such as Claude Code.

Most of what lets the model fit on one machine comes from its design rather than from tuning. DeepSeek puts its global KV cache at 890 bytes per token, about a quarter of DeepSeek-V4-Flash's, and 196 billion of its parameters are Engram lookup tables that are read rather than computed, so they can sit in host memory. If you have followed our DeepSeek-V4-Pro multi-node Kubernetes guide, this is the opposite shape: one virtual machine, no cluster and no orchestration layer.

Inside DeepSeek-V4.1-Flash: 552B Parameters, 8B Active in Prefill

DeepSeek titles the release Pushing the Limits of KV Cache Compression, and almost every component serves that aim.

DeepSeek-V4.1-Flash-1017 at a glance

Six numbers that shape the deployment.

BACKBONE
552B parameters
Mixture of experts: 1 shared and 384 routed experts, 6 routed active per token
ACTIVE PER TOKEN
8B prefill, 16B decode
A causal encoder-decoder lets most prompt tokens skip the decoder
CONTEXT
1,048,576 tokens
YaRN scaling, factor 16, from a 65,536-token original window
GLOBAL KV CACHE
890 bytes per token
About a quarter of DeepSeek-V4-Flash's, stored in FP4
ENGRAM MEMORY
196B parameters
Two n-gram lookup tables, at layers 1 and 14
CHECKPOINT
510.3 GB, 48 shards
MXFP4 experts, FP8 dense weights, MIT licence

Sources: the DeepSeek-V4.1-Flash-1017 and DeepSeek-V4.1-Flash model cards, the technical report, config.json and the 1017 repository file list.

The 1017 Weights: Same Architecture, Stronger Scores

DeepSeek describes DeepSeek-V4.1-Flash-1017 as a minor update to the launch release. The vLLM recipe records that its config.json, tokenizer files and prompt encoding match the launch repository byte for byte, and that the index holds the same 96,085 tensors, so only the weights change and one command serves either checkpoint.

The gains are broad. Terminal-Bench 4.0 rises from 31.2 to 42.3 and HLE without tools from 36.8 to 42.6, and DeepSeek reports shorter outputs and task execution times.

From the launch weights to 1017

Every benchmark on the 1017 model card moves up. Rows are sorted by the size of the gain; the hollow dot is the launch checkpoint, the filled dot the 1017 weights.

Launch weights1017 weights
Chart: scores for the launch weights and the 1017 weights on eleven benchmarks. Terminal-Bench 4.0 rises from 31.2 to 42.3, ProgramBench from 20.3 to 29.1, Apex Bench from 64.6 to 72.1 and HLE without tools from 36.8 to 42.6; every row improves.

Source: the DeepSeek-V4.1-Flash-1017 model card. Terminal-Bench 4.0 uses the Claude Code harness and DeepSWE v1.1 the Mini-SWE-V2 harness, as the card states.

A Causal Encoder-Decoder That Nearly Halves Prefill

The 40 transformer layers are split into a 20-layer causal encoder and a 20-layer decoder. In a decoder-only model, every layer derives its keys and values from its own hidden states, so every prompt token must run through all 40 layers. Here the decoder global KV cache is projected from the final encoder hidden state instead, which lets most prompt tokens stop at the end of the encoder.

According to the technical report, this nearly halves prefill computation, and it is where the 8 billion and 16 billion figures come from: a prompt token runs the encoder, a generated token runs both halves. DeepSeek designed the split for agentic work, which the report describes as increasingly input-heavy, with frequent tool calls generating long prefills.

How far a token travels

Most prompt tokens stop at the encoder. Generated tokens run all 40 layers.

Causal encoder, layers 0 to 19Decoder, layers 20 to 39Prompt token8B active per tokendecoder global KV, projectedfrom the final encoder statelast 128 prompt tokensGenerated token16B active per token

Drawn from section 2.2 of the technical report. The decoder still keeps a 128-token sliding window, so the last 128 prompt tokens also pass through it, a step DeepSeek calls Decoder SWA Bounded Replay.

Compressed Sparse Attention 2: Forty Layers, Four Global Caches

From layer 2 onwards, every layer combines a 128-token sliding window with a sparse view of the global context further back; layers 0 and 1 use the sliding window alone. Compressed Sparse Attention 2, or CSA2, decides where that global context comes from by giving each of those 38 layers one of three static modes:

  • Full layers compute their own global KV, score it with a lightweight indexer and keep the top 512 entries for each query.
  • Reindex layers reuse the global KV of the latest Full layer, but score it with their own indexer query and pick a fresh top 512.
  • Reuse layers take both the KV and the top 512 selection from an earlier layer and run attention directly.

Only four of the 40 layers compute a global cache at all: layers 2, 8, 14 and 20. The encoder stores one global entry for every two tokens, while the decoder keeps one per token. In the decoder, layer 20 also builds a candidate pool of 2,048 blocks of eight positions, and the four Reindex layers search only those 16,384 candidates, so their cost per query stays constant however long the context grows.

Forty layers, four global caches

Each square is one layer, coloured by how it obtains its global context.

CAUSAL ENCODERtwo tokens per global KV entryDECODERone token per global KV entry0SWA1SWAE2Full3Reuse4Reuse5Reuse6Reuse7Reuse8Full9Reuse10Reuse11Reuse12Reuse13Reuse14FullE15Reuse16Reuse17Reuse18Reuse19Reuse20Fullpool21Reuse22Reuse23Reuse24Reindex25Reuse26Reuse27Reuse28Reindex29Reuse30Reuse31Reuse32Reindex33Reuse34Reuse35Reuse36Reindex37Reuse38Reuse39Reuselayer 19 output projects the decoder global KV at layer 20DSpark drafter reads layers 37 to 39Sliding window onlyFullReindexReuseEEngram

Layer modes from section 4.2.1 of the technical report and the kv_source_layer_ids, index_source_layer_ids and compress_ratios fields in config.json.

890 Bytes of Global KV per Token

The saving has two sources. One is sharing caches across layers; the other is precision: DeepSeek trains the main KV cache to be stored in FP4, as E2M1 values with one E4M3 scale per 16 channels, while the sliding-window cache stays in FP8. Together they put the global KV footprint at 890 bytes per token, 3.9 times smaller than DeepSeek-V4-Flash, the model in our DeepSeek-V4 deployment guide, and 437 times smaller than DeepSeek-V1.

Global KV cache per token across DeepSeek generations

Bytes per token on a logarithmic scale. Each generation cuts the footprint by a large factor.

Chart: global KV cache per token. DeepSeek-V1 389,120 bytes, DeepSeek-V3.2 48,068 bytes, DeepSeek-V4-Flash 3,514 bytes and DeepSeek-V4.1-Flash 890 bytes.

Source: Figure 1(b) of the DeepSeek-V4.1-Flash technical report.

Global KV for one full-length prompt
890 bytes × 1,048,576 tokens ≈ 0.93 GB
Plus a fixed 128-token sliding window per layer. The vLLM recipe notes that on this model the weights and the batch budget, not the cache, set the capacity limit.

For a broader view of where KV cache memory goes and how serving engines manage it, our guide to optimising the KV cache covers the techniques this design builds on.

Engram: 196B Parameters That Are Looked Up, Not Computed

Engram is the module that makes the memory plan work. At layers 1 and 14, the last two, three and four tokens at each position are hashed into two tables of roughly 384 million rows each, and the retrieved rows are gated into the residual stream. A mixture of experts adds capacity through conditional computation; Engram adds it through conditional memory, which the vLLM documentation describes as parameters that are never computed over, only looked up. The two tables hold 196.6 billion parameters, 183.1 GiB in FP8 or about 189 GiB with their block scales, more than a third of the checkpoint.

Because the lookup indices depend only on the input tokens, they are known before the forward pass reaches the layer. vLLM uses that to keep the tables in pinned host memory and read them over unified virtual addressing (UVA), prefetching on a side CUDA stream so the transfer overlaps the computation of the earlier layers. The GPU memory this frees goes to the KV cache.

Where an Engram lookup runs

Hashing and gating happen on the GPU. The tables stay in host memory, and only the rows a token needs cross the PCIe link.

ON EVERY GPUPINNED HOST MEMORYToken idsthe last two tofour tokensHash2-, 3- and4-grams, 8 headseachGatescored against thehidden stateResidual streamadded at layers 1and 14Two Engram tablesabout 384M rows each, 189 GiB with scalesrow indices, knownfrom the tokens aloneonly the rows needed,read over UVA

Mechanism from the Engram page of the vLLM documentation and section 2.4.2 of the technical report. Table sizes from config.json: 384,006,168 and 384,016,682 rows.

DSpark: Five Draft Tokens per Round

DeepSeek-V4.1-Flash drops the multi-token prediction module of earlier DeepSeek models in favour of DSpark, a speculative decoding module trained after pre-training. Three transformer blocks, each with 128 routed experts and 3 active, attend over a 128-token window and compute draft logits for five positions in one pass. A Markov head models the dependencies between those drafts, and a confidence head predicts how likely each position is to be accepted.

The recipe keeps DSpark opt-in, behind one speculative decoding flag, and counts the drafter's experts, roughly 14B parameters, as an addition to the load when it is on. On NVIDIA GPUs, the same flag turns on adaptive verification, which vLLM leaves off by default. It uses the confidence head's predictions to decide how many drafts to check for each request, within a compute budget profiled at start-up.

How DSpark drafts

One pass drafts five tokens. The chance that a draft survives falls with each position, because every draft before it must be accepted too, and the scheduler chooses where to stop checking.

Backbonelayers 37 to 39 feedthe drafterDSparkthree blocks of 128experts, 3 activet+1t+2t+3t+4t+5chance each draft surviveschecked prefixThe scheduler sets how many drafts to check perrequest from those odds and from a compute budgetvLLM profiles at start-up.

From section 2.4.3 of the technical report, the speculative decoding notes in the vLLM recipe and vLLM's adaptive verification page.

What the Published Scores Say

On the 1017 model card, DeepSeek-V4.1-Flash-1017 leads the other open models listed on every benchmark except HLE without tools, where Kimi K3 is 0.9 points ahead; our Kimi K3 deployment guide serves that model on 32 NVIDIA H100 GPUs. Against the closed models the picture is mixed: Opus 5 leads on six benchmarks and GPT-5.6 Sol on ZeroBench, while DeepSeek-V4.1-Flash-1017 leads on DeepSWE v1.1, Automation-Bench, Agents' Last Exam and Apex Bench.

DeepSeek-V4.1-Flash-1017 against open and closed models

Shading ranks each row: the deepest purple marks the leader on that benchmark.

Benchmark DeepSeek 1017 Kimi K3 GLM-5.3 GPT-5.6 Sol Opus 5
HLE w/o tools † 42.6 43.5 42.0 44.5 56.3
Terminal-Bench 4.0 42.3 12.6 37.9 39.9 51.8
DeepSWE v1.1 77.0 67.5 66.9 73.0 74.0
ProgramBench 29.1 17.5 19.0 23.0 37.0
NL2Repo-Bench 68.2 58.0 58.0 56.8 75.3
Automation-Bench 60.5 46.7 48.8 45.8 50.3
Agents' Last Exam 35.4 27.6 28.5 26.7 28.6
Apex Bench v1.1 72.1 47.8 56.6 54.3 65.8
Chartography, tools 83.0 68.1 n/a 79.9 84.0
BabyVision, tools 92.5 85.7 n/a 88.9 94.1
ZeroBench, tools 51.0 41.0 n/a 53.0 52.0

Source: the DeepSeek-V4.1-Flash-1017 model card. n/a marks a score the card does not publish. † The GLM-5.3 HLE figure is for the text-only subset.

The DeepSeek-V4.1-Flash Deployment Architecture on 8 NVIDIA H100 GPUs

The checkpoint is 510.3 GB across 48 safetensors shards, and each NVIDIA H100 PCIe card reports 81,559 MiB of memory. The vLLM recipe calls eight 80 GB cards the smallest NVIDIA node that serves this checkpoint, and only with a set of memory settings. Those settings define the DeepSeek-V4.1-Flash deployment architecture, and the largest of them moves the Engram tables off the GPUs.

What is inside the 1017 checkpoint

Five components, and where each one lives once the server is running.

Component Parameters Stored Lives in
Routed and DSpark experts, MXFP4 557.2B 259.5 GiB GPU memory, across the 8 cards
Engram tables, FP8 196.6B 183.1 GiB Pinned host memory
Attention, dense projections and routers, FP8 7.4B 6.9 GiB GPU memory, across the 8 cards
Embedding and LM head in BF16, norms in FP32 2.0B 3.9 GiB GPU memory, across the 8 cards
UE8M0 block scales 23.6B 21.9 GiB Beside the weights they scale
Total   475.3 GiB 510.3 GB on disk

Component sizes from the memory table in the vLLM recipe. DeepSeek's 552B backbone figure covers the routed experts, attention and embeddings; the Engram tables, the DSpark drafter and the scales sit outside it. The recipe counts the drafter's experts, roughly 14B parameters of the first row, as an addition to the load when DSpark is on.

Host memory takes the two Engram tables together with their block scales, which the recipe puts at 189 GiB. Tensor parallelism splits the remaining weights across the eight cards, with small parts such as the vision encoder and the norms copied to every card instead, and the recipe's NVIDIA H100 notes put the result at about 36 GiB of resident weights per card. vLLM manages 92 per cent of each card:

vLLM's share of each card
81,559 MiB × 0.92 ≈ 73.3 GiB
About 36 GiB of it holds resident weights and 8 GiB the indexer buffer, leaving the rest for the KV cache, activations and CUDA graphs.

Where the checkpoint lives on one node

Engram goes to host memory. The rest is split across the eight cards, with room left on every card for the KV cache.

Host memory1,440 GB
 
 
Engram tables and their scales, about 189 GiB, pinnedFree for the system and the loader
Each NVIDIA H100 PCIe x 8 cards81,559 MiB, about 79.6 GiB
Weights
 
KV cache and more
 
Resident weights, about 36 GiBIndexer buffer, 8 GiBKV cache, activations and CUDA graphs, about 29 GiBOutside the 0.92 budget, about 6.4 GiB
Ephemeral disk6,500 GB
 
Free
Checkpoint, 510.3 GB in 48 shardsFree

Shares calculated from the recipe's component sizes, the 81,559 MiB each card reports, and the 1,440 GB of RAM and 6,500 GB of ephemeral disk the flavour reference lists for this machine.

Why the Batch Budget Is 4,096 Tokens

The sparse-attention indexer allocates a logits buffer at start-up, sized by the number of tokens batched in one scheduler step and by the maximum context length, at two bytes per entry. At the full 1,048,576-token context, a budget of 8,192 tokens would make that buffer 16 GiB on every card. The recipe's NVIDIA H100 profile caps the budget at 4,096 tokens instead, which halves the buffer and keeps the whole context available for long agentic traces.

Indexer logits buffer per GPU
4,096 tokens × 1,048,576 positions × 2 bytes = 8 GiB
vLLM's chunked prefill still takes long prompts, in steps of up to 4,096 tokens.

The profile adds two environment variables that keep the KV pool from fragmenting around that buffer: VLLM_USE_V2_MODEL_RUNNER=1 and PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True.

Inside the Node: Four NVLink Pairs Over PCIe

The 8x NVIDIA H100-80G-PCIe-NVLink flavour bridges each card to one neighbour with NVLink, which Hyperstack rates at 600 GB/s bidirectional on its NVIDIA H100 PCIe page, and reaches the other six cards over PCIe Gen5 through the host bridge. Tensor parallel 8 spans all eight cards, so every all-reduce uses both kinds of link. Our guide to distributed inference with vLLM explains how tensor parallelism splits each layer across GPUs.

Eight NVIDIA H100 PCIe cards, four NVLink pairs

Each pair shares an NVLink bridge; pairs reach one another through the PCIe host bridge.

NV12GPU0GPU1NV12GPU2GPU3NV12GPU4GPU5NV12GPU6GPU7PCIe host bridge (PHB) between every other pair of cardsNVLink bridge, 600 GB/s bidirectionalPCIe Gen5, 128 GB/s bidirectional

The topology nvidia-smi topo -m reports on this flavour. Step 4 prints the same matrix.

The Launch Settings, Flag by Flag

Every engine flag below comes from the command the vLLM recipe generates for NVIDIA H100, apart from the served name and the API key, which turn the server into a private endpoint.

Engine flags

What each flag does on this machine.

--tensor-parallel-size 8
Shards every layer across the eight cards, the smallest NVIDIA H100 configuration the recipe serves.
--engram-config '{"cpu_offload":true}'
Keeps both Engram tables in pinned host memory, read over UVA. It is vLLM's default, set explicitly as the recipe does.
--max-num-batched-tokens 4096
Sizes the indexer buffer at 8 GiB per card with the full context kept.
--gpu-memory-utilization 0.92
The share of each card vLLM manages for weights, buffers and KV cache.
--tokenizer-mode deepseek_v41
The repository ships no Jinja chat template; this mode renders prompts in DeepSeek's V4.1 format in Python.
--reasoning-parser deepseek_v41
Moves the think block into the response's reasoning field.
--tool-call-parser deepseek_v41
Turns the model's DSML tool blocks, DeepSeek's tag format for tool calls, into OpenAI tool_calls.
--enable-auto-tool-choice
Lets the model decide when to call a tool.
--mm-encoder-tp-mode data
Runs the 32-layer vision encoder data-parallel, with a full copy on each card; at hidden size 1,024, tensor parallel communication would cost more than it saves.
--served-model-name deepseek-v4.1-flash
A name without a slash, which Claude Code requires.
--api-key "$VLLM_KEY"
Requires a bearer token on every /v1 route.

Profile values from the vLLM recipe. Flag semantics from the vLLM documentation for reasoning outputs and tool calling.

Environment variables

Set on the container with -e.

VLLM_ENABLE_CUDA_COMPATIBILITY=1
Switches on the image's CUDA 13.0 forward-compatibility libraries for the VM's R570 driver.
VLLM_ENGINE_READY_TIMEOUT_S=3600
Set by the recipe for every GPU type; gives the first load of 510 GB up to an hour to report ready.
VLLM_USE_V2_MODEL_RUNNER=1
Part of the NVIDIA H100 profile, for the memory layout around the indexer buffer.
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
Part of the NVIDIA H100 profile, for the same memory layout.
HF_HUB_OFFLINE=1
The weights are already on disk, so vLLM loads the model without contacting the Hugging Face Hub.

Compatibility mode from the vLLM Docker documentation. The recipe's command builder also sets VLLM_USE_RUST_FRONTEND=1, which selects a Rust API server that vLLM describes as experimental; this deployment keeps vLLM's default Python server.

How to Deploy DeepSeek-V4.1-Flash on Hyperstack, Step by Step

The whole DeepSeek-V4.1-Flash deployment runs on one machine in eight steps. Start the 510 GB download as soon as the machine is active, and pull the container image while it runs.

1
Access Hyperstack
Sign in to the console and activate billing.
2
Deploy the virtual machine
8x NVIDIA H100-80G-PCIe-NVLink, Ubuntu 24.04 with Docker.
3
Open port 8000
One inbound TCP rule, scoped to your own address.
4
Connect and check the GPUs
Eight cards in four NVLink pairs.
5
Download the weights
48 shards to the ephemeral disk.
6
Pull the vLLM image
vllm/vllm-openai:v0.31.0, pinned.
7
Launch vLLM
The recipe's NVIDIA H100 command, plus an API key.
8
Send the first request
17 × 19, answered as 323.

Step 1: Access Hyperstack

Step 2: Deploy a New Virtual Machine

On the Virtual Machines page, click Deploy New Virtual Machine.

Deploy New Virtual Machine button on the Hyperstack Virtual Machines page, the start of a DeepSeek-V4.1-Flash deployment

The Deploy New Virtual Machine button.

Then make six choices in the deployment form.

What to select, and why

The flavour and the image carry the deployment; the rest is access.

Field Selection Why
Flavour 8x NVIDIA H100-80G-PCIe-NVLink, API name n3-H100x8-NVLink 252 vCPUs, 1,440 GB of RAM, a 100 GB root disk and 6,500 GB of ephemeral storage, per the flavour reference. The RAM holds the Engram tables and the ephemeral disk holds the checkpoint.
Environment One in CANADA-1 The region the flavour reference lists for this machine. An environment groups the machine with its keys and network.
OS image Ubuntu Server 24.04 LTS R570 CUDA 12.8 with Docker Driver, CUDA toolkit and Docker come installed, as the image reference describes, so the machine is ready for Docker as soon as you connect.
SSH key Import an existing key or generate one Generating one downloads the private key to your computer. The SSH key guide covers both routes.
SSH access Enabled Adds a firewall rule for TCP port 22.
Public IP Assign Public IP Reaches the machine over SSH and the endpoint over HTTP.

Each choice maps to a field on the Deploy New Virtual Machine page.

Selecting the 8x NVIDIA H100-80G-PCIe-NVLink flavour in the Hyperstack console to deploy DeepSeek-V4.1-Flash

The flavour card for 8x NVIDIA H100-80G-PCIe-NVLink.

Hyperstack OS image list including Ubuntu Server 24.04 LTS R570 CUDA 12.8 with Docker, the image for the DeepSeek-V4.1-Flash vLLM container

The OS image list. Choose Ubuntu Server 24.04 LTS R570 CUDA 12.8 with Docker.

Click Deploy. The machine is ready once its status shows ACTIVE, and billing starts from that state.

Driver and container. The OS image ships the NVIDIA R570 driver, and the vLLM 0.31.0 container carries NVIDIA's CUDA 13.0 forward-compatibility libraries, which VLLM_ENABLE_CUDA_COMPATIBILITY=1 switches on in Step 7. The vLLM Docker documentation lists R570 as a supported host driver for this mode on data centre GPUs such as the NVIDIA H100.

Step 3: Open Port 8000 for the Endpoint

Apart from the SSH rule from Step 2, a new virtual machine accepts no inbound traffic until a firewall rule allows it. Open the machine's details page, go to the Firewall tab and add one inbound rule:

  • Ether type: IPv4
  • Protocol: TCP
  • Port range: 8000
  • Remote IP prefix: your own public address followed by /32
Adding an inbound TCP rule for port 8000 on the Hyperstack Firewall tab for the DeepSeek-V4.1-Flash vLLM endpoint

The inbound rule on the Firewall tab. In the remote IP field, enter your own address followed by /32 rather than 0.0.0.0/0.

Two layers guard the endpoint. The API key from Step 7 protects every route under /v1, and the firewall rule decides who can reach the port at all. The vLLM security guide advises against relying on an API key alone, so keep the remote prefix as narrow as your clients allow.

Step 4: Connect and Check the GPUs

Terminal, your workstationSHELL
# From your workstation, once the virtual machine shows ACTIVE
chmod 600 ~/.ssh/[YOUR KEY]
ssh -i ~/.ssh/[YOUR KEY] ubuntu@[VM PUBLIC IP]

Once the Ubuntu welcome banner appears, confirm what the machine holds before installing anything.

Terminal, the virtual machineSHELL
# Eight cards and their memory, before anything is installed
nvidia-smi --query-gpu=index,name,memory.total --format=csv

# How the eight cards are wired to one another
nvidia-smi topo -m
OutputOUTPUT
index, name, memory.total [MiB]
0, NVIDIA H100 PCIe, 81559 MiB
1, NVIDIA H100 PCIe, 81559 MiB
2, NVIDIA H100 PCIe, 81559 MiB
3, NVIDIA H100 PCIe, 81559 MiB
4, NVIDIA H100 PCIe, 81559 MiB
5, NVIDIA H100 PCIe, 81559 MiB
6, NVIDIA H100 PCIe, 81559 MiB
7, NVIDIA H100 PCIe, 81559 MiB

      GPU0  GPU1  GPU2  GPU3  GPU4  GPU5  GPU6  GPU7  NIC0
GPU0   X    NV12  PHB   PHB   PHB   PHB   PHB   PHB   PHB
GPU1  NV12   X    PHB   PHB   PHB   PHB   PHB   PHB   PHB
GPU2  PHB   PHB    X    NV12  PHB   PHB   PHB   PHB   PHB
GPU3  PHB   PHB   NV12   X    PHB   PHB   PHB   PHB   PHB
GPU4  PHB   PHB   PHB   PHB    X    NV12  PHB   PHB   PHB
GPU5  PHB   PHB   PHB   PHB   NV12   X    PHB   PHB   PHB
GPU6  PHB   PHB   PHB   PHB   PHB   PHB    X    NV12  PHB
GPU7  PHB   PHB   PHB   PHB   PHB   PHB   NV12   X    PHB
NIC0  PHB   PHB   PHB   PHB   PHB   PHB   PHB   PHB    X

Eight NVIDIA H100 PCIe cards at 81,559 MiB each, with NV12 between GPU0 and GPU1, GPU2 and GPU3, GPU4 and GPU5, and GPU6 and GPU7. Every other pair shows PHB, a path through the PCIe host bridge.

Step 5: Download the Weights to the Ephemeral Disk

The root disk is 100 GB, so the Hugging Face cache goes on the 6,500 GB ephemeral disk mounted at /ephemeral.

Terminal, the virtual machineSHELL
# The root disk is 100 GB and the checkpoint is 510 GB, so
# the Hugging Face cache lives on the ephemeral disk
sudo mkdir -p /ephemeral/hf
sudo chown -R ubuntu:ubuntu /ephemeral/hf

# tmux outlives a dropped session; jq reads JSON responses
sudo apt-get update -q && sudo apt-get install -y -q tmux jq
python3 -m pip install -q --break-system-packages \
  -U "huggingface_hub[hf_xet]"
export PATH="$HOME/.local/bin:$PATH"
Terminal, the virtual machine: the downloadSHELL
# Start a named tmux session, then run the download inside it
tmux new -s weights

export HF_HOME=/ephemeral/hf
hf download deepseek-ai/DeepSeek-V4.1-Flash-1017 --max-workers 16

Detach from tmux with Ctrl+b then d, and reattach with tmux attach -t weights. The repository is public under the MIT licence, so the download needs no Hugging Face token. When the command returns, confirm that all 48 shards are present and none is partial:

Terminal, the virtual machineSHELL
# Count the shards and any partial files once the download returns
REPO=/ephemeral/hf/hub/models--deepseek-ai--DeepSeek-V4.1-Flash-1017
SHARDS=$(ls $REPO/snapshots/*/model-*-of-00048.safetensors | wc -l)
PARTIAL=$(find $REPO -name '*.incomplete' | wc -l)
echo "$SHARDS shards, $PARTIAL incomplete"
OutputOUTPUT
48 shards, 0 incomplete

Keep the checkpoint between sessions. Data on /ephemeral does not persist through hibernation, so copy the 510 GB to a shared storage volume, as the ephemeral storage guide describes.

Step 6: Pull the vLLM Image

In a second SSH session, pull the image while the weights download. DeepSeek-V4.1-Flash support arrived in vLLM 0.30.0, and the recipe sets vLLM 0.31.0 as its minimum, so pin that release rather than latest.

Terminal, the virtual machineSHELL
# In a second SSH session, while the weights download
docker pull vllm/vllm-openai:v0.31.0

Step 7: Launch vLLM

Create a key for the endpoint first. Clients send it as a bearer token.

Terminal, the virtual machineSHELL
# A random key for the endpoint, readable by your user only
openssl rand -hex 32 > ~/.vllm_key && chmod 600 ~/.vllm_key
export VLLM_KEY=$(cat ~/.vllm_key)

Then start the container. The engine flags are the recipe's NVIDIA H100 command, with the served name, the API key and CUDA compatibility added.

Terminal, the virtual machine: the launchSHELL
docker run -d --name deepseek-v41-flash \
  --gpus all --ipc=host -p 8000:8000 \
  -v /ephemeral/hf:/root/.cache/huggingface \
  -e HF_HUB_OFFLINE=1 \
  -e VLLM_ENABLE_CUDA_COMPATIBILITY=1 \
  -e VLLM_ENGINE_READY_TIMEOUT_S=3600 \
  -e VLLM_USE_V2_MODEL_RUNNER=1 \
  -e PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True \
  vllm/vllm-openai:v0.31.0 \
  deepseek-ai/DeepSeek-V4.1-Flash-1017 \
  --served-model-name deepseek-v4.1-flash \
  --api-key "$VLLM_KEY" \
  --tokenizer-mode deepseek_v41 \
  --tensor-parallel-size 8 \
  --engram-config '{"cpu_offload":true}' \
  --max-num-batched-tokens 4096 \
  --gpu-memory-utilization 0.92 \
  --reasoning-parser deepseek_v41 \
  --tool-call-parser deepseek_v41 \
  --enable-auto-tool-choice \
  --mm-encoder-tp-mode data

The first start reads 510 GB of weights from the ephemeral disk and pins about 189 GiB of Engram tables and scales in host memory before the API opens; VLLM_ENGINE_READY_TIMEOUT_S=3600, set by the recipe, gives that first load up to an hour.

What happens between docker run and the first request

Five stages, in order.

1
The container starts
vLLM 0.31.0 reads the launch flags and environment variables.
2
Eight workers come up
One per GPU, joined into a tensor parallel group of eight.
3
Weights load from /ephemeral
Experts, attention and embeddings are sharded eight ways; the Engram tables are pinned in host memory.
4
Memory is sized
The indexer reserves its 8 GiB buffer, and the KV cache takes what remains of the 0.92 share once activations and CUDA graphs are accounted for.
5
The API opens
Port 8000 accepts requests and /health starts answering.

Stages of a vLLM start-up for this configuration.

Terminal, the virtual machineSHELL
# Stream the engine's start-up in one terminal
docker logs -f deepseek-v41-flash

# In another, poll the health route until it answers
until curl -sf http://localhost:8000/health; do sleep 30; done
echo "vLLM is ready"
OutputOUTPUT
vLLM is ready

Step 8: Send the First Request

List the served model, then send the question the recipe uses as its own check, with thinking off. The correct answer is 323.

Terminal, the virtual machineSHELL
curl -s http://localhost:8000/v1/models \
  -H "Authorization: Bearer $VLLM_KEY" \
  | jq -r '.data[] | "\(.id)  max_model_len=\(.max_model_len)"'
OutputOUTPUT
deepseek-v4.1-flash  max_model_len=1048576
Terminal, the virtual machineSHELL
curl -s http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $VLLM_KEY" \
  -d '{"model": "deepseek-v4.1-flash",
       "chat_template_kwargs": {"thinking": false},
       "messages": [{"role": "user", "content":
           "What is 17*19? Return only the integer."}]}' \
  | jq -r '.choices[0].message.content'
OutputOUTPUT
323

Setting thinking to false in chat_template_kwargs asks for a direct answer. Without it, the server renders the prompt in thinking mode at effort 75. From your workstation, the same request works against http://[VM PUBLIC IP]:8000 once the Step 3 rule is in place.

DeepSeek-V4.1-Flash Inference: Thinking, Effort, Tools and Images

Every DeepSeek-V4.1-Flash inference request follows the same path. The API server checks the key, vLLM's deepseek_v41 prompt encoder writes the conversation in DeepSeek's V4.1 format, the engine runs it across the eight GPUs, and the reasoning and tool-call parsers turn the raw output back into OpenAI fields.

What one request passes through

Six stages, from your client and back again.

Clientyour app, SDK or agentharnessFirewallTCP 8000, from your ownaddressAPI serverbearer key on every /v1routePrompt encoderdeepseek_v41 writes theV4.1 formatEnginetensor parallel 8 oneight NVIDIA H100 GPUsParsersreasoning and DSML toolcalls to OpenAI fields123456OpenAI JSON back to the client

The prompt encoder and parsers are vLLM's implementation of DeepSeek's encoding reference.

Connect a Python Client

The server speaks the OpenAI Chat Completions API, so the official OpenAI SDK works unchanged. DeepSeek recommends a temperature of 1.0 and a top_p of 1.0 for the 1017 checkpoint, as its model card lists.

Python, your workstationPYTHON
# pip install openai, then export VLLM_KEY with the Step 7 key
import os
from openai import OpenAI

client = OpenAI(
    base_url="http://[VM PUBLIC IP]:8000/v1",
    api_key=os.environ["VLLM_KEY"],
)
MODEL = "deepseek-v4.1-flash"

Chat Mode for Direct Answers

With thinking off, the encoder closes the reasoning block before generation starts, so the reply is the answer and nothing else.

Python, your workstationPYTHON
ask = "Write 1,048,576 as a power of two. Expression only."

reply = client.chat.completions.create(
    model=MODEL,
    messages=[{"role": "user", "content": ask}],
    max_tokens=16,
    extra_body={"chat_template_kwargs": {"thinking": False}},
)
print(reply.choices[0].message.content)
OutputOUTPUT
2^20

Thinking Mode and the 1 to 100 Effort Dial

DeepSeek-V4.1-Flash exposes reasoning as a number rather than a handful of tiers. During reinforcement learning, DeepSeek trained the model at a set of effort levels on a scale from 1 to 100, penalising long reasoning less as the level rises, and the report notes that values between the trained levels give interpolated behaviour. In thinking mode, the encoder writes the value into the prompt as a Reasoning Effort line at the start of the conversation. DeepSeek's own API maps its low, high and max tiers to 50, 75 and 100, as section 5.1.4 of the technical report sets out.

On this server, a request that sets neither thinking key runs in thinking mode at effort 75, the default in DeepSeek's encoder and in vLLM 0.31.0. Set thinking explicitly on every request, and add reasoning_effort whenever thinking is on. Give thinking requests room in max_tokens, since the reasoning trace and the answer share one budget and the answer begins only once the trace closes.

One dial from 1 to 100

DeepSeek's API tiers sit at 50, 75 and 100. The report finds that efforts of 60 to 80 recover most of the maximum setting's accuracy.

1255075100lowhighmax60 to 80Reasoning effort, 1 to 100needle at 75, the default when thinking is on

Tier mapping from Table 2 of the technical report and the encoding reference; the 60 to 80 band from section 5.3.2 of the report.

Python, your workstationPYTHON
question = ("A 475 GiB checkpoint is served by 8 GPUs after "
            "189 GiB of it moves to host memory. How many GiB "
            "does each GPU hold? Answer with the number only.")

reply = client.chat.completions.create(
    model=MODEL,
    messages=[{"role": "user", "content": question}],
    temperature=1.0, top_p=1.0, max_tokens=8192,
    extra_body={"chat_template_kwargs": {
        "thinking": True, "reasoning_effort": 60}},
)
msg = reply.choices[0].message
print("reasoning:", msg.reasoning)
print("answer:", msg.content)
OutputOUTPUT
reasoning: Of the 475 GiB, 189 GiB sits in host memory.
That leaves 475 - 189 = 286 GiB for the GPUs, and split
evenly across 8 GPUs that is 286 / 8 = 35.75 GiB each.
answer: 35.75

The reasoning arrives in the reasoning field and the answer in content. The deepseek_v41 reasoning parser makes that split, and the vLLM documentation notes that the field was called reasoning_content in older releases.

What effort 25 and effort 100 buy

Pass@1 at effort 25 and effort 100. The higher setting spends roughly 2.5 times the output tokens.

Chart: Pass@1 at reasoning effort 25 and 100. The average of eight reasoning benchmarks rises from 67.1 to 76.3, DeepSWE v1.1 from 66.0 to 74.2 and Terminal-Bench 2.1 from 82.4 to 90.6.

Source: section 5.3.2 of the technical report, which scores the launch weights. The reasoning line averages eight benchmarks, including GPQA Diamond, HLE, LiveCodeBench and MathArena Apex; DeepSWE v1.1 runs on mini-SWE and Terminal-Bench 2.1 on DeepSeek Harness in Minimal mode.

Efforts of 60 to 80 recover most of effort 100's accuracy at less than half its tokens, while the last step to 100 lengthens agent trajectories by 1.6 to 1.8 times for marginal gains. Effort therefore sets how many tokens each request spends, and so how much of the machine's capacity it uses, with no change to the server.

Tool Calling Through the DSML Parser

DeepSeek-V4.1-Flash writes tool calls as DSML tag blocks rather than JSON. vLLM handles both directions: the encoder wraps your tool messages in tool_result tags, and the deepseek_v41 parser turns DSML blocks into standard OpenAI tool_calls. With --enable-auto-tool-choice, the model decides for itself when to call a tool.

One tool call, two notations

The parser turns the DSML block the model writes into the OpenAI structure your client reads.

What the model writesOUTPUT
<|DSML| calls>
<|DSML| invoke name="get_flavour">
<|DSML| parameter name="name" string="true">n3-H100x8-NVLink</|DSML| parameter>
</|DSML| invoke>
</|DSML| calls>
What your client receives, after the parserJSON
"tool_calls": [{
  "type": "function",
  "function": {
    "name": "get_flavour",
    "arguments": "{\"name\": \"n3-H100x8-NVLink\"}"
  }
}]

DSML format from DeepSeek's encoding reference; tool_calls follows the OpenAI schema.

The example below gives the model one tool that returns the hardware of a Hyperstack flavour, then asks a question it can only answer after calling it.

Python, your workstation: the first turnPYTHON
import json

FLAVOURS = {"n3-H100x8-NVLink": {
    "gpus": 8, "vcpus": 252, "ram_gb": 1440,
    "root_disk_gb": 100, "ephemeral_gb": 6500}}
tools = [{"type": "function", "function": {
    "name": "get_flavour",
    "description": "Hardware of a Hyperstack flavour, by API name.",
    "parameters": {"type": "object", "required": ["name"],
                   "properties": {"name": {"type": "string"}}}}}]
effort = {"chat_template_kwargs": {"thinking": True,
                                   "reasoning_effort": 40}}

messages = [{"role": "user", "content":
             "Will a 510 GB checkpoint fit on the ephemeral disk "
             "of n3-H100x8-NVLink? Look the flavour up first."}]
reply = client.chat.completions.create(
    model=MODEL, messages=messages, tools=tools, extra_body=effort)
call = reply.choices[0].message.tool_calls[0]
print(call.function.name, call.function.arguments)
OutputOUTPUT
get_flavour {"name": "n3-H100x8-NVLink"}
Python, your workstation: the tool result and the answerPYTHON
msg = reply.choices[0].message
messages.append({"role": "assistant", "content": msg.content,
                 "reasoning": msg.reasoning,
                 "tool_calls": [call.model_dump()]})

result = FLAVOURS[json.loads(call.function.arguments)["name"]]
messages.append({"role": "tool", "tool_call_id": call.id,
                 "content": json.dumps(result)})

final = client.chat.completions.create(
    model=MODEL, messages=messages, tools=tools, extra_body=effort)
print(final.choices[0].message.content)
OutputOUTPUT
Yes. n3-H100x8-NVLink has 6,500 GB of ephemeral storage,
so a 510 GB checkpoint fits with about 5,990 GB to spare.

Passing the assistant turn back with its reasoning keeps the model's plan intact across the call. When a conversation declares tools, DeepSeek's encoder keeps the reasoning from every turn rather than dropping earlier traces, so the model can follow one plan through several calls.

Image Input

Images go in as image_url content parts, the format vLLM's multimodal input guide documents. vLLM fetches each image, runs the 32-layer vision encoder and places the visual tokens where the image sits in the prompt. Each image costs up to 1,024 tokens, as the vLLM recipe notes, and the 3 by 3 pixel-unshuffle supports inputs up to about 1,344 by 1,344 pixels. The request below asks the model to read DeepSeek's own KV cache chart from the DeepSeek-V4.1-Flash model card.

Python, your workstationPYTHON
chart = ("https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash/"
         "resolve/main/assets/dsv41_kv_cache.png")
question = ("Which model on this chart has the smallest KV cache "
            "per token, and how much smaller is it than the next?")

reply = client.chat.completions.create(
    model=MODEL,
    messages=[{"role": "user", "content": [
        {"type": "image_url", "image_url": {"url": chart}},
        {"type": "text", "text": question},
    ]}],
    max_tokens=512,
    extra_body={"chat_template_kwargs": {"thinking": False}},
)
print(reply.choices[0].message.content)
OutputOUTPUT
DeepSeek-V4.1-Flash has the smallest global KV cache per
token, at 890 bytes. The next smallest is DeepSeek-V4-Flash
at 3,514 bytes, so V4.1-Flash is about 3.9 times smaller.

Keep one text request and one image request in your deployment checks, since the vision encoder is a separate path through the model.

Connect an Agent Harness to DeepSeek-V4.1-Flash

DeepSeek scored DeepSeek-V4.1-Flash in eight harness configurations from six families, with the checkpoint and decoding settings held fixed, and reports that its agentic behaviour carries across them. You can therefore pick the harness that fits your own workflow.

The same model in eight harnesses

Resolved rate on DeepSWE v1.1 and Pass@1 on Terminal-Bench 2.1, at maximum effort. Switch between the two benchmarks.

 
Chart: DeepSWE v1.1 resolved rate by harness. mini-SWE 74.2, DeepSeek Harness Minimal 72.6, DeepSeek Harness Standard 70.5, Claude Code 69.8, DeepSeek Harness PTC 67.6, Pi 66.2, Codex 65.6 and OpenCode 65.5.

Source: Table 4 of the technical report, which scores the launch weights. Eight samples per task on DeepSWE v1.1 and three on Terminal-Bench 2.1, a 1M-token context, a temperature of 1.0 and a top-p of 0.95.

vLLM serves the Anthropic Messages API beside the OpenAI one, so Claude Code can use this endpoint directly. Point it at the server and map every model tier to the served name:

Terminal, your workstationSHELL
# On your workstation, with Claude Code installed
export ANTHROPIC_BASE_URL="http://[VM PUBLIC IP]:8000"
export ANTHROPIC_AUTH_TOKEN="[YOUR VLLM KEY]"
export ANTHROPIC_API_KEY="[YOUR VLLM KEY]"
export ANTHROPIC_DEFAULT_OPUS_MODEL="deepseek-v4.1-flash"
export ANTHROPIC_DEFAULT_SONNET_MODEL="deepseek-v4.1-flash"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-v4.1-flash"
claude

As its environment variable reference states, Claude Code sends ANTHROPIC_AUTH_TOKEN as a bearer token, which the server's API key check accepts. Harnesses that speak the OpenAI API take http://[VM PUBLIC IP]:8000/v1 as the base URL and the same key.

Tuning DeepSeek-V4.1-Flash on vLLM

Turn On DSpark Drafting

To enable DSpark, add the recipe's speculative decoding flag as the last line of the launch command, with a backslash at the end of the line before it:

Addition to the Step 7 launch commandSHELL
# Append to the end of the Step 7 launch command
  --speculative-config '{"method": "dspark",
    "num_speculative_tokens": 5,
    "draft_sample_method": "probabilistic",
    "rejection_sample_method": "block",
    "enable_adaptive_verification": true}'

It drafts five tokens per round, the block size DSpark was trained on, and turns on adaptive verification on NVIDIA GPUs. How many drafts are accepted depends on how predictable your traffic is, so measure the acceptance rate on your own prompts before adopting it.

Serve Text Only

For text-only traffic, replace --mm-encoder-tp-mode data with the flag below. It skips the vision encoder and its aligner and frees that memory for the KV cache; the two flags cannot be used together.

Swap in the Step 7 launch commandSHELL
# In place of --mm-encoder-tp-mode data, for text-only traffic
  --language-model-only

Size the Context to the Workload

The indexer buffer grows with the context limit as well as the batch budget. A workload that never needs a million tokens can set --max-model-len lower, and the memory the buffer gives up goes to the KV cache.

Indexer buffer at a 262,144-token context
4,096 tokens × 262,144 positions × 2 bytes = 2 GiB
Against 8 GiB at the full 1,048,576-token context.

DeepSeek-V4.1-Flash Deployment Cost

A DeepSeek-V4.1-Flash deployment on one machine comes down to one hourly GPU rate. Hyperstack lists NVIDIA H100 NVLink at $2.60 per GPU hour on demand and from $1.82 per GPU hour reserved on its GPU pricing page, and this machine carries eight cards. The public IP the endpoint needs is listed separately on the same page, at $0.00672043 per hour. Billing runs per minute, as the billing policies set out, and starts once the machine is ACTIVE, as the getting started guide notes.

The 8x NVIDIA H100-80G-PCIe-NVLink machine, priced

One machine carries the whole deployment, so these rows are the full GPU bill.

Pricing Per GPU hour Per hour Per day Per 730-hour month
On demand $2.60 $20.80 $499.20 $15,184.00
Reserved, from $1.82 $14.56 $349.44 $10,628.80

Per GPU rates from the Hyperstack GPU pricing page, multiplied by eight GPUs, then by 24 hours and by 730 hours. On demand, a minute costs about $0.35.

What a month of runtime costs

Drag the slider to the hours the machine runs. Billing is per minute, so a partial hour costs only the minutes used.

 
Chart: cost of the 8x NVIDIA H100 machine for a chosen number of hours. At 730 hours, on demand at $20.80 per hour is $15,184.00 and reserved from $14.56 per hour is $10,628.80.

On-demand and reserved rates for eight NVIDIA H100 NVLink GPUs, from the pricing page.

Three Levers on the Bill

What moves the cost, and how

One lever is a commitment, one is a per-request setting and one is a habit.

Lever Effect
Reserved pricing From $1.82 against $2.60 per GPU hour, 30 per cent lower, for an endpoint that runs continuously.
Reasoning effort Sets how many tokens each answer spends, and so the cost of each answer on a machine billed by the hour. DeepSeek finds most of the maximum accuracy between 60 and 80, at under half the tokens of 100.
Hibernation between sessions This flavour supports hibernation, which bills only the root disk while the machine is paused. Keep a copy of the checkpoint on a shared storage volume, because /ephemeral does not persist through it. Shared storage is listed at $0.000096774 per GB per hour, about $0.05 per hour for the 510 GB checkpoint.

Hibernation support and billing from the flavour reference; storage behaviour from the ephemeral storage guide; the shared storage rate from the GPU pricing page.

Why self-host a model that DeepSeek also serves as an API? The MIT licence lets you run the weights on a machine you control, so your prompts and every response stay inside your own environment. You set the context length and the parsers at launch and the effort on every request, and the machine costs the same per hour however many tokens it serves. For a primer on the serving engine itself, see what vLLM is and how it serves models.

Why Deploy DeepSeek-V4.1-Flash on Hyperstack?

Hyperstack is a cloud platform built for AI and machine learning workloads. Here is what a single-node DeepSeek-V4.1-Flash deployment needs from a provider, and how that maps onto the platform:

Eight NVIDIA H100 GPUs in One Machine
The 8x NVIDIA H100-80G-PCIe-NVLink flavour serves the 1017 checkpoint with about 36 GiB of resident weights per card, and NVLink bridges each pair of cards at 600 GB/s bidirectional.
1,440 GB of Host Memory for Engram
Room to pin both Engram tables and their scales, about 189 GiB, with most of the machine's memory still free, per the flavour reference.
6,500 GB of Ephemeral Storage
The ephemeral disk holds the 510 GB checkpoint more than twelve times over, on the same machine as the GPUs that read it.
Docker-Ready Ubuntu Images
Ubuntu Server 24.04 LTS R570 CUDA 12.8 with Docker goes from SSH to docker run with no driver work.
Per-Minute Billing and Reserved Rates
$20.80 per hour on demand, from $14.56 reserved, billed by the minute.
Firewall Rules per Machine
One inbound firewall rule scopes the endpoint to your own address.

Run DeepSeek-V4.1-Flash on your own GPUs

Deploy DeepSeek-V4.1-Flash on 8x NVIDIA H100

One virtual machine, the vLLM recipe's NVIDIA H100 configuration and a private endpoint with thinking, tool calls, image input and the full one-million-token context, from $20.80 per hour on demand.

8x NVIDIA H100 80 GB1,048,576-token contextvLLM 0.31.0$20.80 per hour

Launch an NVIDIA H100 virtual machine on Hyperstack today.

FAQs

What is DeepSeek-V4.1-Flash-1017?

DeepSeek-V4.1-Flash-1017 is an updated release of DeepSeek-V4.1-Flash, a multimodal mixture-of-experts model with 552B backbone parameters. It activates 8B parameters per prompt token and 16B per generated token, holds 1,048,576 tokens of context and ships under the MIT licence.

What hardware do you need to deploy DeepSeek-V4.1-Flash?

DeepSeek-V4.1-Flash needs one node of eight 80 GB GPUs, the smallest NVIDIA configuration the vLLM recipe serves. Its 475 GiB checkpoint fits once the Engram tables and their scales, about 189 GiB, move to host memory, leaving about 36 GiB of resident weights on each NVIDIA H100.

How much does a DeepSeek-V4.1-Flash deployment cost on Hyperstack?

An 8x NVIDIA H100-80G-PCIe-NVLink machine costs $20.80 per hour on demand, or from $14.56 per hour reserved, billed per minute. The whole deployment runs on that one machine, so one hourly rate covers every GPU.

How do you control thinking on DeepSeek-V4.1-Flash?

Send chat_template_kwargs with thinking set to true or false and, when thinking is on, a reasoning_effort integer from 1 to 100 in the same object. With neither key set, vLLM 0.31.0 runs thinking mode at effort 75.

Does DeepSeek-V4.1-Flash support tool calling and images on vLLM?

Yes. With the deepseek_v41 tool parser and auto tool choice, the tag blocks the model writes for tool calls arrive as OpenAI tool_calls, and image_url content parts run through its 32-layer vision encoder at up to 1,024 tokens per image.

Fareed Khan

Fareed Khan

calendar 21 Oct 2026

•

Read More
tutorials Tutorials link

Dedicated Inference: Deploy a Private Model Endpoint on ...

Hyperstack Dedicated Inference puts a single open-weight ...

Hyperstack Dedicated Inference puts a single open-weight model on GPUs reserved for your organisation, reachable at an HTTPS endpoint that only its own API key can call. It sits next to the shared, per-token AI Studio service as a second shape for the same job: instead of sending tokens to a model that other customers also call, you get a private machine, a private endpoint and a bill measured in GPU hours rather than tokens.

The Deploy AI wizard does the part that would otherwise be a manual deployment: it sizes the GPUs to the model, its context length and its concurrency, checks a configuration is in stock, creates the virtual machine, installs the serving runtime and issues the endpoint URL and key.

This guide walks the whole path end to end, from the console login through a live deployment to calling the endpoint from Python, including the pattern for pointing an agent or a tool-calling loop at it.

Everything below follows the wizard exactly as it renders in the console, and every external claim links back to the official Dedicated Inference documentation or to the relevant Hyperstack product page. Where a Hyperstack GPU is named, it is named in full, because the card matters: sizing, cost and concurrency all follow directly from which NVIDIA GPU the wizard puts under your model.

Dedicated Inference at a Glance

What one Deploy AI run gives you, before any of the detail below.

Private endpointAPI key protectedOpenAI-compatiblevLLM runtimeBilled per minuteAny NVIDIA GPU the wizard can size
CREATES
7 pieces
VM, IP, image, runtime, weights, hostname, key
SETUP TIME
Minutes
Mostly the weight download on first boot
BILLING
Per GPU hour
On demand, billed per minute
MODEL SOURCE
Catalogue or Hugging Face
Exact repository match, token-gated

Every figure here is unpacked, with its own screenshot or worked example, in the sections that follow.

How Hyperstack Dedicated Inference Works

AI Studio serves models through a shared endpoint billed per token, with nothing to provision. Dedicated inference is the other shape: one model, on hardware reserved for you, provisioned on demand and metered by the minute for as long as the machine runs. Use it when:

  • You need predictable latency.
  • You need a private endpoint that other customers never touch.
  • The shared catalogue does not serve the model at all.

The choice between the two is a question of stage and workload rather than one being an upgrade of the other, and Hyperstack’s own comparison of the two inference shapes covers the trade-off in more depth.

Two inference shapes, side by side

The same model catalogue, served two different ways.

The same model catalogueserved two different waysShared, Partner APIOne model, every customerBillingPer million tokensHardwareShared poolSetupNone, call it nowIdle costNothingDedicatedOne model, your GPUs aloneBillingPer GPU hourHardwareReserved for youSetupA few minutesIdle costThe hourly rate

Billing, hardware and setup are the three questions that decide between them; model choice and idle cost usually follow from the answer.

Three Doors, One Wizard

The wizard opens as a modal from three places, and it is the same wizard from all three: the Dashboard using its Deploy AI Model button, the Virtual Machines page using Deploy AI next to Deploy New Virtual Machine, or the Endpoints tab of the Inference page using its own Deploy AI button. Closing it with Cancel discards the deployment at any step and returns you to the page you started from.

Three entry points, one modal

Wherever it opens from, the wizard is the same three steps.

Dashboardthe Deploy AI Model buttonVirtual Machines pageDeploy AI, beside Deploy NewVirtual MachineInference pageDeploy AI, on the EndpointstabDeploy AI wizardthe same three steps, wherever you open it from

Deploy AI Model on the Dashboard, and Deploy AI on the Virtual Machines page and the Inference page, all open the identical wizard.

One Deploy AI Run Creates Seven Things

A single wizard run creates all of the following, and none of it is configured by hand:

  • A virtual machine sized to the model.
  • A public IP address with SSH, HTTP and HTTPS opened in its firewall.
  • A GPU image with the NVIDIA driver, CUDA and Docker preinstalled.
  • A pinned version of the vLLM serving runtime.
  • The model weights themselves.
  • A generated hostname with HTTPS terminated on the machine.
  • An API key that every request must present.

What one Deploy AI run creates

Seven pieces of infrastructure from a single wizard pass, none of them touched by hand.

Deploy AIone wizard run1Virtual machine2Public IP3GPU image4Serving runtime5Model weights6Hostname + cert7API key

Reproduced from the component table in the Dedicated Inference documentation.

Sizing a Dedicated Endpoint

Sizing runs the moment you pick a model, before you have filled in anything else, so an unavailable configuration surfaces immediately rather than at the end of the form.

The recommendation accounts for three things, shown as a single Fits the model line:

  • The model weights.
  • The key-value cache, a product of the context length and the number of concurrent requests you ask for.
  • A reserved allowance for the serving engine’s own runtime overhead, which the panel itself flags as an uncalibrated estimate rather than a measured figure.

That total is checked against the usable VRAM of a candidate configuration, which is 90 per cent of the card’s advertised VRAM; the remaining 10 per cent is held back as headroom outright, before any model is even loaded. On a 48 GiB card that is 43.2 GiB usable, and every figure in the panel below is measured against that number rather than the full 48 GiB.

A real sizing result, one NVIDIA RTX A6000

The Hosting setup step for a Qwen3-14B deployment at 8,192 tokens of context and a starting request of 4 concurrent requests, on the wizard’s default sizing setting, named Cost and explained below.

Chart: a 48 GiB NVIDIA RTX A6000 broken into 27.5 GiB of model weights, 5.0 GiB of key-value cache, 5.9 GiB of runtime overhead, 4.8 GiB free within the usable share, and 4.8 GiB set aside by the serving engine.

From the wizard’s own “Fits the model” line: 38.4 GiB of 43.2 GiB usable is committed, leaving 4.8 GiB free within the usable share, on top of the 4.8 GiB the engine holds back.

The wizard sizes to the nearest configuration that fits rather than to the exact number typed in, so this NVIDIA RTX A6000 serves 7 concurrent requests even though 4 was asked for, and the arithmetic below is computed against that served figure.

The arithmetic behind the panel aboveOUTPUT
  27.5 GiB   model weights
   5.0 GiB   key-value cache, 8,192 tokens x 7 concurrent requests
   5.9 GiB   runtime overhead
  --------
  38.4 GiB   needed

  48.0 GiB   advertised VRAM
   x   0.90  usable share
  --------
  43.2 GiB   usable

  38.4 GiB fits within 43.2 GiB usable, 4.8 GiB free

The panel also reports what the configuration serves, which can exceed what you asked for, as it does here. The machine behind it carries 28 vCPUs and 58 GB of RAM, and the quoted rate was $0.5067 an hour, close to $370 a month if left running continuously.

Three Sizing Profiles

A Sizing profile sits alongside context length and concurrency, and decides which fitting configuration the wizard recommends.

Cost, Fast or Experiment

The same model and the same context and concurrency, sized three different ways.

Fast
The quickest GPU class that fits.
WIZARD DEFAULT
Cost
The cheapest configuration that fits.
Experiment
The fewest GPUs that fit, at a shorter context.

Cost is the default and the one used throughout this example.

Context length runs from 4,096 to 32,768 tokens and concurrency from 1 to 32 concurrent requests. For a longer context or higher concurrency than the wizard offers, both dropdowns carry a link to contact sales directly.

Clicking Change the configuration opens every configuration that serves the model at the chosen context and concurrency, ranked from cheapest to most expensive, with the flavour, usable VRAM and hourly rate of each. Only configurations that are in stock can be selected; the rest are listed as unavailable with a contact-sales link in place of a rate.

Regions follow stock, not the other way round. Only regions with the recommended configuration in stock are selectable, and since each environment belongs to one region, that choice also decides which environments and SSH keys are available.

What contains what

From this deployment: CANADA-1 as the region, example-environment inside it.

REGIONCANADA-1ENVIRONMENTexample-environmentSSH keyexample-keyVirtual machinethe endpoint’s own machine

The same nesting the Hosting setup step walks through: pick the region, then the environment inside it, then the SSH key.

When Nothing Is in Stock

Stock is checked live, so the wizard sometimes finds that every configuration matching the recommendation is unavailable everywhere. When that happens, the Hosting setup step says so directly and hides the region and environment controls rather than letting you continue towards a machine that cannot be created.

Try a different size then offers the same three levers in reverse:

  • Shorten the context.
  • Lower the concurrency.
  • Switch the sizing profile.

A smaller key-value cache usually lands on a smaller GPU class, and a smaller GPU class is the one more likely to have stock somewhere.

Where nothing fits even after that, Contact support opens a request with the model already filled in, so the only thing left to add is what you need.

Before You Deploy

Two things are worth having ready before you open the wizard: a Hugging Face token and the right permissions in your Hyperstack organisation.

A Hugging Face token with Read scope is required. It is used once to download the model weights and never stored. Generate one from the Hugging Face access tokens page.

Organisation owners already hold every permission the wizard needs. An organisation member needs virtual machine, environment and SSH key permissions in their user role, which an owner or administrator assigns.

Permission What it allows in the wizard
virtual-machine:create Creating the endpoint’s virtual machine.
environment:list Choosing the environment to deploy into.
keypair:list Choosing the SSH key.
environment:create Creating a new environment from inside the wizard.
keypair:create Creating a new SSH key from inside the wizard.

The simplest role that grants all five is the VirtualMachinePermissions policy plus the two individual permissions environment:create and keypair:create. The policy grants the first three outright, and also grants every other virtual machine permission, so the same member can manage the endpoint’s machine afterwards: opening its console, editing its firewall rules and deleting it.

Log In and Open the Console

Sign in at console.hyperstack.cloud with your email and password, or through Google, Microsoft or GitHub. The dashboard is the first of the three places the wizard opens from.

Hyperstack console login screen

Signing in to the Hyperstack console.

The welcome card on the dashboard carries two buttons: Deploy Virtual Machine for general compute, and Deploy AI Model for a dedicated endpoint like the one this guide builds.

Hyperstack dashboard with the Deploy AI Model button

The dashboard’s Deploy AI Model button is one of three ways to open the wizard.

Deploying a Model, Step by Step

The wizard is three steps: pick a model, set up hosting, then review and deploy. The walkthrough below follows a Qwen3-14B deployment, and every figure quoted is taken directly from the console screens shown.

1
Pick a model
Browse or search the catalogue, and filter to models that support dedicated hosting.
2
Hosting setup
Choose Hyperstack dedicated, supply a Hugging Face token, and set context, concurrency and region.
3
Review and deploy
Check the deployment summary and estimated cost, then click Deploy Endpoint.

Step 1. Pick a Model

The catalogue is filtered by modality. It also grows over time, so treat the counts below as a snapshot and check the models overview for the current total.

Each row carries the model’s repository id, its approximate parameter count, and how it can be served: Partner API for the shared, per-token service, or Dedicated for your own GPUs. The Hyperstack dedicated filter chip narrows the list to only the models that support the path this article covers.

The catalogue, by modality

Counts from the run shown below. A model can carry more than one tag, so these do not sum to the 160 total.

Chart: 144 models tagged text to text, 31 tagged image to text, 12 tagged text to image and 4 tagged image to image.

Filtered further with the Hyperstack dedicated chip, the Partner API chip, or a free-text search across model and provider names.

If the model you want is not listed, Add from Hugging Face takes a Hugging Face token and the exact model repository id. The match is exact rather than fuzzy, and Hyperstack checks both that the model exists and that the supplied token can reach it before offering to deploy it.

Deploy AI wizard, Pick a model step, with Qwen3-14B selected

Qwen/Qwen3-14B selected in the unfiltered catalogue; the Hyperstack dedicated filter chip, next to All and Partner API, narrows this further.

Step 2. Hosting Setup

Hosting setup opens with two cards, Partner API and Hyperstack dedicated. For a model the shared service also serves, the Partner API card is selected by default, so switching to the dedicated card is the first action here. Next stays unavailable until a Hugging Face token has been applied.

This step also sets the Context length, Concurrency and Sizing profile the recommendation is built from; this example uses the wizard’s starting values of 8,192 tokens, 4 concurrent requests and the Cost profile.

With the Hugging Face token applied, the panel below updates to show the recommended configuration:

  • Which GPU it picked.
  • How the model fits into the usable VRAM.
  • What the configuration serves.
  • What the hourly rate is, with an always-on monthly estimate.
  • What the machine’s CPU and memory are.

The exact figures for this Qwen3-14B example are covered in the sizing section above.

From here you also choose the region and environment, an SSH key, and can click Change the configuration to override the recommendation with any other in-stock configuration that serves the same model.

Deploy AI wizard, Hosting setup step, showing the recommended configuration

The recommended configuration panel: one NVIDIA RTX A6000, sized for 8,192 tokens of context and serving 7 concurrent requests.

Step 3. Review and Deploy

The final step is Review & deploy, which restates the whole deployment as a summary before anything is created.

Deployment summary, this Qwen3-14B run

Every field the wizard commits to before creating the machine.

Field Value
Model Qwen3-14B
Model id Qwen/Qwen3-14B
Runs on Hyperstack dedicated
Runtime vLLM
Region CANADA-1
Environment example-environment
SSH key example-key
Weights pull Hugging Face token, masked in the console, used once and never stored

The endpoint URL sits under the ai.hyperstackcustomers.cloud domain and is protected by a generated API key from the moment it is live.

Estimated cost, before you commit

Shown alongside the summary, on the same screen.

Item Value
Rate $0.5067 / hour
If always on ≈ $370 / month
Deploys and builds Free

Provisioning time depends on the size of the model weights; this deployment pulls 27.5 GiB on first boot.

Deploy AI wizard, Review step, showing the deployment summary and estimated cost

Review & deploy, immediately before clicking Deploy Endpoint.

What Happens After You Click Deploy Endpoint

The wizard stays open and reports provisioning as it happens, then hands off to the endpoint’s own page once the engine is serving.

From Deploy Endpoint to a live endpoint

The four stages the console reports, in order.

01GPUs reserved
The configuration you reviewed is booked on the machine that will run it.
02Machine active
The virtual machine boots the GPU image and starts pulling the serving container.
03Endpoint address published
DNS for the generated hostname goes live, and the HTTPS certificate is issued.
04Engine serving
The model weights have loaded into vLLM and the endpoint answers chat completions requests.

Provisioning time is dominated by the weight download, which starts as soon as the machine is active.

You are notified by email, not by watching the screen. One arrives when the endpoint is live, another if it fails. The API key is never emailed, only ever read from the console.

Managing Your Endpoint

Every dedicated endpoint is listed on the Endpoints tab of the Inference page in AI Studio, alongside Base Models Pricing and Vision Models Pricing tabs for the shared service. The list shows each endpoint’s name, model, the GPUs it runs on, region, status and running cost.

A live endpoint on the Endpoints tab

One dedicated endpoint, serving Qwen/Qwen3-14B on a single NVIDIA L40.

Endpoint Model Runs on Region Status Running cost
qwen3-14b-9f558e Qwen/Qwen3-14B 1× NVIDIA L40 CANADA-1 Live $1.0067/hr

Clicking the endpoint’s name, or View, opens its own page.

Inference page, Endpoints tab, listing a dedicated endpoint

The Endpoints tab, with one dedicated endpoint running.

The Endpoint’s Own Page

Opening an endpoint shows a Connection section carrying:

  • The endpoint URL, model id and API key, masked until an eye control is clicked, with a copy control beside each.
  • The provisioned configuration and running cost.
  • A Quick start request with the URL and model id already filled in.

Manage virtual machine opens the machine behind the endpoint.

Endpoint page showing the Connection details and the Quick start request

Connection details and the Quick start request, ready to copy.

An endpoint key is not an AI Studio API key. It is issued with that endpoint, covers only that endpoint, and is not one of your API keys.

The Endpoint and Its Virtual Machine Are One Resource

The endpoint and the machine behind it link to each other in both directions, and deleting either one deletes both: the machine, its public IP address and the endpoint record are released together, so nothing is left running or reserved.

One resource, two pages

What lives on the endpoint’s own page against what lives on its virtual machine’s page.

Endpoint page
AI Studio, Inference, Endpoints
  • Endpoint URL, model id and API key
  • Provisioned configuration and running cost
  • The Quick start request, ready to copy
  • Delete, which takes the machine with it
↕
Virtual machine page
Cloud, Virtual Machines
  • SSH access and firewall rules
  • Console access and console logs
  • A Performance Metrics tab, and a link back to the endpoint
  • Hibernation and snapshots, both unavailable
Deleting the virtual machine deletes the endpoint with it. The machine, its public IP address and the endpoint record are released together.

Manage virtual machine, on the endpoint page, and Go to inference endpoint, on the virtual machine’s Dedicated Inference tab, link the two views together.

Virtual machine page, Dedicated Inference tab, showing the endpoint it serves

The virtual machine’s own Dedicated Inference tab, linking back to the endpoint. The console labels it an Express Deploy endpoint, an internal name for the same dedicated deployment this guide covers throughout.

What Changes on an Inference Machine

A machine that serves a dedicated endpoint is still an ordinary virtual machine in every way that matters day to day, with two operations refused because the machine exists to serve the endpoint rather than to be reshaped.

Console access, console logs, metrics, eventsAvailable
SSH access and firewall rulesAvailable
Enhanced Monitoring, on by defaultAvailable
HibernationNot supported
SnapshotsNot supported

Enhanced Monitoring is already on for a machine serving a dedicated endpoint, so metrics are collected with nothing to install: the usual CPU, memory and network graphs every monitored machine carries, plus serving metrics read from the inference engine itself.

The machine’s Performance Metrics tab carries a separate Dedicated Inference sub-tab summarising six values: the model served, requests running, requests waiting, key-value cache usage, token throughput and error rate, alongside time-series charts for throughput, time to first token, queue depth and cache usage. The separate Dedicated Inference page in the left menu links back to the endpoint itself rather than its metrics.

Connecting to Your Endpoint

Every dedicated endpoint exposes an OpenAI-compatible chat completions API at its own hostname, protected by the API key generated for it. That compatibility is the point: nothing about calling it is specific to Hyperstack once the base URL and key are set, so any client library, framework or agent already built against the OpenAI schema works here unchanged.

The simplest call is a signed curl request, and the endpoint’s own page in the console carries this exact request with the URL and model id already filled in.

A signed request to your endpoint

Replace the host and the key with your own.

Call your dedicated endpointSHELL
curl -X POST "https://<endpoint-host>.ai.hyperstackcustomers.cloud/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "model": "Qwen/Qwen3-14B",
  "messages": [{"role": "user", "content": "Hello"}]
}'

The key is sent as a bearer token, and the model id is the same repository id shown on the endpoint’s page, such as Qwen/Qwen3-14B.

Calling It from Python

The OpenAI Python SDK works against any OpenAI-compatible server, which is what vLLM exposes behind the endpoint. Pointing it at your dedicated endpoint is a matter of setting base_url and api_key, with no other code changed.

Install the clientSHELL
pip install openai
chat_basic.pyPYTHON
from openai import OpenAI

client = OpenAI(
    base_url="https://<endpoint-host>.ai.hyperstackcustomers.cloud/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="Qwen/Qwen3-14B",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

The response is an ordinary OpenAI-shaped chat completion object:

  • An id.
  • The model that answered.
  • One or more choices, each carrying a message.
  • A usage block with prompt, completion and total token counts.

Nothing about parsing it differs from parsing a response from any other OpenAI-compatible provider.

Streaming works the same way as it does against any OpenAI-compatible server: set stream=True and read the response as a sequence of chunks rather than waiting for the whole completion.

chat_stream.pyPYTHON
stream = client.chat.completions.create(
    model="Qwen/Qwen3-14B",
    messages=[{"role": "user", "content": "Write one sentence about GPUs."}],
    stream=True,
)
for chunk in stream:
    delta = chunk.choices[0].delta.content
    if delta:
        print(delta, end="", flush=True)

Concurrency has a ceiling, and it is visible. The sizing panel reports how many requests a configuration serves, seven for the NVIDIA RTX A6000 example above. Requests beyond that queue rather than fail, visible as requests running against requests waiting in the machine’s own Enhanced Monitoring.

Using a Dedicated Endpoint for Agentic Workloads

Qwen3-14B is a strong fit for agentic use: its own model card states plainly that the Qwen3 family “excels in tool calling capabilities”, and that it supports switching between a thinking mode for complex reasoning and a plain dialogue mode for direct answers within the same model. The Qwen team’s own recommendation for building agents on top of it is Qwen-Agent.

Why the loop below asks for tools in the prompt, not the tools parameter. vLLM only enables that parameter with --enable-auto-tool-choice and a matching --tool-call-parser; without both, it returns a 400 error instead of a tool call. The prompt-based approach needs nothing but the chat completions endpoint every dedicated deployment guarantees.

A tool-calling round trip against a dedicated endpoint has the same shape whatever the tool does: your application sends the conversation, with the available tools described in the prompt, the model decides whether one is needed, your own code runs it if so, and the result is appended to the conversation before the next call.

The loop ends when the model answers with no tool call in its reply.

The tool-calling loop against a dedicated endpoint

Four stops, repeated until the model stops asking for a tool.

Your applicationsends messages, toolsin the promptDedicated endpointdecides whether a toolis neededYour coderuns the requestedfunction locallyTool resultappended as the nextuser turn1234Final answerno tool call left

A prompt-driven loop against your endpoint, needing nothing but plain chat completions.

Defining a Tool

Rather than a JSON Schema passed to a tools parameter, the tool is described in plain language inside the system prompt, along with the exact JSON shape the model should reply with when it wants to call it. The model never executes anything directly; it only ever writes out that JSON, which your own code reads.

system_prompt.pyPYTHON
SYSTEM_PROMPT = """
You can call one tool when live data would answer the question
better than a guess.

get_gpu_utilisation(node): the current utilisation of a named GPU
node, for example "gpu-03".

To call it, reply with only this JSON, nothing else:
{"tool": "get_gpu_utilisation", "arguments": {"node": "<node name>"}}

Otherwise, answer directly in plain text.
"""

Running the Loop

The loop below sends a question, and on each turn checks whether the reply text contains that JSON shape. If it does, the requested function runs locally and its result is fed back as the next user turn; if it does not, the reply is the final answer.

The turn count is capped, since nothing stops a model from asking for the same tool indefinitely; a production loop would also log or retry a turn where the reply matches neither a final answer nor valid tool-call JSON.

agent_loop.pyPYTHON
import json

messages = [
    {"role": "system", "content": SYSTEM_PROMPT},
    {"role": "user", "content": "Is node gpu-03 busy right now?"},
]

for _ in range(6):  # a hard cap, in case the model keeps asking for tools
    response = client.chat.completions.create(
        model="Qwen/Qwen3-14B",
        messages=messages,
    )
    reply = response.choices[0].message.content
    messages.append({"role": "assistant", "content": reply})
    idx = reply.find('{"tool"')
    try:
        call, _ = json.JSONDecoder().raw_decode(reply, idx) if idx >= 0 else (None, 0)
    except ValueError:
        call = None
    if call is None:
        print(reply)
        break
    result = get_gpu_utilisation(call["arguments"]["node"])  # your own function
    messages.append({"role": "user", "content": "Tool result: " + json.dumps(result)})

The JSON the model is asked to reply with is deliberately small: a tool name and its arguments, nothing else. There is no call id to track, because this loop only ever asks for one tool at a time and waits for its result before continuing.

Extracting it with json.JSONDecoder().raw_decode() rather than a plain string search means any text the model adds after the JSON, or the nested braces inside arguments itself, cannot break the parse.

Qwen3’s thinking mode, mentioned above, can wrap a reasoning block around that JSON even when asked for nothing else; disabling thinking mode for tool-routing turns, or stripping a leading <think> block before searching, keeps the extraction reliable.

One tool callJSON
{"tool": "get_gpu_utilisation", "arguments": {"node": "gpu-03"}}

Frameworks work too, with the same caveat. LangChain, LlamaIndex and Qwen-Agent all accept a custom base_url and api_key. Their prompted agent modes (LangChain’s ReAct, Qwen-Agent’s default) work exactly like the loop above; a mode built around the OpenAI tools parameter needs the same server-side flags.

A retrieval tool is defined the same way as any other: the function takes a query, searches your own documents, and returns the matching passages as its result. AI Studio’s own Knowledge Bases already do the retrieval half of that inside the platform, so a dedicated endpoint and a knowledge base can sit either side of the same tool-calling loop, one holding the model and the other holding what it is allowed to look up.

Sizing and Cost in Practice

A dedicated endpoint bills per minute at the hourly rate of the flavour it runs on, for as long as the machine is running, regardless of how many requests it serves. The Deploy AI wizard provisions on demand only; Reserved and Spot are not options inside the wizard itself.

Rates follow the standard virtual machine rates in the Pricebook, the same rates that apply to any Hyperstack virtual machine.

What an always-on endpoint costs, on demand

Published on-demand hourly rates multiplied by 730 hours, the same monthly convention the wizard’s own “always-on” estimate uses.

Chart: estimated monthly cost if run continuously on demand, $365 for the NVIDIA RTX A6000 and $730 for the NVIDIA L40.

Hourly rates from the Hyperstack GPU pricing page.

GPU VRAM Memory bandwidth On demand
NVIDIA RTX A6000 48 GB GDDR6 768 GB/s $0.50/hr
NVIDIA L40 48 GB GDDR6 864 GB/s $1.00/hr

Both cards carry the same 48 GB of VRAM, so the choice between them for a model this size is about throughput rather than fit.

The NVIDIA L40’s higher memory bandwidth and newer Ada Lovelace core suit a busier endpoint, while the NVIDIA RTX A6000 on the Cost profile is the cheaper way to hold a model of this size on a private endpoint.

The sizing profile is the lever that matters most. Cost picks the cheapest fit, Fast the quickest GPU class, Experiment the fewest GPUs at a shorter context, all before any pricing decision is made.

From Deploy to Delete

A dedicated endpoint has exactly one line of travel: deploy it, watch it come up, leave it live and answering requests, and delete it when the work is done. Nothing about that path repeats on its own; once an endpoint is deleted, that deployment is gone for good, and starting again means running the wizard from the beginning.

The whole lifecycle, start to finish

Every stage above, in the order it happens.

1
Deploy
Pick a model, set up hosting, review.
 
2
Provision
GPUs reserved, machine live.
 
3
Live
vLLM answers requests.
 
4
Delete
Machine and endpoint released.
 

Delete is the one irreversible step: it releases the machine, its public IP address and the endpoint record together.

Why Deploy Dedicated Inference on Hyperstack?

Hyperstack is a cloud platform built for AI and machine learning workloads. Here is what a private model endpoint needs from a provider, and how AI Studio delivers it:

A No-Code Path from Model to Endpoint
The Deploy AI wizard sizes the GPU, checks stock and installs vLLM in one pass, so a private endpoint needs no manual server work.
A Full Catalogue of NVIDIA GPUs
From the NVIDIA RTX A6000 used here up to NVIDIA H100 and NVIDIA H200 for larger models, all sized by the same wizard.
Firewall Rules Scoped to Your Endpoint
Firewall rules open only SSH, HTTP and HTTPS on the machine the wizard creates, and can be tightened further after deployment.
On Demand, Billed by the Minute
The Deploy AI wizard provisions the endpoint on demand, metered by the minute for as long as it runs, so a short experiment is charged as a short experiment.
Serving Metrics With Nothing to Install
Enhanced Monitoring runs on every inference machine by default, from the moment the endpoint is live, with nothing to install.
One Platform for the Rest of the Gen AI Lifecycle
The Playground sits alongside dedicated inference in AI Studio, so testing a model and putting it behind your own endpoint stay in the same place.

Your own model, your own endpoint

Deploy Dedicated Inference on Hyperstack

Pick a model, choose Hyperstack dedicated, and the wizard sizes the GPU, installs vLLM and issues a private, API key-protected endpoint in one pass.

Private, API key-protectedOpenAI-compatibleBilled per minuteNVIDIA GPUs

Launch a dedicated NVIDIA GPU endpoint on Hyperstack today.

FAQs

What is Hyperstack Dedicated Inference?

One open-weight model on GPUs reserved for you, behind a private, API key-protected endpoint, billed by the GPU hour rather than per token.

How is a dedicated endpoint priced?

At an hourly rate, provisioned on demand and billed per minute regardless of traffic. A single NVIDIA RTX A6000 is $0.50/hour.

What happens to the endpoint if I delete its virtual machine?

The endpoint goes with it: the machine, its IP address and the endpoint record are released together, and the API key stops working immediately.

Can I pick a different GPU than the one the wizard recommends?

Yes. Change the configuration lists every option at your chosen context and concurrency, cheapest first, in-stock only.

Does a dedicated endpoint support streaming, tool calling and agent frameworks?

Yes to all three. Streaming just needs stream=True. Tool calling works through the prompt, not the OpenAI tools parameter, since vLLM does not enable that by default. LangChain, LlamaIndex and Qwen-Agent all accept a custom base_url and api_key.

Fareed Khan

Fareed Khan

calendar 1 Oct 2026

•

Read More
tutorials Tutorials link

Jev: Inside TypeSafe AI's First System One Decision Model

Jev is not a language model in the usual sense. TypeSafe AI ...

Jev is not a language model in the usual sense. TypeSafe AI released the Jev AI model on 15 September 2026 as the first of what it calls a System One model: an engine that takes a state and one or more questions and returns typed answers with probabilities, never a sentence. The company reports 70 to 500 millisecond end-to-end latency, together with headline claims of up to 200 times faster and 400 times cheaper than comparable large language model workflows on the same class of decision.

This piece looks past the announcement. It explains the mechanism that lets Jev skip the sentence entirely, reproduces that mechanism against an open model running on a single Hyperstack NVIDIA GPU, and checks TypeSafe’s own numbers against an independent benchmark that LangChain published within days of launch.

This piece draws on four sources throughout: TypeSafe’s own announcement and documentation, the SGLang documentation behind the scoring mechanism reproduced further down, and LangChain’s own evaluation of Jev against three large language model judges, published as Jev-as-a-Judge for Agent Evals. Figures that come from TypeSafe’s own comparisons are marked as such wherever they appear, separate from the independent measurements.

The Decision Your Code Keeps Paying Full Price For

Most of what software asks a language model to do is not writing. It is a judgement with a small number of possible answers: is this support ticket urgent, which team should own it, is a shell command safe to run, does a retrieved passage answer the question that was asked. None of that needs a paragraph. It needs one of a handful of known labels.

The usual approach reaches for the same tool regardless of the question: a full generative call, a sentence or a JSON object to wait for, and code that parses that answer back into the label it wanted in the first place. Inside an agent loop, that pattern repeats on almost every iteration.

A naive agent loopPYTHON
while not task_done:
    action = llm(context)          # full generation, just to pick a tool
    result = run_tool(action)
    context += result
    task_done = llm(context)       # full generation again, just to check "done or not"

Every pass through that loop calls a generative model twice for a judgement with only a handful of possible answers: which tool to call next, and whether the task is finished. Both are single-token decisions, priced and timed as though they were prose.

Two decisions, paid for like paragraphs

A naive agent loop calls a full generative model for a tool choice and a done check, even though both answers are a single label.

Contextstate so farLLM: pick a toolfull generationRun the toolresult appendedLLM: done yet?full generationrepeats until the LLM finally writes "done"a yes/no answer costs a fullcompletionso does a tool label

The pattern repeats on almost every iteration of the loop, so the cost compounds with every step an agent takes.

The gap between the two ways of answering comes down to how many times the model has to run. Writing an answer means running the model once per output token, because each token depends on the one written immediately before it. A bounded decision needs exactly one pass, because the set of possible answers is already known before the model is ever called.

Cost of Writing T Tokens
cost(T) = T × one forward pass
Decoding is sequential. Token 2 cannot be produced until token 1 has been appended to the sequence, so a T-token answer is T dependent passes through the model, never fewer.

Two ways to answer the same question

One writes a sentence token by token. The other returns three probabilities from a single pass.

Generatewrites an answerDecidescores the answer"Based on the line items and vendor history, thisinvoice appears to be legitimate."one token at a timeT sequential passes through the modelclean0.88fraud0.07review0.05one forward pass, no text writtenvs

The invoice example is illustrative. The mechanism behind the right-hand path is reproduced below against a real model on a Hyperstack NVIDIA GPU.

Jev’s premise, as TypeSafe AI frames it, is that language generation is the wrong interface once code already knows the set of possible answers. If every outcome can be enumerated ahead of time, the system needs a model that scores those outcomes, not one that writes about them.

What Jev Is

TypeSafe’s own documentation defines System One models as a class of AI models built to make fast, structured decisions that software can use directly. A System One model evaluates a state and returns typed answers and probabilities, and it does not write replies, produce code, or explain its own reasoning.

A request to Jev carries two things: a state, which is the text or JSON describing the situation, and one or more questions about that state. Every question declares its answer shape in advance, using one of three primitives.

Choice, Score and Noul

Choice picks one option with a probability for every option. Score places the input on a scale. Noul returns the probability that a yes or no question is true.

Choicepick one option, all probabilitiesScorea place on an ordered scaleNoulthe probability it is truebilling0.91technical0.07account0.02winner: billingconfidence 0.84missedpartialresolved1.74confidence 0.81satisfied?0.94probability true

Definitions and the response shapes are from the TypeSafe documentation.

Choice selects one option from a list defined by the caller and returns a probability for every option, not only the winner. Score places the input on an ordered scale defined by the caller and returns a probability-weighted position on that scale rather than a single label. Noul, TypeSafe’s own name for the yes-or-no primitive, returns the probability that a stated question is true. Every answer comes back as a number between 0 and 1 that application code can act on directly, with no option outside the ones the caller declared.

A Score answer such as 1.74 on a zero-to-two scale is not a rounding artefact. It is the probability-weighted average across every rung on the scale, so a result close to 2.0 signals near certainty on the top label, while 1.74 signals a strong lean towards the top label with real weight left on the one below it, information a single winning label would discard.

The Score Primitive
score = Σk pk · valuek
The probability of each rung on the scale, multiplied by that rung’s value, summed across every rung. A weighted average, not a single pick.

A single request can carry several questions about the same state, and every one of them is answered from the same evaluation, not a separate call for each.

Jev requestJSON
{
  "model": "jev-latest",
  "state": "I was charged twice for the same subscription.",
  "questions": {
    "urgent": {
      "type": "noul",
      "instructions": "Does this need attention right now?"
    },
    "team": {
      "type": "choice",
      "instructions": "Which team should own this ticket?",
      "criteria": {
        "billing": "Charges, invoices, refunds",
        "technical": "Product bugs and errors",
        "account": "Login and access problems"
      }
    }
  }
}
Jev responseJSON
{
  "urgent": {"probability": 0.61},
  "team": {
    "choice": "billing",
    "probabilities": {"billing": 0.91, "technical": 0.06, "account": 0.03}
  }
}

One state, two questions, one pass

The support ticket enters Jev once. Urgency and team ownership are both answered from that same forward pass, and code branches directly off the two probabilities.

"I was charged twice forthe same subscription."stateJevone pass, both questionsurgent0.61teambilling0.91tech0.06acct0.03if urgent and team == "billing": route(ticket)the model never runs the branch

The routing code shown is illustrative. Real thresholds should come from evaluation on labelled examples, never a guess.

Application code reads that response directly. There is no prose to parse and no answer outside the declared options, because team can only ever be one of the three names supplied in the request.

How This Differs From Structured Output

It is easy to confuse Jev’s mechanism with structured output, because both restrict what an application receives. The two do different work inside the serving engine.

A structured-output call constrains a model’s generation to a schema, so a request for a ticket’s team might return {"team": "billing"}. The schema prevents an invalid object, but it does not guarantee a correct one. The model still writes that object one token at a time: the opening brace, the field name, the value and the closing brace, decoded exactly as a sentence would be. A schema narrows the shape of the output. It does not remove the decode loop underneath it.

Jev’s fixed-answer scoring exits before that loop starts. Given the same three allowed teams, it reads one score per team from a single forward pass and normalises them into a distribution, with no token of output ever generated.

Two contracts for the same restriction

Structured output stays autoregressive underneath its schema. Fixed-answer scoring reads its answer before the decode loop begins.

Structured outputprompt + schema{"team": "..."}decode loopone token at a time,shape held by the schemaschema-valid objectstill fully generatedFixed-answer scoringprompt + labelsA / B / Cone forward passread three logits,restricted softmaxno decode loopthree probabilitiesno text ever written

Both approaches limit what an application can receive. Only one of them limits how many passes the model has to make.

The same five checkpoints, opposite answers

A generative model and Jev diverge from the first row and never converge again.

Checkpoint A generative model Jev
Output Free-form text, decoded token by token A typed answer plus a full probability distribution
Sampling Temperature, top-p and top-k shape an open-ended distribution A softmax restricted to the declared answers, nothing else
Best fit Writing, planning, explaining, calling tools Routing, gating, ranking, classification
Control Thresholds live inside a prompt, hard to review or test Thresholds live in application code, reviewable and versioned
Failure mode Malformed or off-schema prose A confident, schema-valid, wrong answer

The failure mode row matters most: a schema blocks an answer outside its list, but it never guarantees that the answer inside the list is correct.

Where That Probability Comes From

Seeing why Jev can skip the decode loop starts with what a normal generation step does. A tokenizer converts a prompt into token IDs. The model processes that sequence and produces one vector for the next position, holding a raw score, a logit, for every token in the vocabulary, tens of thousands of numbers for a typical open model.

Turning a logit into a probability means running softmax across every other logit in that whole vocabulary.

Softmax Over the Whole Vocabulary
P(tokeni) = exp(logiti) ÷ Σj ∈ V exp(logitj)
V is the entire vocabulary, tens of thousands of terms in the denominator for a single next-token score.

Ordinary generation does not even run that plain version. It divides every logit by a temperature first, sharpening the distribution below 1 or flattening it above 1, before a token is sampled.

Temperature-Scaled Softmax
P(tokeni) = exp(logiti ÷ τ) ÷ Σj ∈ V exp(logitj ÷ τ)
That knob exists because open-ended generation has to decide how much randomness belongs in the answer. A bounded decision never asks that question, so it reports the ratio the raw logits already imply.

That whole cycle, a forward pass, decoding rules, one appended token, repeats until a stop token or a length limit ends it.

The autoregressive decode loop

A forward pass produces one vocabulary-sized vector, decoding rules choose one token, that token is appended, and the cycle repeats until a stop condition ends it.

repeats untila stop tokenPrompt so fargrows each passForward passone vector,every positionDecode rulestemperature,top-p, top-kAppend onetokento the sequence

Every one of these passes depends on the token the previous pass just wrote, which is why they run one at a time rather than together.

Reading Three Logits Instead of Tens of Thousands

A bounded decision only needs the very first vector, and only a handful of its entries. Labelling three answers A, B and C inside the prompt, and ending that prompt exactly where the model would normally start writing the label, puts the logits for all three at a single, known position. The model still produces its usual vocabulary-sized vector for that position. It holds the logit for A, the logits for B and C, and every other token in the vocabulary besides.

Every logit outside the three declared labels is discarded, and softmax runs only across the three that remain.

Restricted Softmax
P(labeli) = exp(logiti) ÷ Σj ∈ {A,B,C} exp(logitj)
Only the denominator changes: a sum over three declared answers in place of a sum over the whole vocabulary.

From tens of thousands of logits to three probabilities

Every logit except the three declared labels is discarded before softmax ever runs.

Vocabulary logits, one score per token0: -2.1...A: 6.8...B: 4.3...C: 3.1...151,643: 0.7A 6.8B 4.3C 3.1restrictedsoftmaxbilling0.90tech0.07acct0.02

With logits of 6.8, 4.3 and 3.1 for A, B and C, the restricted softmax gives roughly 0.90, 0.07 and 0.02. That is not a claim that billing has 90 per cent probability across the entire vocabulary. It is how the model splits its preference among exactly the three answers the application allowed, after every other token has been ruled out.

Why the Labels Are Single Letters, Not Whole Words

A visible word is not necessarily one token. billing might be one token for one tokenizer and several for another, and technical support spans more than one position under any tokenizer. Comparing multi-token phrases would need sequence scoring: score the first token, append it, score the next, and combine the values for the whole phrase, with length becoming part of the comparison. A single-letter label avoids that problem entirely, because every option sits at exactly one output position while the meaning behind it still lives in the prompt next to the letter.

A second trap sits underneath the first. Tokenizers often fold a leading space into a token, so A and  A can resolve to two different token IDs, and a chat template can insert that whitespace without it being obvious from the prompt text alone. The way around this is to render the full prompt through the model’s own chat template, check the exact continuation it expects at the answer position, and confirm through a tokenizer call that each label resolves to exactly one token before trusting a scoring request against it.

Two reasons the labels are single verified letters

A visible word can span more than one token, and a leading space can silently point at a different token from the one intended.

A word is not always one token"billing"1 token here, maybe 2 elsewhere"technical support"always more than one tokena single letter sits at exactly one positionA leading space changes the token"A"" A"leading spacetoken 32 vs token 362, two different IDs

Both failure modes are silent: nothing raises an error, the scoring call reads the wrong position without complaint.

📘

The declared answers still need an escape route. Restricted softmax always assigns every unit of probability mass to one of the declared labels, even when none of them fit. A security incident landing on a router that only knows billing, technical and account still gets confidently filed as one of those three. Adding an OTHER or ESCALATE option whenever the declared list might not be exhaustive is cheap insurance against exactly that failure.

Reproducing the Mechanism on a Hyperstack NVIDIA GPU

Jev itself is closed. Its weights, its Reinforcement Learning for Calibrated Decisions training run and its evaluation stack are not published. The restricted-softmax mechanism behind it, however, already sits inside open serving engines, which means the trick can be built and measured against a model under full control rather than taken on trust. The steps below reproduce that mechanism using SGLang, run here on a single Hyperstack NVIDIA H100 virtual machine rather than a laptop.

SGLang is the same serving engine behind the Kimi K3, the Qwen3.8 Max and the MiniMax H3 tutorials, so a virtual machine already configured for one of those deployments needs no extra setup for this exercise. A single NVIDIA H100 is more GPU than a 0.5 billion parameter model needs, which is the point: the model here is small on purpose, chosen so the mechanism, not the hardware, is what gets measured.

decide.py, SGLang and the model, on one GPU

The client tokenizes nothing itself. SGLang tokenizes the labels, runs the model once, and returns the three probabilities.

decide.pybuild the promptmap A / B / Cprint the decisionSGLang, on one Hyperstack NVIDIA GPU VM/tokenizeA, B, C → IDsmodel in GPUmemory, one pass/v1/scorelabel logits backthree probabilities, zero generated tokensanswer: the same three probabilities, back to decide.py

Every request below runs against a single Hyperstack NVIDIA GPU virtual machine. No cluster, no multi-node networking, and no tensor parallelism are needed for a model this size.

Starting the Model Server

A clean environment needs two packages: SGLang itself, and requests for the client that follows.

Environment setupSHELL
python3 -m venv .venv
source .venv/bin/activate
pip install "sglang[all]==0.5.10.post1" "requests==2.34.2"

The server is the only process doing GPU work. Everything after this is a client script talking to it over HTTP.

Launch SGLangSHELL
python -m sglang.launch_server \
    --model-path Qwen/Qwen2.5-0.5B-Instruct \
    --host 127.0.0.1 \
    --port 30000

The first launch downloads Qwen2.5-0.5B-Instruct from Hugging Face. Later launches reuse the local cache, and the model stays resident in GPU memory on port 30000 for every request that follows.

Defining the Choices and Building the Prompt

The client, decide.py, starts with the labels and the ticket being routed. The dictionary keeps both representations of every answer together, the letter that gets scored and the meaning returned to the application, so their order cannot drift apart between tokenizing, scoring and mapping the result back.

decide.pyPYTHON
# decide.py
import json
import requests

BASE_URL = "http://127.0.0.1:30000"
MODEL = "Qwen/Qwen2.5-0.5B-Instruct"

# A is the token that actually gets scored. "billing and payments" is what
# the application does with the answer once it comes back.
choices = {
    "A": "billing and payments",
    "B": "technical support",
    "C": "account access",
}
ticket = "I was charged twice for the same subscription."
decide.py, continuedPYTHON
# decide.py (continued)
choice_lines = "\n".join(
    f"{label} = {meaning}" for label, meaning in choices.items()
)
prompt = f"""Ticket:
{ticket}
Question:
Which category matches the ticket?
Allowed labels:
{choice_lines}
Return only the label.
Label:
"""
print(prompt)
Printed promptOUTPUT
Ticket:
I was charged twice for the same subscription.
Question:
Which category matches the ticket?
Allowed labels:
A = billing and payments
B = technical support
C = account access
Return only the label.
Label:

The prompt ends at Label:, the exact position whose vocabulary vector gets read. SGLang is never asked to generate the token that would normally follow it.

Resolving the Label Token IDs

Before anything can be scored, the real token ID behind each of A, B and C has to be confirmed against this specific tokenizer, not assumed from any other model.

decide.py, continuedPYTHON
# decide.py (continued)
label_token_ids = []

for label in choices:
    response = requests.post(
        f"{BASE_URL}/tokenize",
        json={"model": MODEL, "prompt": label, "add_special_tokens": False},
        timeout=30,
    )
    response.raise_for_status()
    token_ids = response.json()["tokens"]
    if len(token_ids) != 1:
        raise ValueError(f"{label!r} is not a single token: {token_ids}")
    print(f"{label!r} -> {token_ids}")
    label_token_ids.append(token_ids[0])
Resolved token IDsOUTPUT
'A' -> [32]
'B' -> [33]
'C' -> [34]

Each label returns a single integer, so every option occupies exactly one vocabulary position. Had any label produced two or more IDs, the raise ValueError above would have stopped the script there rather than let a silent mismatch reach the scoring call.

Scoring the Three Positions

With the token IDs confirmed, the decision itself is a single HTTP call to SGLang's /v1/score endpoint, documented as computing token probabilities for specified tokens given a query, intended for classification tasks, scoring responses and log-probability computation.

decide.py, continuedPYTHON
# decide.py (continued)
response = requests.post(
    f"{BASE_URL}/v1/score",
    json={
        "model": MODEL,
        "query": prompt,
        "items": [""],
        "label_token_ids": label_token_ids,
        "apply_softmax": True,
    },
    timeout=120,
)
response.raise_for_status()
score_response = response.json()
print(json.dumps(score_response, indent=2))
scores = score_response["scores"][0]
Score responseJSON
{
  "scores": [
    [
      0.6777623295783997,
      0.31087860465049744,
      0.011359035037457943
    ]
  ]
}

query carries the full prompt. The empty string inside items tells SGLang to score the position immediately after it. label_token_ids names the three positions to read, and apply_softmax normalises those three readings into a proper probability distribution. SGLang tokenized the prompt, ran the model once, and returned three numbers in the same order the token IDs were sent, with no token generated to produce them.

The Real Numbers From This Run
logits 25.2776, 24.4982, 21.1888 → P = 0.678, 0.311, 0.011
The raw logits behind this call, before apply_softmax normalised them, plugged into the restricted softmax from the mechanism above by hand, land on the same 0.678 SGLang printed.

Mapping the Scores Back to a Decision

The last step is ordinary code, turning three floats back into the labels the application understands.

decide.py, continuedPYTHON
# decide.py (continued)
probabilities = {
    choices[label]: float(score)
    for label, score in zip(choices, scores, strict=True)
}
decision = max(probabilities, key=probabilities.get)
print(json.dumps({"decision": decision, "probabilities": probabilities}, indent=2))
Final decisionJSON
{
  "decision": "billing and payments",
  "probabilities": {
    "billing and payments": 0.6777623295783997,
    "technical support": 0.31087860465049744,
    "account access": 0.011359035037457943
  }
}

Billing wins, but only at 0.678, well short of the 0.9-plus a reader might expect. A threshold of 0.70 would catch exactly this case and send it for a second look rather than route it without review, which is the kind of decision that belongs in application code rather than inside the model.

Measuring the Difference Against Standard Generation

The mechanism explains why scoring should be faster. Measuring it is more convincing than assuming it. The scoring path above was run against a standard chat-completion call on the same SGLang server, the same model, and the same 100 support-ticket cases, both starting at the same instant. Standard generation decoded up to 32 tokens per answer, an explanation alongside the label.

Measured on the same NVIDIA GPU, the same server, the same requests

Average time per decision across 100 identical cases.

Chart: Jev-style scoring averaged 463 milliseconds per decision against 848 milliseconds for standard generation on the same SGLang server, the same model and the same 100 cases.

A measured 1.83 times gap, independent of any vendor comparison, on identical hardware and identical requests.

SCORING
463 ms
average time per decision, one forward pass
GENERATION
848 ms
average time per decision, up to 32 decoded tokens
MEASURED GAP
1.83x
on the same NVIDIA GPU, same server, same requests

That gap is also a cost figure. Every millisecond a request holds a GPU is a millisecond another request cannot use it, so the same measurement that explains Jev’s latency claim also explains why a workload built on this pattern needs less GPU time per decision than one built on ordinary chat completions, whether the model behind it is Jev or an open one served from a Hyperstack GPU billed by the minute.

Why the Number Next to the Answer Matters

A typed answer solves half the problem. The label tells application code what won. The probability tells it how close the race was, and that second number is what the code should branch on.

A close callJSON
{
  "choice": "billing",
  "probabilities": {"billing": 0.52, "technical": 0.46, "account": 0.02},
  "confidence": 0.06
}

Routing that ticket without a second look would be reckless. Billing won, but barely, and a low-confidence win should never take the same branch as a decisive one. One workable definition of confidence is the margin between the top answer and its closest rival, rather than the winning probability taken alone.

Confidence as a Margin
confidence = p(1) − p(2)
Billing at 0.52 against technical at 0.46 gives a margin of 0.06, close to a coin flip. A 0.52 winner and a 0.91 winner should never take the same branch, even though both technically won.

The same headline hides two different shapes

A confident 0.91 win and a barely-ahead 0.52 win route to different branches: automate, escalate to a larger model, or send to a person.

Confident0.910.060.03Uncertain0.520.460.02Automateconfidence > 0.9Escalateclose scores, 0.3 to 0.9Human reviewconfidence < 0.3

The thresholds live in code, where they can be reviewed, tested and changed. A dashboard label might tolerate a shaky prediction. A command that deletes data should demand a far higher bar.

Routing on confidencePYTHON
if probabilities["billing"] > 0.9:
    route_automatically(ticket, team="billing")
elif confidence < 0.3:
    send_to_human_review(ticket)
else:
    escalate_to_larger_model(ticket)

TypeSafe trains Jev with what it calls Reinforcement Learning for Calibrated Decisions, RLCD for short. The target is calibration, not only accuracy: a batch of answers each carrying 90 per cent confidence should turn out correct on roughly 90 per cent of those cases. Measuring that means binning every prediction by its stated confidence and comparing each bin’s average confidence against how often that bin was right.

Expected Calibration Error
ECE = Σbins (nbin ÷ N) × |accuracy(bin) − confidence(bin)|
A model can be accurate on average while still being miscalibrated, confidently wrong in exactly the band a reader would otherwise trust most. Confidence that does not track correctness is decoration, not a signal code can threshold on, and checking it needs a labelled evaluation set.

The Hallucination Claim, Examined Closely

TypeSafe says Jev cannot hallucinate. That statement holds under a narrow definition, and it is worth separating from a broader one that it does not support.

Declaring billing, technical and account as the only valid answers means the response can never come back as legal, an option that does not exist in the schema. It also cannot return malformed prose where code expected a label. That part of the hallucination problem does not apply to it.

It can still confidently choose the wrong valid option. A login bug scored as billing instead of technical is schema-valid and still wrong, and now the wrong customer gets refunded over an issue that was never about a charge. A schema rules out an answer that does not exist. It says nothing about whether the answer that does exist is the right one.

Two different guarantees

A schema blocks an answer outside its declared list. It has no mechanism for catching a wrong answer that sits inside that list.

Outside the schema: blockedbillingtechnicalaccount"legal" -> probability 0Inside the schema: still wrongbillingtechnicalaccounta login bug, scored "billing"

A more precise sentence than "Jev cannot hallucinate" is that it cannot break its declared output schema, but it can still be wrong.

Schema Membership Against Correctness
P(answer ∈ schema) = 1,    P(answer correct) ≤ 1
Membership in the declared schema is guaranteed with certainty. Correctness never comes with the same guarantee, and the two should not be spoken about as though they were one property.

Where Jev Earns Its Place Inside an Agent

As a System One model, Jev works best alongside a generative model, not instead of one. The generative model plans, writes, explains and calls tools, the work that needs language. Jev handles the frequent small decisions that surround that work.

Three checkpoints inside an ordinary agent loop

Jev sits beside the loop at three points: choosing which model should answer, gating a risky tool call, and verifying the result before the loop continues.

PlanChoose a modelCall a toolObserve resultthe ordinary agent looproutingJev picks the modelrisk gateJev classifies the commandverifyJev checks the result

None of these checkpoints replace the generative model. Each one decides something about the work around it.

Model Routing

A simple lookup does not need the same model as a demanding architecture review. Jev can score the incoming request and select the least expensive model likely to complete it. The router decides which model should answer, not the answer itself.

Tool Risk Gating

Before an agent runs a shell command, Jev can classify it as read-only, reversible or destructive, alongside separate questions about whether it touches production or leaves an approved directory. A high-confidence read-only command can continue unattended. A destructive or uncertain one pauses for a person.

One command, one Choice call, three consequences

The risk class Jev returns decides whether the agent continues, continues with a logged call, or pauses for review.

rm -rf /data/tmpproposed shell commandJev: Choiceread-only /reversible / destructiveRead-onlykeeps runningReversibleruns, logs the callDestructivepauses for a human

LangChain's own Jev integration applies this exact pattern through middleware that checks a tool call before it executes.

Tool risk requestJSON
{
  "model": "jev-latest",
  "state": "rm -rf /data/tmp",
  "questions": {
    "risk": {
      "type": "choice",
      "instructions": "Classify this shell command.",
      "criteria": {
        "read_only": "Inspects state, changes nothing",
        "reversible": "Changes state, but the change can be undone",
        "destructive": "Deletes data or is otherwise hard to undo"
      }
    }
  }
}

Verification

An agent can report that a task is finished while its tests are still failing. Jev can inspect the state and answer bounded questions: did the tests pass, is the agent repeating the same failed action, does the output follow policy. A hard test still catches what it was built to catch. Jev adds a semantic check for what that hard rule was never designed to see.

Problems Jev Can Solve Today

Jev sits within a broader set of AI models for automation, but it fits a specific niche inside that set. The workloads where it earns its keep share three properties: every possible answer can be named ahead of time, a careful person could judge the input quickly by hand, and the decision happens often enough that latency or cost start to matter.

Five places the same typed-decision pattern keeps paying off

Support and operations, search and retrieval, quality and safety, high-volume classification, and real-time interfaces.

Category Where it helps
Support and operations Classifying intent, urgency, department and frustration in one pass. Routing refunds through several small checks rather than one large prompt. Ranking incidents by severity before a person reads them.
Search and retrieval Reranking passages by whether they answer the query, not only by semantic closeness. Checking whether a citation supports a claim. Filtering irrelevant chunks before they reach an expensive model.
Quality and safety Screening prompts for jailbreak attempts or injection. Checking generated content against a written policy. Flagging a risky code change or tool call before it runs, beside deterministic checks rather than in place of them.
High-volume classification Labelling documents or customer messages at a scale that was previously too costly to afford. Turning free text into features for a traditional machine-learning model. Scoring every row of a corpus against the same rubric.
Real-time interfaces Choosing the next browser action from a known set of page elements. Scoring tone while someone is still typing. Jev is text-only today, so any of this needs the environment turned into text first.

A plain if statement still beats any model when deterministic code already solves the problem correctly. It is faster, cheaper and easier to test than a call of any kind.

Does This Hold Up? An Independent Benchmark

TypeSafe’s own numbers for the Jev AI model deserve a careful reading. A company benchmarking its own product tends to choose the comparison that flatters it, and TypeSafe AI reports 70 to 500 millisecond latency, $0.042 per million input tokens with output free, and headline claims of up to 200 times faster and 400 times cheaper than comparable large language model workflows. Those figures are a ceiling worth treating with care, not a promise for every workload, even where the underlying mechanism behind them is real and measured earlier in this piece.

A comparison run by a party with nothing to gain from Jev looking good is worth more. LangChain ran exactly that kind of test, comparing Jev against three large language model judges, GPT-5.6 Luna, GPT-5.6 Terra and Claude Sonnet 4.6, using its own Deep Agents harness and LangSmith for the dataset. A weather agent answered five fixed requests, each response was captured once, and every judge scored the same frozen traces across 100 repetitions, so differences in the results measure the judge rather than the agent.

Across 500 repeated pass or fail judgements against a human oracle, Jev matched the human on every single one. GPT-5.6 Terra matched on 99.8 per cent, GPT-5.6 Luna on 96.4 per cent, and Claude Sonnet 4.6 on 80.0 per cent.

Agreement with a human oracle, 500 repeated decisions

Jev matched the human reviewer on every repeated judgement. The three large language model judges did not.

Chart: pass or fail agreement with a human oracle across 500 repeated decisions. Jev 100.0 per cent, GPT-5.6 Terra 99.8 per cent, GPT-5.6 Luna 96.4 per cent, Claude Sonnet 4.6 80.0 per cent.

Source: LangChain, Jev-as-a-Judge for Agent Evals.

Accuracy alone tells half the story, since a judge can be right on average while swinging between different answers on the exact same input from one run to the next. Measuring variance across 100 repetitions on a single frozen case is where that gap opens further.

Variance Across Repeated Scores
Var(x) = E[(x − μ)2]
The mean squared distance of each repeated score from the average score on the same, unchanged case.

Quality-score variance on identical, frozen cases

Jev’s mean variance was 0.0000149. The three large language model judges were 92 to 913 times higher on the same cases.

Chart: quality-score variance relative to Jev, log scale. Jev 1x, GPT-5.6 Luna 433x, GPT-5.6 Terra 913x, Claude Sonnet 4.6 92x.

Lower variance does not by itself prove a judge is right. It can be consistently wrong. Once a judge is accurate, though, low variance is what turns that accuracy into something worth automating.

Cost and latency followed the same pattern. Jev averaged $0.00035 and 0.44 seconds per call. GPT-5.6 Luna averaged $0.00039 and 2.50 seconds, GPT-5.6 Terra $0.00289 and 2.83 seconds, and Claude Sonnet 4.6 $0.02811 and 2.16 seconds. The full project cost $0.34 for Jev against $28.17 for Claude Sonnet 4.6.

Cost per evaluator call

Log scale, because the range spans roughly 80 times between the cheapest and most expensive judge.

Chart: average cost per call, log scale. Jev $0.00035, GPT-5.6 Luna $0.00039, GPT-5.6 Terra $0.00289, Claude Sonnet 4.6 $0.02811.

Source: LangChain, Jev-as-a-Judge for Agent Evals.

Latency per evaluator call

Jev finished in under half a second on average. Every large language model judge took more than two seconds.

Chart: average latency per call. Jev 0.44 seconds, GPT-5.6 Luna 2.50 seconds, GPT-5.6 Terra 2.83 seconds, Claude Sonnet 4.6 2.16 seconds.

Source: LangChain, Jev-as-a-Judge for Agent Evals.

LangChain combined accuracy and consistency into a single signal value: oracle agreement multiplied by repeatability, the chance that two independent calls on the same frozen trace reach the same verdict.

Signal Value
signal = accuracy × repeatability
A judge that is right only sometimes, or repeatable only while wrong, scores close to zero under this definition. Only a judge that is both correct and consistent scores well.

Signal value and what it costs to run at scale

Signal value is accuracy multiplied by repeatability. The 30-day figure projects the measured per-call cost across 10,000 evaluated traces a day.

Judge Signal value 30-day cost, 10,000 traces a day
Jev 100.0% $103.59
GPT-5.6 Luna 90.1% $117.24
GPT-5.6 Terra 99.4% $866.61
Claude Sonnet 4.6 80.0% $8,434.08

Source: LangChain, Jev-as-a-Judge for Agent Evals.

30-day projected cost at 10,000 traces a day

Log scale. The gap between Jev and Claude Sonnet 4.6 is roughly 81 times at this volume.

Chart: projected 30-day cost at 10,000 evaluated traces per day, log scale. Jev $103.59, GPT-5.6 Luna $117.24, GPT-5.6 Terra $866.61, Claude Sonnet 4.6 $8,434.08.

A judge this cheap changes what teams can afford to evaluate, not only how much a single call costs.

One agent, five test cases and a narrow evaluation slice is not the final word on every workload. It is, however, an independent measurement rather than a vendor’s own comparison, and it points in the same direction the mechanism itself predicts.

Where Jev Falls Apart

Jev becomes less useful the moment the answer space stops being known ahead of time.

  • It cannot write a response, summarise a document, generate code, or explain its own reasoning.
  • It is unreliable at arithmetic, counting, date comparison or exact string manipulation. Those belong in ordinary code.
  • It struggles when a decision needs several hidden reasoning steps chained together. Splitting the judgement into smaller questions, or using a reasoning model, works better.
  • It cannot extract an unknown value directly out of text. Finding candidate values first with something else, then letting Jev choose among them, is the workable pattern.
  • Irrelevant context can reduce its accuracy, so only the state a decision needs should be sent.
  • Closed weights, an early access window, text-only input and still-thin independent calibration data outside the one benchmark cited above mean it is early to place full trust in a decision with real consequences.

Where each approach fits

Jev suits known, frequent decisions. A generative model suits open-ended work. A plain if-statement still beats either for a known answer that is rarely asked.

OPEN-ENDEDKNOWN ANSWERSFREQUENTasked constantlyRAREasked occasionallyA generative modelOpen-ended, frequent callsJev's sweet spotKnown answers, high volumeA person, or an LLMOpen-ended, rarely askedA plain if-statementKnown answers, rarely asked

A bounded, high-volume decision is Jev’s sweet spot. Open-ended work still belongs to a generative model, and a rare bounded decision belongs to ordinary code.

A simpler rule sits underneath all of this. If deterministic code already solves the problem correctly, the code should stay. A plain if statement is faster, cheaper and easier to test than any model.

A Sane Way to Roll This Out

A cheap model can still turn out expensive if its mistakes generate retries, manual review or an incident, so a rollout has to measure the whole workflow, not the token price on its own.

  1. Choose one bounded, low-risk decision. A small, clearly named set of possible answers, not the riskiest step in the pipeline.
  2. Write the rubric before calling the model. Decide in words what belongs in every option. The rubric is part of the system, not an afterthought added later.
  3. Collect representative examples first. Include the ambiguous and adversarial cases on purpose.
  4. Run it in shadow mode. Let it answer every real case without changing behaviour, and log its probabilities beside the current outcome.
  5. Plot accuracy against confidence and set thresholds from that data. The cut-off should come from the shadow-mode numbers, never a guess.
  6. Automate the safest branch first. Keep a person, or a stronger model, as the fallback for anything the thresholds flag as uncertain.
  7. Version everything. Pin the model version, the questions, the criteria and the thresholds together, so a change can be replayed against the same evaluation set.

Four stages of increasing trust

One evaluation set feeds all four stages, and human or stronger-model review stays available even at the last one.

1Shadow mode2Automate the safest branch3Escalate the rest4Version everythinghuman, or a stronger model, kept in the loop at every single stagelog probabilities beside thecurrent outcomethe highest-confidence cases onlya stronger model or a human foranything uncertainmodel, questions, criteria andthresholds pinned together

Shadow mode never changes behaviour on its own. Every stage after it automates a little more of the safest branch, never all of it at once.

Threshold Selection
θ* = argmaxθ accuracy(θ) subject to coverage(θ) ≥ cmin
The threshold that maximises accuracy while still automating at least the minimum volume the business needs, not the highest bar in the abstract.

Raising the bar too far means the system never makes a mistake because it never decides anything, which is not automation. It is expensive logging. The coverage constraint above keeps that from happening.

Why Build Decision Engines on Hyperstack?

Hyperstack is a cloud platform built for AI and machine learning workloads, from large-scale training down to AI models for developers prototyping on a single GPU, the way the walkthrough above did. A typed decision engine, whether it is Jev itself or the open pattern reproduced above, still sits beside a generative model that needs its own GPU. Here is what that pairing needs from a provider, and how it maps onto the platform:

One NVIDIA GPU Is Enough to Start
The mechanism above ran on a single NVIDIA H100. Prototyping a scoring pattern needs no cluster, only one machine to prove the branch is worth automating.
Per-Minute Billing for Fast Iteration
Spot virtual machines, billed by the minute, make shadow mode and threshold tuning cheap to repeat rather than a reason to skip it.
The Same SGLang Image, Already Proven
The Kimi K3 and Qwen3.8 Max deployments already run SGLang on Hyperstack, so a scoring endpoint and a serving endpoint can share one known-good image.
A Larger NVIDIA GPU When the Generative Side Grows
The decision engine stays small. The model it routes towards often does not. NVIDIA H200 SXM is one step away on the same platform when that model needs more memory.
Firewalled Environments for a Scoring Endpoint
Firewall rules attach per machine inside an environment, so an internal decision endpoint stays reachable only from the services meant to call it.
Transparent Rates While Thresholds Are Being Tuned
The Hyperstack GPU pricing page lists every rate per GPU per hour up front, so the cost of a shadow-mode week is known before it is booked.

Build the scoring pattern on your own NVIDIA GPU

Try a Jev-Style Decision Engine on Hyperstack

One NVIDIA H100, SGLang, and an open model are enough to measure the pattern behind Jev for yourself, on the same platform already serving Kimi K3, Qwen3.8 Max and MiniMax H3.

One NVIDIA H100 GPUSGLang /v1/score463 ms measuredBilled by the minute

Launch an NVIDIA GPU virtual machine on Hyperstack today.

FAQs

What is Jev?

The Jev AI model is TypeSafe AI’s first System One model, released 15 September 2026. As a probabilistic AI model, it takes a state and one or more typed questions and returns typed answers with probabilities in a single forward pass, rather than generating text, and cannot write prose, code or explanations.

Can Jev’s scoring mechanism be reproduced without TypeSafe’s API?

Yes. SGLang’s /v1/score endpoint exposes the same restricted-softmax mechanism used by Jev against any open model, so a Choice or Noul-style answer can be computed from one forward pass on a Hyperstack NVIDIA GPU, with no access to Jev’s own weights required.

How is Jev different from structured output?

Structured output constrains a class of AI models for structured outputs to a schema, but generation still happens token by token underneath it. Jev’s fixed-answer scoring reads three or more logits from a single forward pass instead, and never enters the decode loop, so no token is ever generated.

How much GPU do you need to reproduce this pattern?

A single NVIDIA GPU is enough for a small model such as Qwen2.5-0.5B-Instruct, the model used in the walkthrough above. Production workloads with larger models still need only one forward pass per decision, so the sizing question is model size, not decision volume.

Does Jev replace LLM-as-judge evaluation?

Not entirely. Jev belongs to a small set of LLM alternatives for automation built specifically for bounded decisions, and LangChain’s benchmark found it more accurate and consistent than three LLM judges on a narrow agent-evaluation task, at a fraction of the cost. Open-ended judgements that need written reasoning still belong to a generative model, not a typed decision engine.

Fareed Khan

Fareed Khan

calendar 22 Sep 2026

•

Read More