Inkling-2-Small 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-Small Recipes
Description
Validated, ready-to-apply launch configurations ("recipes") for serving thinkingmachines/Inkling-2-Small 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 NVIDIA validated.
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 was validated with. Each GPU type has two files: a balanced one (plain decoding) and a -dspark one (DSpark speculative decoding). Select the recipe that matches your deployment environment.
| File | GPU | GPUs | Parallelism | Strategy | Notes |
|---|---|---|---|---|---|
inkling-2-small-nvfp4-b200-4gpu-tp4-ep4.yaml | NVIDIA B200 | 4 | TP4 × EP4 | Balanced | MegaMoE |
inkling-2-small-nvfp4-b200-4gpu-tp4-ep4-dspark.yaml | NVIDIA B200 | 4 | TP4 × EP4 | DSpark | MegaMoE; max_running_requests 192 |
inkling-2-small-nvfp4-gb200-4gpu-tp4-ep4.yaml | NVIDIA GB200 (one tray) | 4 | TP4 × EP4 | Balanced | MegaMoE; IMEX channel required; start with all three flags of Step 3; reduced CUDA-graph buckets |
inkling-2-small-nvfp4-gb200-4gpu-tp4-ep4-dspark.yaml | NVIDIA GB200 (one tray) | 4 | TP4 × EP4 | DSpark | MegaMoE; IMEX channel required; start with all three flags of Step 3; reduced CUDA-graph buckets; max_running_requests 192 |
inkling-2-small-nvfp4-h200-8gpu-tp8-ep8.yaml | NVIDIA H200 | 8 | TP8 × EP8 | Balanced | |
inkling-2-small-nvfp4-h200-8gpu-tp8-ep8-dspark.yaml | NVIDIA H200 | 8 | TP8 × EP8 | DSpark | max_running_requests 64 |
inkling-2-small-nvfp4-h20-8gpu-tp8-ep8.yaml | NVIDIA H20 (96 GB) | 8 | TP8 × EP8 | Balanced | |
inkling-2-small-nvfp4-h20-8gpu-tp8-ep8-dspark.yaml | NVIDIA H20 (96 GB) | 8 | TP8 × EP8 | DSpark | max_running_requests 64 |
inkling-2-small-nvfp4-h20-3e-8gpu-tp8-ep8.yaml | NVIDIA H20-3e | 8 | TP8 × EP8 | Balanced | |
inkling-2-small-nvfp4-h20-3e-8gpu-tp8-ep8-dspark.yaml | NVIDIA H20-3e | 8 | TP8 × EP8 | DSpark | max_running_requests 64 |
Every file is for the NVFP4 checkpoint thinkingmachines/Inkling-2-Small (Hugging Face), with a context length of 1,048,576 tokens and image input enabled. The B200 and GB200 files use the MegaMoE expert path (moe_a2a_backend: megamoe). The GB200 files also set cuda_graph_config to a shorter list of CUDA-graph batch sizes (9 for decode, 10 for prefill): the engine's default set did not start on the GB200 system used for validation.
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-Small; 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-small is for container sglang-model-free-nim-experimental:2.1.9-variant-inkling-2-small.
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-small-recipe:2.1.9-variant-inkling-2-small"
chmod 0755 inkling-2-small-recipe_v2.1.9-variant-inkling-2-small
chmod 0644 inkling-2-small-recipe_v2.1.9-variant-inkling-2-small/*.yaml
export RECIPES="$PWD/inkling-2-small-recipe_v2.1.9-variant-inkling-2-small"
The container runs as UID 1000. The downloaded directory and files may be readable by the downloading user only (ngc wrote them with modes 0700 and 0600 in our test); 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-Small, about 394 GB). Either download them once and mount the directory read-only, which is how the recipes were validated, or let NIM download them into its cache at the first start with NIM_MODEL_PATH=hf://thinkingmachines/Inkling-2-Small (the cache volume needs about 400 GB of free space). Two starts with this download were run on B200, one of them with the revision suffix named below: about 366 GiB (394 GB) were downloaded in 5 to 6 minutes on that host's network, and the container was ready after about 15 minutes in total.
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-small
export MODEL_DIR=/path/to/Inkling-2-Small # Hugging Face layout
docker run -d --name inkling-2-small \
--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-small-nvfp4-b200-4gpu-tp4-ep4.yaml \
"$IMAGE"
- GPU count must equal the recipe's
tp_size: four GPUs with the B200 and GB200 files, eight with the H200, H20 and H20-3e files. 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); the command above provides it. With a 64 MiB/dev/shmthe start fails after about 75 to 100 seconds withNCCL error: unhandled system error(seen on all five GPU types). Measured in single starts with a short functional check, not under load: without--ipc=host,--shm-size=32galone is sufficient on B200, H200, H20 and H20-3e; peak/dev/shmuse was about 260 MiB with four GPUs and about 520 MiB with eight. With--ipc=host, as in the command above and in every validation run, the container uses the host's/dev/shm. Every validation run also used--ulimit memlock=-1. On GB200 keep all three flags (see the next bullet). - GB200: add
-e NVIDIA_IMEX_CHANNELS=0and keep all three flags--ipc=host --shm-size=32g --ulimit memlock=-1; the host needs a configured IMEX domain (one tray, four GPUs). GB200 was validated only with these three flags: of four test starts with--shm-size=32galone, one ended after about half a minute with a CUDA error and three became ready. - Hugging Face instead of a local directory: drop the
$MODEL_DIRmount, use-e NIM_MODEL_PATH=hf://thinkingmachines/Inkling-2-Small, and mount a cache directory that UID 1000 can write at/opt/nim/.cache. This URI follows themainbranch of the repository; appending:ef5bf64c1b8e7d0e57b284e10c6891f8db6304c4to it loads the revision the recipes were validated with. 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-Small
Readiness with the weights on local disk took about 9 to 12 minutes on B200 and GB200 and about 14 to 15 minutes on H200, H20 and H20-3e in validation (weight loading and CUDA graph capture); the first start with hf:// adds the download time.
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. - 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 version has recipes for B200, GB200, H200, H20 (96 GB) and H20-3e only.
- Start-up time. Plan for 10 to 15 minutes before the container reports ready, as in Step 4.
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-Small 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/).