How to run Inkling 2 Mini on a SwissGPU RTX 4090

· Product · SwissGPU

One 24 GB RTX 4090 can run a 4-bit version of Thinking Machines’ Inkling 2 Mini. This walkthrough uses Ubuntu and llama.cpp to serve the model for text requests. You’ll reach the API from your own computer through an SSH tunnel. Inkling 2 Mini model card · Published RTX 4090 results

Which Inkling 2 Mini weights fit on 24 GB?

Thinking Machines recommends 32 GB of VRAM for its original checkpoint on other GPUs. For the 24 GB RTX 4090, use Unsloth’s 4-bit UD-IQ4_XS GGUF, which takes 15.73 GB on disk. The runtime and attention cache also need GPU memory, so start with a 4,096-token context and one request at a time. Original checkpoint requirements · Unsloth GGUF sizes

1. Connect to your RTX 4090

Choose an Ubuntu RTX 4090 instance and copy its SSH command from the SwissGPU dashboard. On your computer, add -L 127.0.0.1:8080:127.0.0.1:8080 before the destination. Keep any address family or port options from the dashboard.

ssh -L 127.0.0.1:8080:127.0.0.1:8080 USER@HOST

On the instance, run nvidia-smi to check that the RTX 4090 appears and the driver reports CUDA 12.8 or newer for the package below. Check that your home directory has at least 20 GB of free disk space with df -h "$HOME". SwissGPU SSH instructions

2. Download and start llama.cpp

These commands pin the llama.cpp release and the GGUF revision so you can repeat the setup. Run the whole block on the Ubuntu instance. llama.cpp b12823 release · Pinned model files

(
  set -e
  mkdir -p ~/inkling-2-mini
  cd ~/inkling-2-mini

  release=b12823
  platform=bin-ubuntu-cuda-12.8-x64
  base_url="https://github.com/ggml-org/llama.cpp/releases/download/$release"

  for archive in "llama-$release-$platform" "cudart-llama-$release-$platform"; do
    curl -fL --retry 3 -o "$archive.tar.gz" "$base_url/$archive.tar.gz"
    tar -xzf "$archive.tar.gz"
  done

  revision=8078d149286eec7193795413b9e0643da6d11fa1
  model=Inkling-2-Mini-UD-IQ4_XS.gguf
  model_url="https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/$revision"
  curl -fL --retry 3 -o "$model" "$model_url/$model"

  runtime="$PWD/llama-$release"
  cuda_runtime="$PWD/cudart-llama-$release-$platform"
  LD_LIBRARY_PATH="$runtime:$cuda_runtime${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" \
    "$runtime/llama-server" \
    --model "$model" --alias inkling-2-mini --n-gpu-layers all \
    --ctx-size 4096 --parallel 1 --flash-attn on \
    --host 127.0.0.1 --port 8080
)

Wait for the server to finish loading and check the startup log for CUDA device use. If CUDA runs out of memory, start again with --ctx-size 2048. For more headroom, download the 11.66 GB Inkling-2-Mini-UD-IQ3_XXS.gguf from the same revision and point --model to it. llama.cpp server options · Unsloth quantization comparison

3. Send a request from your computer

Keep the SSH session running. Open another terminal on your computer and send a request to the forwarded port. The response is JSON from the OpenAI-compatible chat endpoint.

curl -fsS http://127.0.0.1:8080/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "inkling-2-mini",
    "messages": [
      {"role": "user", "content": "Explain what a GPU does in one sentence."}
    ],
    "max_tokens": 512
  }'

How fast is Inkling 2 Mini on an RTX 4090?

Runpod measured a median 69.5 output tokens per second on an RTX 4090 with a 4-bit GGUF and llama.cpp, using one request at a time. The NInfer authors measured 75.0 decode tokens per second on an RTX 4090 using their test GGUF and another llama.cpp build. These are third-party results from different test setups. Use your own prompts to measure response time and output speed on your instance. Runpod benchmark · NInfer benchmark methodology

Explore the SwissGPU RTX 4090 · See current SwissGPU pricing

Rent a dedicated GPU server in Switzerland.

The whole machine, with Linux and SSH access. Compare models and current hourly prices before you sign in.

More news