Inkling-2-Mini Recipe
A recipe is a YAML file of verified launch settings for a specific model, GPU, and precision. Use it with the matching version of the Model-Free NIM.
Inkling-2-Mini Recipes
Description
Ready-to-apply launch configurations ("recipes") for serving thinkingmachines/Inkling-2-Mini with the SGLang Model-Free NIM (Experimental) container. Each recipe is a YAML file for one GPU type and topology. Pass it to the container with NIM_CONFIG_FILE, and the container starts with the exact settings of the file.
A recipe is required for this model. The engine accepts one parallel layout per node for it (expert parallelism equal to tensor parallelism, no data or pipeline parallelism), and the recipe fixes that layout. Starting the container without NIM_CONFIG_FILE is not a supported path for this model.
Recipe file names follow {model}-{precision}-{gpu}-{N}gpu-tp{N}-ep{N}[-dspark].yaml; the GPU count in the name is the number of GPUs the recipe is written for. Each GPU type except DGX Spark has two files: a balanced one (plain decoding) and a -dspark one (DSpark speculative decoding). DGX Spark has the -dspark file only. Select the recipe that matches your deployment environment.
| File | GPU | GPUs | Parallelism | Strategy | Notes |
|---|---|---|---|---|---|
inkling-2-mini-nvfp4-b200-4gpu-tp4-ep4.yaml | NVIDIA B200 | 4 | TP4 × EP4 | Balanced | |
inkling-2-mini-nvfp4-b200-4gpu-tp4-ep4-dspark.yaml | NVIDIA B200 | 4 | TP4 × EP4 | DSpark | context 131,072; max_running_requests 64 |
inkling-2-mini-nvfp4-gb200-4gpu-tp4-ep4.yaml | NVIDIA GB200 (one tray) | 4 | TP4 × EP4 | Balanced | |
inkling-2-mini-nvfp4-gb200-4gpu-tp4-ep4-dspark.yaml | NVIDIA GB200 (one tray) | 4 | TP4 × EP4 | DSpark | context 131,072; max_running_requests 64 |
inkling-2-mini-nvfp4-h200-4gpu-tp4-ep4.yaml | NVIDIA H200 | 4 | TP4 × EP4 | Balanced | |
inkling-2-mini-nvfp4-h200-4gpu-tp4-ep4-dspark.yaml | NVIDIA H200 | 4 | TP4 × EP4 | DSpark | context 131,072; max_running_requests 64 |
inkling-2-mini-nvfp4-h20-4gpu-tp4-ep4.yaml | NVIDIA H20 (96 GB) | 4 | TP4 × EP4 | Balanced | |
inkling-2-mini-nvfp4-h20-4gpu-tp4-ep4-dspark.yaml | NVIDIA H20 (96 GB) | 4 | TP4 × EP4 | DSpark | context 131,072; max_running_requests 64 |
inkling-2-mini-nvfp4-h20-3e-4gpu-tp4-ep4.yaml | NVIDIA H20-3e | 4 | TP4 × EP4 | Balanced | |
inkling-2-mini-nvfp4-h20-3e-4gpu-tp4-ep4-dspark.yaml | NVIDIA H20-3e | 4 | TP4 × EP4 | DSpark | context 131,072; max_running_requests 64 |
inkling-2-mini-nvfp4-spark-1gpu-tp1-ep1-dspark.yaml | NVIDIA DGX Spark | 1 | TP1 × EP1 | DSpark | context 131,072; max_running_requests 4 |
Every file is for the NVFP4 checkpoint thinkingmachines/Inkling-2-Mini (Hugging Face), with image input enabled. The balanced files set a context length of 1,048,576 tokens; the -dspark files set 131,072. The DGX Spark file limits the server to four requests at a time and keeps 45 % of the unified memory for the model and its caches (mem_fraction_static: 0.45).
The header comment in each file names the checkpoint revision, GPU, GPU count and the container version it was validated with. Every file serves the model as thinkingmachines/Inkling-2-Mini; use this name as the model field in API requests.
Version
Recipe's version equals the container tag it was validated with. Recipe 2.1.9-variant-inkling-2-mini is for container sglang-model-free-nim-experimental:2.1.9-variant-inkling-2-mini.
Do NOT mix versions. A recipe may set engine options that another container version does not have, or that behave differently.
Deployment Details
Step 1 — Download the recipes and pick the file for your GPU.
ngc registry resource download-version "nim/nvidia/inkling-2-mini-recipe:2.1.9-variant-inkling-2-mini"
chmod 0755 inkling-2-mini-recipe_v2.1.9-variant-inkling-2-mini
chmod 0644 inkling-2-mini-recipe_v2.1.9-variant-inkling-2-mini/*.yaml
export RECIPES="$PWD/inkling-2-mini-recipe_v2.1.9-variant-inkling-2-mini"
The container runs as UID 1000. The downloaded directory and files may be readable by the downloading user only; the two chmod commands make them readable by the container and change only the mode.
Step 2 — Provide the weights. The weights are not part of this resource or of the container; they stay on Hugging Face (thinkingmachines/Inkling-2-Mini, about 20 GB). Either download them once and mount the directory read-only, or let NIM download them into its cache at the first start with NIM_MODEL_PATH=hf://thinkingmachines/Inkling-2-Mini.
Step 3 — Start the container with exactly the recipe's GPU count.
export IMAGE=nvcr.io/nim/nvidia/sglang-model-free-nim-experimental:2.1.9-variant-inkling-2-mini
export MODEL_DIR=/path/to/Inkling-2-Mini # Hugging Face layout
docker run -d --name inkling-2-mini \
--gpus '"device=0,1,2,3"' \
--ipc=host --shm-size=32g --ulimit memlock=-1 \
-p 8000:8000 \
--mount type=bind,src="$MODEL_DIR",dst=/models/model,readonly \
--mount type=bind,src="$RECIPES",dst=/opt/nim/recipes,readonly \
-e NIM_MODEL_PATH=/models/model \
-e NIM_CONFIG_FILE=/opt/nim/recipes/inkling-2-mini-nvfp4-h200-4gpu-tp4-ep4.yaml \
"$IMAGE"
- GPU count must equal the recipe's
tp_size: four GPUs with the B200, GB200, H200, H20 and H20-3e files, one with the DGX Spark file (--gpus '"device=0"'). If more GPUs are visible than the recipe'stp_size, NIM runs on the firsttp_sizeGPUs and logs a warning that names the used and idle GPUs; with fewer visible GPUs thantp_sizethe container does not start. - One node, NVLink: the GPUs of one launch must be in one node and connected by NVLink.
- Shared memory: the container needs more shared memory than Docker's default
/dev/shm(64 MiB). Start it with the three flags of the command above (--ipc=host --shm-size=32g --ulimit memlock=-1). - Hugging Face instead of a local directory: drop the
$MODEL_DIRmount, use-e NIM_MODEL_PATH=hf://thinkingmachines/Inkling-2-Mini, and mount a cache directory that UID 1000 can write at/opt/nim/.cache. This URI follows themainbranch of the repository; appending:b85c3cfa615fc413cc9af3379f491b963f3b586ato it loads the revision the recipes are written for. No Hugging Face token is needed for this public repository. - The served model name comes from the recipe (
served_model_name); noNIM_SERVED_MODEL_NAMEis needed.
Step 4 — Verify.
curl --fail http://localhost:8000/v1/health/ready
curl --fail http://localhost:8000/v1/models # id: thinkingmachines/Inkling-2-Mini
The container reports ready after the weights are loaded and the CUDA graphs are captured; this takes several minutes.
Requirements and known limits
- A recipe is required. See the description above;
NIM_MODEL_PATHandNIM_CONFIG_FILEare the two inputs of a launch. - Local media files are off. Every recipe sets
no_allow_local_media_files: true: an image given as a path or afile://URL inside the container is refused with HTTP 400.data:URIs, base64 data andhttp(s)URLs work. A launch without a recipe, or with a recipe that drops the key, uses the engine default, which accepts local image paths. The recipes do not restrict the hosts anhttp(s)image is fetched from; restrict that at the network level if your deployment needs it. - The model always reasons. Setting the reasoning effort to its minimum does not fully disable reasoning for this model (vendor model card), so every answer is preceded by reasoning tokens. Set a limit on output tokens.
- Stateful Responses are kept in memory. Every recipe sets
enable_response_store: true, so/v1/responsessupportsprevious_response_id, retrieval and background requests. Stored responses live in the server process, have no expiry and no size limit, and are lost at a restart; sendstore: falsefor requests that need not be kept. - Topology is fixed. Expert parallelism equals tensor parallelism; data parallelism and pipeline parallelism are not supported by the engine for this model.
- GPU types. This resource has recipes for B200, GB200, H200, H20 (96 GB), H20-3e and DGX Spark only.
- DGX Spark. Only the DSpark recipe is provided. The server handles at most four requests at a time; further requests wait in the queue.
Override a setting
While NIM_CONFIG_FILE is set, the recipe is authoritative: a key written in the recipe takes precedence over NIM_* environment variables, NIM_PASSTHROUGH_ARGS and command-line options; settings the recipe does not name follow the usual order. To run with a different value for a key, edit a copy of the recipe and point NIM_CONFIG_FILE at the copy. Any change moves the deployment outside the validated configuration.
Format
Each key is an engine launch option with - written as _ (true renders the bare flag; an option that is on by default is switched off with its negative name, as in no_allow_local_media_files: true); the ENV: mapping is exported into the engine process. NIM owns the model path, host and port; the parallel layout (tp_size, pp_size, data_parallel_size, ep_size), context_length and served_model_name are set by the recipe, so the recipe alone fixes the topology.
License / Terms of Use
GOVERNING TERMS: The recipe files in this resource are NVIDIA-provided configuration for the SGLang Model-Free NIM (Experimental) and are governed by the NVIDIA Software License Agreement and the Product-Specific Terms for NVIDIA AI Products, the same terms as the container they configure.
The model weights are not part of this resource. thinkingmachines/Inkling-2-Mini is a third-party model published on Hugging Face under the Apache License 2.0; its use is governed by that license in addition to the terms above.
You are responsible for ensuring that your use of any provided models complies with all applicable laws.
Get Help
NVIDIA Developer Community Forum
Get access to community knowledge base articles and support cases (https://forums.developer.nvidia.com/).