Skip to content
One AI API Key
Blog

Run Inkling 2 Mini on Vast.ai: step-by-step RTX 3090 setup for unlimited local use

Rent a 24GB RTX 3090 on Vast.ai, run Inkling 2 Mini AD-Q5_K in llama.cpp, and get unlimited self-hosted inference. Step-by-step with cost framing.

One AI API Key TeamPublished 11 min read
On this page

Renting a single 24GB GPU is the sweet spot for running Inkling 2 Mini yourself. Thinking Machines Lab shipped the model on 2026-11-20 under Apache 2.0 with open weights — a looped sparse MoE at 26.4B total parameters with only 3.4B active (5.4B effective once the loop is applied). That tiny active footprint is exactly why a consumer-class card can serve it with real context. Vast.ai, a marketplace of community-owned GPUs, is one of the cheapest ways to get that card for a few hours or a whole month.

This guide walks the full path: pick the instance, load the AD-Q5_K quant, build llama.cpp, serve it, and connect. We will also do honest cost arithmetic — clearly labeled as illustrative — and separate verified numbers from operator-reported claims.

Why a 24GB card is the target

The full checkpoint is roughly 20GB in NVFP4+MXFP4 and needs 32GB+ to serve as-is. That rules out most single consumer cards at full precision. The quant ladder fixes this. The AD-Q5_K quant is 19.07GB and retains 97.1% quality versus BF16, and it fits entirely inside 24GB of VRAM with room for a meaningful context buffer.

That is the configuration we are aiming for. On a 24GB RTX 3090 or RTX 4090, AD-Q5_K runs fully in VRAM and gives you about 24K context. If you would rather not manage a server at all, our hosted access serves the same model with none of the setup.

Card VRAM Recommended quant Approx context
RTX 3090 24GB AD-Q5_K (19.07GB, 97.1%) ~24K
RTX 4090 24GB AD-Q5_K (19.07GB, 97.1%) ~24K
RTX 5090 32GB AD-Q6_K (23.79GB, 97.6%) ~48K

Community measurements report the RTX 5090 AD-Q6_K landing within 0.1 points of Q8_0 — but treat that as community-reported until you verify it on your own workload.

Step 1: create a Vast.ai instance

Sign in at Vast.ai and open the GPU marketplace. Filter for RTX 3090 or RTX 4090 with at least 24GB VRAM. Sort by price per VRAM-hour — Vast.ai is a marketplace, so rates vary widely by host, region, and demand. We deliberately avoid quoting a fixed $/hr because platform pricing changes; always check the current rates before you commit.

Choose an image with CUDA and recent drivers. A plain Ubuntu + CUDA template is fine, since we will build llama.cpp from source. If you prefer a managed runtime, our RunPod guide covers the vLLM path instead.

For a first run, pick an on-demand (reserved) instance so it will not be interrupted mid-build. Once everything works, you can switch to interruptible/spot instances for the savings discussed at the end.

Step 2: install build prerequisites

SSH into the instance and install the toolchain. llama.cpp needs a compiler, CMake, and the CUDA toolkit.

bash
apt-get update && apt-get install -y build-essential cmake git curl libcurl4-openssl-dev
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp

You need llama.cpp b12600 or newer for the looped-sparse-MoE support that Inkling 2 Mini depends on. If the default branch is older, pull the latest release tag.

Step 3: build with CUDA

Configure with CUDA enabled and build the CLI, server, and multimodal binaries. The multimodal target matters because Inkling 2 Mini is a text+image→text model.

bash
cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON
cmake --build build -j --target llama-cli llama-server llama-mtmd-cli

On a rented 3090 host this usually finishes in a few minutes. If you would rather skip the build entirely, Ollama ships the model as inkling-2-mini — see our Ollama setup guide for that route.

Step 4: serve the AD-Q5_K quant

The one-liner below pulls the AD-Q5_K GGUF directly from Hugging Face and starts an OpenAI-compatible server tuned for 24GB. The -c 24576 flag sets roughly 24K context, which is what fits alongside the 19.07GB weights on a 24GB card.

bash
./build/bin/llama-server \
-hf AtomicChat/Inkling-2-Mini-GGUF:AD-Q5_K \
--alias inkling-2-mini \
--jinja --temp 1.0 \
-ngl 99 -c 24576 \
--host 0.0.0.0 --port 8080

A few flags are worth understanding:

  • -ngl 99 offloads every layer to the GPU. On a 24GB card all weights plus KV fit in VRAM.
  • --temp 1.0 matches the temperature the vendor recommends. Do not lower it thinking it will help — see the efficiency math on why looped MoE behaves differently.
  • --jinja enables the model’s chat template, which is how you access the thinking/reasoning controls.

If you want a deeper walkthrough of the local serving path, our local setup guide covers configuration in more detail.

Step 5: connect and verify

The server exposes an OpenAI-compatible API on port 8080. From another terminal on the box:

bash
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
  "model": "inkling-2-mini",
  "messages": [{"role":"user","content":"Summarize the looped sparse MoE design."}],
  "temperature": 1.0
}'

Reasoning effort is controlled through chat_template_kwargs rather than a top-level flag, so pass it inside the request body if you want to tune how hard the model thinks.

Model:    Inkling 2 Mini (AD-Q5_K, 19.07GB)
Quant:    AD-Q5_K — 97.1% of BF16 quality
Context:  ~24K (fits in 24GB VRAM)
Mode:     Fully offloaded to GPU (-ngl 99)

What speed to expect

Here we must be careful to separate verified from reported figures.

The verified reference point comes from Artificial Analysis’ hosted deployment: 280 output tokens/second and a 9.72s time-to-first-token — the lowest TTFT in the Inkling family. That number reflects their infrastructure, not your rented card.

Independent local measurements from Kingy, running a UD-Q4_K_M quant (16.6GB) in llama.cpp build 12611, averaged 19.2 tokens/second — and that was still faster than Qwen3.8 27B at 4-bit, which measured 12.1 tokens/second in the same harness. For context on how these compare, see our local speed deep-dive and the Inkling vs Qwen3.8 comparison.

Operator-reported figures for a 24GB 3090 running AD-Q5_K describe smooth, usable token rates for interactive work — but these are community reports, not independently verified, and your actual throughput will depend on the specific host, cooling, and driver stack. Treat any specific tok/s claim for a rented card as unverified until you benchmark it yourself.

Cost arithmetic (illustrative — verify live rates)

We cannot quote a firm monthly price because Vast.ai rates move constantly. But we can show the shape of the math so you can plug in the current number yourself.

At a typical RTX 3090 rate of around $0.15–0.25/hr (check current Vast.ai pricing — this is illustrative, not a quote), a 24/7 month looks roughly like this:

Usage pattern Hours/month Illustrative monthly cost
Part-time (8h/day) ~240 ~$36–60
12h/day ~360 ~$54–90
24/7 on-demand ~730 ~$110–180
24/7 interruptible/spot ~730 often well under on-demand

This is arithmetic for illustration only, not a verified price. Real savings come from two levers:

  1. Interruptible/spot instances. These can be reclaimed by the host at any moment, so they are cheaper. They suit batch jobs and unattended workloads where a restart is acceptable — not interactive sessions you cannot afford to lose.
  2. Part-time operation. If you only need the GPU during working hours, shutting it down when idle cuts the bill dramatically versus 24/7.

Operator and community reports describe running a rented 3090 for under $100/month with unlimited use by combining spot pricing with part-time scheduling. We want to be direct: this is a community-reported figure. It is plausible given the arithmetic above, but it is not an independently verified number, and it depends heavily on hitting cheap spot capacity. Verify current rates on Vast.ai and RunPod before you budget against it.

For a fuller treatment of the monthly math, see our dedicated 3090 monthly cost breakdown, and for how renting compares to paying per token, read the local vs API economics analysis.

Rent vs use hosted: how to decide

A rented GPU makes sense when you want unlimited, private, always-on inference and you are comfortable managing a box. The hosted path makes sense when you want the verified 280 tok/s performance and zero ops. There is also a third option worth knowing about — the vendor’s own hosted Tinker service, whose per-token rates we break down in the Tinker pricing guide.

Before you rent, be aware of one honest caveat. MindStudio’s independent testing found Inkling 2 Mini ran for over an hour on a planted pricing bug without solving it, while Qwen3.8 solved a similar task in 5–10 minutes. Benchmarks do not always predict open-ended agent loops — see our agentic failure writeup before promising yourself “unlimited coding.”

Troubleshooting

  • Out of memory at startup. Drop the context. Every GB you free adds roughly 7.5K context — or the reverse: reclaiming buffer buys headroom. The -ub 256 flag halves the UB buffer if you are tight.
  • Checkpoint will not fit at all. Step down the quant ladder to AD-Q4_K (16.53GB, 96.3%) and keep the same workflow.
  • Need more context than 24K. You are VRAM-bound, not quant-bound. Either move to a 32GB card for AD-Q6_K and ~48K, or read the memory footprint breakdown to understand how context scales — 128K costs about 17GB of overhead on top of weights.
  • Want faster decode. A single 3090 will not reach the reported 300+ tok/s tier. That requires a high-VRAM multi-GPU box — see the 300 tok/s multi-GPU analysis.

Spot vs on-demand: choosing the right instance type

The single biggest cost decision on Vast.ai is the instance type, and it is worth understanding before you commit hours to a box.

On-demand (reserved) instances are dedicated to you for as long as you keep them running. The host cannot reclaim them mid-session, so they are the right choice for interactive work — anything where losing the box mid-request would be disruptive. You pay the full listed rate.

Interruptible (spot) instances are cheaper because the host reserves the right to reclaim the GPU at any moment, usually with a short grace period. The discount is meaningful, and this is the lever that makes the community’s “under $100/month” reports possible. The tradeoff is that your session can end without warning.

A practical pattern many operators report: build and smoke-test on an on-demand instance first, confirm your exact configuration works, then move steady-state batch workloads to spot to capture the savings. Keep anything interactive or stateful on on-demand.

Because we cannot verify current spot discounts, treat the savings as a range rather than a fixed number — check the interruptible pricing shown for your chosen card at the time you rent.

Networking, security, and access

A rented GPU box is a machine on the public internet, so a few basics matter. Vast.ai instances are typically reached over SSH with a provided key, which is the safest default. Avoid exposing your llama-server on an open public port without authentication — the command in Step 4 binds to 0.0.0.0 so you can reach it, but if you open that port to the world, anyone who finds it can use your model and burn your GPU hours.

The safer options:

  • SSH tunnel — leave the server on localhost and forward the port over SSH to your local machine. This keeps the API entirely private.
  • Firewall rules — if the platform exposes them, restrict inbound traffic to your own IP.
  • An API key — llama.cpp supports a --api-key flag; set one if the port must be reachable.

None of this is optional if you are running a 24/7 box. An unauthenticated OpenAI-compatible endpoint on the public internet will be found and used.

Data persistence and model caching

By default, most rental instances are ephemeral — when the instance is destroyed, anything you downloaded or built is gone. That includes the ~20GB of weights and your compiled llama.cpp build. Re-downloading and rebuilding on every fresh instance wastes time and money.

Two ways to handle it:

  • Volumes — Vast.ai offers persistent storage you can attach to instances, so weights and builds survive between sessions. Attach a volume, point your model downloads at it, and reuse it across instances.
  • A setup script — keep the install and build commands in a script you paste at startup. Combined with the direct -hf pull in Step 4, you can go from a fresh instance to a running server in a few minutes without babysitting.

For a one-off test session, ephemeral is fine. For recurring use, a volume pays for itself quickly in avoided re-downloads.

Keeping the setup current

Two things drift over time and are worth revisiting: llama.cpp and the quants. The looped-sparse-MoE support Inkling 2 Mini needs landed around b12600, but the project moves fast and newer builds bring performance and stability fixes — re-pull and rebuild periodically. On the quant side, AtomicChat publishes new AD quants as the model matures, so check the GGUF repo for a higher-quality option that still fits your VRAM. For a more managed update path, Ollama handles versioning for you — see the Ollama setup guide.

Where to go next

See hosted pricing Browse models Open the cost calculator

Renting a 3090 is the cheapest way to own your inference. But if you would rather have the verified 280 tok/s hosted performance with no server to babysit, create an account and use Inkling 2 Mini through our gateway in minutes.

More in Blog

Try it

One API key for Claude, GPT, Grok, DeepSeek, Kimi, Qwen, GLM, MiniMax, Step, Crow, Dots, Beam, Nemotron, Jailbreak, MiMo, Gemini, Muse and Mistral.

One AI API Key speaks the OpenAI and Anthropic formats, so you change the base URL and the key, not your code. Credit packs start at $10, and every model has a published per-token rate.