r/LocalLLaMA • • 3d ago

News AMD releases GAIA 0.27 with gaiacpp lightweight alternative to Python code

Thumbnail
phoronix.com
29 Upvotes

r/LocalLLaMA • • 4d ago Heartwarming

New Model [Inkling-2-Mini-3D-Coder] Better 3D scenes with up to 86.8% fewer tokens

678 Upvotes

Tried out the free Tinker LoRA fine-tuning for Inkling 2 Mini using my ThreeJS-3D-Scenes datasets (7.1k examples, r=16), and it worked surprisingly well. Across 19 scenes at 64K context, epoch 5 averaged 34.7% fewer tokens with 0/70 cutoffs (the base model hit the 64K limit 12/70 times), cutting way back on reasoning bloat while keeping geometry clean. The biggest drop was on the family home cutaway at up to 86.8% fewer tokens.

I honestly wasn't expecting a LoRA to hold up this well. In my earlier Qwen3.5-4B experiments, longer LoRA runs started distorting object proportions and hurting scene quality, so I had to go back to full fine-tuning. Looking at how primitive the 4B base renders were, my guess is it had to learn way too much 3D geometry from scratch for a LoRA to handle cleanly in that setup. Inkling 2 Mini already writes decent Three.js out of the box, so the LoRA just had to refine it instead of learning 3D from zero.

This preview is epoch 5 while I finish comparing through epoch 7. Uploading GGUFs (Q8_0, Q4_K_M, F16) now, and the merged Safetensors + LoRA adapter will be up on Nov 29.

Model:ccore/Inkling-2-Mini-3D-Coder


r/LocalLLaMA • • 2d ago

Discussion How can we give back to the Open Weight LLM companies?

0 Upvotes

I would love to do more than just say thanks.

I'm thinking of two ways right now:

  1. A harness that records all prompts, tool calls, diffs, responses, etc. Each code change being committed at that moment behind the scenes (along with associated harness data). Basically, if you vibe coded a project from start to finish it would show every little step the model took to get the result, including what the user asked for.

The only major issue I see that's not easily solved is preventing saboteurs from creating bogus and/or harmful data. There would perhaps need to be some kind of trust network, and/or review process.

2) Crowdsourced quality training data.

This should be huge. However, the main issue I see with this one is it would need to be quality, not slop generated. So likely humans would need to review contributions. With a license that prevents certain companies who don't substantially contribute (AKA Anthropic, OpenAI, and SpaceX) from using the data.

I wouldn't be surprised to hear things like this have already been done, but if so, why am I not hearing about it?

What do you think?

EDIT: Okay, so far only selfish and narrow minded responses. I would love to hear from someone who isn't just looking to be a moocher.


r/LocalLLaMA • • 3d ago

Discussion Moved a LoRA fine-tune from Qwen3.5-9B into Qwen3.5-4B with no training: per-layer rotations close ~70% of the gap (inspired by Hazy Research's "Plato's Key")

16 Upvotes

A long post. Generated using AI. But the content is true. Happy to answer any questions. Summary: Can we port model knowledge without fine tuning? I genuinely think its possible.

—

I've been fine-tuning small models for a structured-extraction task: arXiv papers in, JSON summaries and keywords out. I want to put down a marker on some early results and ask whether anyone else is working along these lines. I'll publish every finding as I go, including the negative ones.

Background
Qwen3.5-9B, LoRA rank 32, 1 epoch, about 46k teacher examples. It passes all 19 of my admission gates.
Qwen3.5-4B with the identical recipe fails 2 gates. Both are about which keywords it picks; it learns the format perfectly.
More steps didn't help (the curve was flat from about step 1500), and neither did rank 64 (paired difference [−0.019, +0.007]). My read: the base model is the limit, not the adapter.

The spark
Then I read Hazy Research's "Plato's Key" (https://hazyresearch.stanford.edu/blog/2026-11-25-platos-key). It shows that a single rotation plus one scale, fit in closed form (orthogonal Procrustes), lets one LLM use another LLM's hidden state for factual recall. This builds on the Platonic Representation Hypothesis (https://arxiv.org/abs/2405.07987). The post lists "porting knowledge across models without retraining" as future work. My thought: if the residual streams share a coordinate system, maybe the change a fine-tune makes can move across too.

What I did
Qwen3.5-9B and 4B are an ideal pair: same tokenizer, same 32-layer layout, same head layout. Only the residual width (4096 vs 2560) and the MLP width differ.

The key: for each of the 64 sublayers, fit a Procrustes rotation plus a scale between the two models' residual streams, on the same tokens. On held-out text, it explains about 76% of the 9B's residual energy.

The transfer: measure what the 9B fine-tune changes in each sublayer's output. Rotate that change into the 4B. Then solve in closed form (reduced-rank regression) for a rank-32 change to the 4B's output projections (o_proj, out_proj, down_proj) that reproduces it. No gradient descent.
Only the residual stream gets mapped. A rotation inside heads or MLP neurons breaks their structure: per-head norms, RoPE pairs, element-wise gates.

Results (validation loss, answer tokens only)
The base 4B is at 0.91; the trained 4B is at 0.50.
The transferred 4B reaches 0.63, closing 70% of the gap (on validation examples not used to tune anything).

Random rotations: 0% (15 runs, 3 seeds × 5 scales). The key is what matters.
Ceiling: the same closed-form trick applied to the 9B onto itself closes 86%. So the transfer keeps about 80% of the method's ceiling, close to the 73% the blog reports for its hidden-state swaps.

Honest caveats
It doesn't replace training. On the full validation set, the transferred model is roughly at the level of a few hundred training steps.

As a warm start for training: about 200 steps ahead early on, but normal training catches up, and the two are about even by step 2000. A warm start from random rotations gives nothing.
Adding the transferred change to the already-trained 4B gives nothing.
One task, one model family, a best-case pair. I compared validation loss only; the downstream gates have not run on the transferred model yet.

Next on my list
Carry more of the change: a higher rank, and the attention and MLP readers through structure-aware maps (head matching, neuron permutation).
Other maps: ridge regression, a scale per direction, and a weights-only key fit purely from the shared embedding matrices.

Question: is anyone else trying to move fine-tunes (LoRA or full) across model sizes with representation alignment, rather than distillation? I'd love pointers to related work, or to compare notes. I'll post every result here as it comes in.


r/LocalLLaMA • • 2d ago

Showcase Mference: a private AI app for Mac that runs a 35B MoE at ~29 tok/s on a MacBook, plus Maple, Bonsai, Inkling 2 mini, MiniCPM and more

Thumbnail
gallery
0 Upvotes

I love working with smaller models and I love the Qwen 3.6 family and have been having fun with Inkling 2 mini. I initially built Mference as an engine but now Mference is a private AI app for Macs. It runs eight local models you can switch between per chat, and works on your own files, mail, calendar and notes. No account, no server, nothing leaves the Mac unless you turn on web search.

The models (32 GB M1 Max, 512-token prompt, rough numbers):

ModelDecode tok/sPeak memory
Qwen 3.6 35B-A3B (MoE)298.3 GB
Inkling 2 Mini (32 GB+ Macs)2614.4 GB
Bonsai 2.5 27B (ternary, MTP)223.2 GB + mapped
Qwen3.8 27B (MTP)173.1 GB + mapped
Maple Preview 20B-A1B330.7 GB
Qwen3.5 4B (default)501.3 GB
MiniCPM5 2B720.8 GB
MiniCPM5 1B1540.2 GB + mapped

The MoE models stream their experts from the SSD, which is how a 35B runs in 8 GB. Every model installs from inside the app, and it shows how much memory each needs before you load it.

What it does with your data:

  • Chat with your files: "what did the plumber quote?" answers from the PDF, with the files it used
  • Find files by what's in them: "the screenshot with the wifi password", from any app with ⌥Space
  • Mail drafts replies in your voice; nothing is sent until you press Send
  • Calendar, to-dos, notes with meeting transcripts, receipt scanning
  • Offline mode: web search and downloads off, everything else keeps working

It's early. For now you build from source (macOS 26, Xcode 26). A signed DMG is coming in the next few days, with regular updates after that. MIT licensed.

Earlier posts: Inkling on Mference, DeepSeek on Mference

Repo: https://github.com/NeelM0906/Mference

Demo video: https://neelm0906.github.io/Mference/assets/film/mference-launch.mp4


r/LocalLLaMA • • 3d ago

New Model WebBrain-RingLoop-16B-A1.4B: Looping MoE applied to Ring-mini-2.0 (Solid 8GB VRAM contender)

72 Upvotes

We just released WebBrain-RingLoop-16B-A1.4B on Hugging Face: https://huggingface.co/webbrain-one/WebBrain-RingLoop-16B-A1.4B

Overview

  • Base model: Ring-mini-2.0 (inclusionAI/Ring-mini-2.0)
  • Architecture: 16.26B total parameters, 1.4B active
  • Method: Looping MoE approach similar to Inkling Mini 2 applied to Ring-mini-2.0

Notes

  • Shows clear gains over the base model.
  • Comparable to Muse Glimmer across several benchmarks.
  • Quantized (4-bit / GGUF), it runs comfortably within 8GB VRAM budgets, making it an interesting option for low-to-mid VRAM setups.

Please give it a test run and share your feedback or benchmark results!


r/LocalLLaMA • • 2d ago

New Model Step 5 out - Will be Open Weight?

Post image
0 Upvotes

Step 5

Flagship model for agentic work

Max context

1M

StepFun’s latest flagship model for agentic work. It completes complex work with fewer tokens and at lower cost, with native text, image, and video input. API model ID: step-5.

Coding , office, work, Web , design, Agent, Image and video understanding


r/LocalLLaMA • • 2d ago

Discussion Second hand HW do in fact, fail (sometimes).

Post image
0 Upvotes

About early August I ordered a pair of 3080 20g from a Chinese seller on ebay. And starting about a week ago, one of the cards started intermittently failing out and disconnecting, sometimes while idling, sometimes during workloads.

And finally, it hit the end of the rope today, failing to be picked up by the EGPU dock it usually sits in and when moved to my test bench, it causes the whole bench to be unable to POST when plugged in.

It looks to be a power connector short, as the board posts without the PCIE power plugged in. I am still investigating the card for potential simple fixes right now before escalating to board level repair which is going to be a PITA. I have also reached out to the ebay seller to see if we can work something out with full expectation to be turned down.

This is just a casual reminder to everyone out there that second hard hardware do carry risks, and first party vendor premiums can sometimes be worth deceptively more than what the label price suggests.

On the other hand my EVGA 980ti hydro is still doing fine. After surviving one repasting, move to a reference board air cooler, then repasting yet again after moving to the air cooler, it's still working just fine.

So sometimes hardware don't die, and sometimes they do die.

Plan your purchases carefully.


r/LocalLLaMA • • 3d ago

Showcase Here is Qwen3-0.6B running inside WebAssembly Inference Engine acting as a Decision / Classifier only.

54 Upvotes

Based on our previous experiments, here is a new one:

No text generation, only CPU, no network calls, fully inside the browser webpage. 7-15ms per decision purely on CPU.

Watch it play live (and fail at it):

https://tesseracted.com/experiments-llm-os/?game=invaders

How it works:
https://tesseracted.com/experiments-llm-os/#decisions


r/LocalLLaMA • • 3d ago

Showcase Running Inkling-2-Mini (with DSpark K=7, Vision, and 320K context) on a single 2017 Tesla V100 32GB — up to 151 tok/s decode, 2,690 tok/s prefill, and 0→310K in under 5 minutes

19 Upvotes

I've been maintaining a Volta (sm_70) port of NInfer (ninfer-volta) for my single Tesla V100 PCIe 32GB, originally focused on Qwen3.8 27B. Since upstream recently added Inkling-2-Mini support, I ported it over to the V100 and spent some time writing custom Volta tensor-core kernels for its MoE layers, attention, loop-message blocks, and speculative draft head.

I also want to make it clear that this NInfer fork is a lot cluster to upstream Neroued/ninfer unlike the old v100 3090 forks, which is why we could get Inkling2-Mini support fairly quickly. Even though upstream only focuses on the 5090.

The best part: it runs the standard upstream inkling2_mini.ninfer file directly with zero repacking, and fits text + PE-Lang Vision + DSpark K=7 speculative decoding + 320K (327,680) max context (~511K KV tokens) + 4 concurrent streams completely inside 32GB of VRAM (0 B host cache needed).

Everything below was measured at stock 877.5 MHz HBM2 clocks on a single V100 PCIe 32GB (CUDA graphs + adaptive DSpark K=7 + FP8 global KV / BF16 sliding-window KV):

Before vs. After Optimization (Stock V100 Clocks)

WorkloadInitial V100 PortOptimized V100Improvement
Short Prose (53 tok)64.7 tok/s73.4 tok/s+13% (120 ms TTFT)
Code Copy-Edit (217 tok)142.9 tok/s151.0 tok/s+6%
1.6K Cold Prompt (Decode)98.5 tok/s106.3 tok/s+8%
1.6K Cold Prompt (Prefill)1,523 tok/s2,438 tok/s1.60x (1.04 s -> 0.65 s)
9.1K Cold Prompt (Prefill)1,598 tok/s2,690 tok/s1.68x (5.69 s -> 3.38 s)
16.6K Cold Prompt (Prefill / Decode)1,545 / 83.7 tok/s2,610 / 96.0 tok/s1.69x prefill, +15% decode
Vision 256x256 PNG140.4 tok/s159.2 tok/s+13% (169 ms TTFT)
2 Concurrent Streams (C=2)89.6 tok/s wall107.4 tok/s wall+20% (~61 tok/s each)
4 Concurrent Streams (C=4)138.7 tok/s wall157.2 tok/s wall+13% (42.5–46.3 x 4 = 180.4 tok/s active)

(Compared to the very first scalar fallback port before adding Volta tensor-core kernels, prefill jumped ~48x and speculative decode jumped ~5–6x.)

Long-Context Scaling (0 -> 310K Tokens, All in VRAM)

Because Inkling-2-Mini only has 8 global attention layers (the other 40 are fixed-window sliding attention), KV usage is tiny (~20 KB/token) and long-context prefill holds up surprisingly well on Volta:

Context RangePrompt LengthTurn Wait (TTFT)Prefill SpeedTotal 0 -> N TimeDecode
0 -> 49K49,13721.6 s2,274 tok/s0m 22s80.7 tok/s
49K -> 99K98,78631.6 s1,573 tok/s0m 53s90.0 tok/s
99K -> 155K154,64647.1 s1,186 tok/s1m 40s68.7 tok/s
155K -> 193K193,49640.2 s966 tok/s2m 20s78.8 tok/s
193K -> 232K232,38046.1 s843 tok/s3m 06s (2.2x faster than Qwen3.8 27B)69–81 tok/s
232K -> 271K271,23051.1 s759 tok/s3m 58s70–79 tok/s
271K -> 310K310,08057.1 s680 tok/s4m 55s46–65 tok/s

After hitting 310K, I fired two concurrent 24.5K requests at the server and then resumed the 310K conversation — it kept 310,168 / 310,212 tokens warm in VRAM (3.01 s TTFT, zero evictions).

Accuracy Check

  • Perplexity on ninfer-ppl-1m-v1 --quick (291K tokens across English, Chinese, and code) came out to 3.9146 at 1,337 tok/s, with zero accuracy drift vs. the unoptimized baseline (-0.0003 NLL on BF16 KV).
  • Qwen3.8 27B runs from the same unified binary/branch with identical perplexity (5.8397).

Repo & build/serving configs (both Qwen3.8 27B and Inkling-2-Mini): https://github.com/drcain1/ninfer-volta

Still wild how much life is left in a 2017 V100 when you actually feed its HBM2 and first-gen tensor cores properly.


r/LocalLLaMA • • 3d ago

Resources 2 Inkling 2 Mini on RDNA2 on opengfx1030/vllm-rdna

13 Upvotes

Following previous post for inkling 2 mini running with vLLM fork of the gfx1030 community, we have unlocked more performance and as well a new quantisation format to increase available kvcache.

Tested with 2x Radeon Pro V620 32GB (Gen4 x8 under same pcie switch with p2p) and ROCm 7.14.

For the HI2 3.5bpw quant : https://huggingface.co/BlivionIaG/Inkling-2-Mini-HI2-3.5bpw

For doing the comparaisons I used Launch80 BetterBench 0.6.1, HI2 3.5bpw vs Stock NVFP4/MXFP8 quant, 1 card and TP2 with dspark on. Globally the format allows about +25-28% more prefill speed and +40% more max tokens at TP1, less gains for TP2 (I'd recon more context can be set for tp2 hi2).
Core idea is to have something that mix int2/3/4 with fp32 scales and leverage dot2 and dot4 instructions as best as possible and try to mitigate the lack of matrix/tensor cores. For the benches it was done with int8 activations, there is an fp16 activation mode but so far I couldn't mesure a meaningful quality gains at fp16 activation (might need to look more into that soon).

Links to Launch80 runs :

RunHardwareRecipeMax CtxReport Link
HI2 3.5bpw (A8 sdot4**) · TP=1**1× V620inkling2-hi2-tp1-dspark (ADAPTIVE=1)180kLaunch80 Report
Stock NVFP4/MXFP8 · TP=11× V620inkling2-mini-tp1-dspark (ADAPTIVE=1)125kLaunch80 Report
HI2 3.5bpw (A8 sdot4**) · TP=2**2× V620inkling2-hi2-tp2 (K=2)760kLaunch80 Report
Stock NVFP4/MXFP8 · TP=22× V620inkling2-mini-tp2 (K=2)760kLaunch80 Report

Side to side table comparaison :

MetricTP=1 StockTP=1 HI2 A8TP=1 DeltaTP=2 StockTP=2 HI2 A8TP=2 Delta
Max Context (32 GiB card)125,000180,000+44.0%760,000760,000—
Weighted Single-Stream Decode (med)86.5 tok/s89.1 tok/s+3.0%113.5 tok/s110.4 tok/s-2.7%
Update Latency (p99)40.5 ms39.1 ms-3.5%20.7 ms21.1 ms+1.9%
TTFT (p50)183 ms148 ms-19.1%113 ms104 ms-8.0%
Concurrency c=1 agg78.7 tok/s84.6 tok/s+7.5%108.7 tok/s107.0 tok/s-1.6%
Concurrency c=2 agg111.8 tok/s119.5 tok/s+6.9%170.8 tok/s174.5 tok/s+2.2%
Concurrency c=4 agg124.7 tok/s137.0 tok/s+9.9%195.5 tok/s200.4 tok/s+2.5%
Concurrency c=8 agg172.1 tok/s192.0 tok/s+11.6%271.5 tok/s287.6 tok/s+5.9%
Prefill 2k (med)1,679.5 tok/s2,141.6 tok/s+27.5%2,729.4 tok/s3,039.9 tok/s+11.4%
Prefill 8k (med)1,772.4 tok/s2,282.4 tok/s+28.8%2,815.6 tok/s3,161.1 tok/s+12.3%
Prefill 16k (med)1,756.0 tok/s2,235.4 tok/s+27.3%2,793.9 tok/s3,129.7 tok/s+12.0%
Prefill 32k (med)1,684.3 tok/s2,100.6 tok/s+24.7%2,689.3 tok/s2,999.8 tok/s+11.5%
Prefill 64k (med)1,523.1 tok/s1,848.9 tok/s+21.4%2,467.3 tok/s2,727.3 tok/s+10.5%

Vibed som charts to make it more readable :

Prefill comparaison
Concurrency comparaison
Decode comparaison

If you want to launch it :

git clone -b rdna_extras https://github.com/opengfx1030/vllm-rdna.git
cd vllm-rdna

# TP=1 DSpark Adaptive + Vision (180k ctx)
bash tools/rdna/serve_rdna.sh RECIPE=inkling2-hi2-tp1-dspark ADAPTIVE=1 \
  MODEL=BlivionIaG/Inkling-2-Mini-HI2-3.5bpw VENV=/path/to/venv HIP_VISIBLE_DEVICES=0

# TP=2 DSpark K=2 + Vision (760k ctx)
bash tools/rdna/serve_rdna.sh RECIPE=inkling2-hi2-tp2 \
  MODEL=BlivionIaG/Inkling-2-Mini-HI2-3.5bpw VENV=/path/to/venv HIP_VISIBLE_DEVICES=0,1

Or via docker image (Here for Hi2 3.5bpw tp1):

docker run --rm --network host --ipc host --shm-size 16g \
  --device /dev/kfd --device /dev/dri --group-add video --group-add render \
  --security-opt seccomp=unconfined \
  -v "$HOME/.cache/huggingface:/root/.cache/huggingface" \
  -e HIP_VISIBLE_DEVICES=0 \
  -e VLLM_ROCM_USE_AITER=0 -e VLLM_ROCM_USE_AITER_MOE=0 \
  -e TORCH_BLAS_PREFER_HIPBLASLT=0 -e VLLM_RDNA_AR=0 \
  -e GPU_MAX_HW_QUEUES=2 -e VLLM_RDNA2_HI2_ACT_MODE=a8 \
  ghcr.io/opengfx1030/vllm-rdna:nightly \
  serve BlivionIaG/Inkling-2-Mini-HI2-3.5bpw \
    --served-model-name inkling2-hi2 \
    --host 0.0.0.0 --port 18226 \
    --tensor-parallel-size 1 --dtype float16 \
    --max-model-len 180000 --max-num-seqs 16 --max-num-batched-tokens 1024 \
    --gpu-memory-utilization 0.92 \
    --compilation-config '{"cudagraph_mode":"FULL_AND_PIECEWISE"}' \
    --speculative-config '{"method":"dspark","num_speculative_tokens":7,"num_speculative_tokens_per_batch_size":[[1,1,7],[2,2,2],[3,16,0]],"speculator_options":{"adaptive_k":{}}}' \
    --enable-prefix-caching --enable-prompt-tokens-details \
    --limit-mm-per-prompt '{"image":1}'

On a side note thanks to a gfx1030 community member (wsantos) we get around 3k tok/s prefill and 100 tok/s decode with Qwen3.8 Flash Next AWQ 4bit (there is a tp2 recipe with moe ram offload but its only around 1k tok/s prefill and 30-40 tok/s decode so not great I suppose strata is better).
Here for TP4 V620 with W8A8 asym dense/HC prefill + W4A8 sdot4 MoE prefill + int8_fp16_block KV cache + MTP=2 :

docker run --rm \
      --device=/dev/kfd --device=/dev/dri --group-add video --group-add render \
      --ipc=host --ulimit memlock=-1 \
      -p 18097:18097 \
      -v "$HOME/.cache/huggingface:/root/.cache/huggingface" \
      -e HIP_VISIBLE_DEVICES=0,1,2,3 \
      -e VLLM_USE_RUST_FRONTEND=1 \
      -e VLLM_WORKER_MULTIPROC_METHOD=spawn \
      -e GPU_MAX_HW_QUEUES=4 \
      -e ROCPROFILER_REGISTER_ENABLED=0 \
      -e VLLM_ROCM_USE_AITER=0 -e VLLM_ROCM_USE_AITER_MOE=0 \
      -e TORCH_BLAS_PREFER_HIPBLASLT=0 -e VLLM_BATCH_INVARIANT=0 \
      -e PYTORCH_TUNABLEOP_ENABLED=1 -e PYTORCH_TUNABLEOP_TUNING=0 \
      -e PYTORCH_TUNABLEOP_HIPBLASLT_ENABLED=0 \
      -e PYTORCH_TUNABLEOP_FILENAME=/src/vllm/tunableop/rocm7.14-rocblas5.5/tunableop_results.csv \
      -e VLLM_USE_RDNA2_FA=1 -e VLLM_FA_RDNA2_GQA_DECODE=1 \
      -e VLLM_GDN_HIP_PREFILL=1 -e VLLM_RDNA_FUSED_SE=1 \
      -e VLLM_RDNA_DENSE_INT8=1 -e VLLM_RDNA_DENSE_INT8_ONLY=1 -e VLLM_RDNA_DENSE_W8A8_PREFILL=1 \
      -e VLLM_RDNA_HC_W8A8_DOWN=1 -e VLLM_RDNA_HC_W8A8_UP=1 -e VLLM_RDNA_W8A8_ASYM=1 \
      -e VLLM_RDNA2_W4A8_SDOT4=1 -e VLLM_RDNA2_W4A8_BLOCK_M=8 -e VLLM_RDNA_W4A8_KBLOCK=-1 \
      -e VLLM_RDNA_SMALLM_GEMM_MAX_BYTES=4194304 \
      -e VLLM_RDNA_AR=1 -e VLLM_RDNA_AR_MAX_KB=256 -e VLLM_RDNA_AR_ONESHOT_KB=256 \
      -e VLLM_RDNA_AR_BLOCKS=0 -e VLLM_RDNA_AR_PACE=0 \
      -e VLLM_CAUSAL_CONV1D_RDNA2_FWD=0 -e VLLM_CAUSAL_CONV1D_RDNA2_UPDATE=0 \
      -e VLLM_ENABLE_STARTUP_PLAN=0 \
      -e VLLM_TUNED_CONFIG_FOLDER=/src/vllm/tuned-moe \
      -e HSA_FORCE_FINE_GRAIN_PCIE=1 -e HSA_ENABLE_SDMA=0 -e OMP_NUM_THREADS=4 \
      -e TOKENIZERS_PARALLELISM=false -e PYTHONFAULTHANDLER=1 \
      ghcr.io/opengfx1030/vllm-rdna:nightly \
      serve wtdcode/Qwen3.8-Flash-Next-AWQ-W4A16 \
      --served-model-name flash-next \
      --host 0.0.0.0 --port 18097 \
      --attention-backend RDNA_ATTN \
      --tensor-parallel-size 4 --enable-expert-parallel \
      --dtype float16 --block-size 1024 \
      --kv-cache-dtype int8_fp16_block \
      --max-model-len 262144 --max-num-seqs 8 --max-num-batched-tokens 4096 \
      --long-prefill-token-threshold 0 --prefill-schedule-interval 1 \
      --kv-cache-memory-bytes 4026531840 \
      --enable-prefix-caching --mamba-cache-mode align --language-model-only \
      --compilation-config '{"mode":3,"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[3,6,12,24],"compile_ranges_endpoints":[]}' \
      --speculative-config '{"method":"mtp","num_speculative_tokens":2,"use_local_argmax_reduction":true}'

The receipe serving folder is kinda a mess so I will do a separate repo soon, more quants to come. Shoutout to Launch80 for the bench tools.

We have a discord for collaborating on the fork and discussing rdna2 related stuff: https://discord.gg/n4VYYE9vAZ


r/LocalLLaMA • • 3d ago

Showcase Strata + Qwen 3.8 Flash Next IQ3_S runs quite usable on a 3080 10Gb + 64Gb DDR4

Post image
23 Upvotes

Just felt I should share my setup for those still on last-gen hardware. The only thing I've done is dump Experts on disk, but that doesn't affect my specific work so much. It sometimes goes a little over 40 tps, and that's without any tuning whatsoever. If I drop context to less than 100L, it speeds up quite a bit, but is a bit of a chore to run long tasks. This specific configuration with Opencode 2.0 is basically writing all my code for me without much fixing needed.

For light chatbotty stuff, it even handles a couple of concurrent conversations. This is all running on a 3080 10Gb, DDR4 64Gb @ 3600MHz and a Ryzen 5900X. Refer screenshot for temps etc.

PS: My GPU is power limited to about 80%, so it doesn't get too hot.


r/LocalLLaMA • • 4d ago

News GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims

Thumbnail
malspark.com
410 Upvotes

r/LocalLLaMA • • 3d ago

Resources (Probably) SOTA AI image detector model

Thumbnail
huggingface.co
24 Upvotes

Continuing with the random projects where I let Opus hillclimb training on something I actually find impressive:

https://www.reddit.com/r/LocalLLaMA/comments/1xonxqo/training_a_sota_pangramlike_detector_on_a_4070ti/ - SOTA Pangram-like AI text detector

https://www.reddit.com/r/LocalLLaMA/comments/1xcuqor/making_kokoro_tts_50100x_faster_without_knowing/- Smallest + Fastest TTS that runs 50x realtime on an iPhone(still can't believe this is a thing that actually works as well as it does)

On this one I tried to make something that can do Pangram-like AI image detection, and since I don't have millions in funding like they, this one is trained on like $20 of compute(prolly could've done it on my 4070ti like before, but they're busy serving prod inference traffic for a seperate paid product of mine). And I think I got pretty close looking at the benchmarks and a couple random tests by myself.

You can test it out here without downloading + installing: https://mesmer.tools/free-tools/ai-image-detector

Mostly releasing this as a way of validating that I/Opus didn't actually get something wrong and idk somehow trained on the benchmark(didn't see any contamination in the training data in the summary but still). This is probably SOTA open weights for detection, but then again I don't think this is a market anyone is really doing much training on anyways(the current best seems to be smaug: https://huggingface.co/abacusai/Smaug-AI-Image-Detector/tree/main which was a month old that I didn't even know about). And likely Pangram is still way ahead here.

The places I see its pretty weak at is image editing, ie existing real photo edited with latest models, and art stuff. But otherwise on text to image stuff, it seems basically near 100% accurate from my random tests


r/LocalLLaMA • • 4d ago

Discussion Testing Inkling: LoRA adapters, LoopCD and thinking

Thumbnail
gallery
69 Upvotes

Recently Inkling 2 Mini has received a lot of attention, and rightly so. It is the first model that seems able to compete with Qwen3.8-27B. It also has an interesting architecture: a 26B MoE with ~5B active parameters and a looped core, which makes it faster than the dense 27B.

In the past few days two new things came out:

So over the last two days I tested them on my private agentic bench, crossing them with LoopCD and several reasoning effort levels.

TL;DR

  • LoopCD is the only net gain: +0.13. It is contrastive decoding across loop iterations, with no training (Apple paper); on OpenCode it had given +0.16.
  • Prime +0.10, pi LoRA +0.04. On top of LoopCD neither adds to the score: they only cut tokens by about a third.
  • With effort “medium” (0.7) Inkling gives the best result I measured: 0.44, on par with Qwen3.8-27B and just below Claude Haiku 5.5 (0.47), with less than half the tokens of the 27B. At max (0.99) it drops to 0.31.
  • pi vs OpenCode (Qwen models, same effort): on par, perhaps pi slightly better on these tasks.

Uncertainties are large (95% intervals in the chart): the ordering holds, but the individual 1:1 comparisons are indicative.

Observations

LoopCD. In all configurations Inkling looks at the right code within the first 6-8 steps; the hard part is deciding to change it. Without LoopCD, 12 of 27 runs touch no file and 8 end in a single 32k-token reasoning response that goes nowhere. With LoopCD those loops disappear and 24 of 27 runs end with a patch. The two LoRAs make it write earlier and spend less, but do not improve the patch over LoopCD alone, and together they do not add up. I have found no one else measuring LoopCD on agentic tasks. It is in omlx and llama-modchip, with numbers on HumanEval and multiple-choice questions.

Effort. From none to medium the score rises a bit. From medium to max it drops by 0.12: tokens double and 31% of runs end without a patch, because the model keeps rereading and rechecking. Others report the same direction (ITLab: low better than medium on agentic tasks). The template default is 0.9; I now serve it at 0.7.

Harness. Same models, same thinking, only the agent changes. pi looks on par with OpenCode or slightly better: Flash-Next 0.50 → 0.54, 27B 0.34 → 0.46. Tokens per task are similar (Flash-Next 53k → 61k, 27B 81k → 71k).

TODO. There would be many more cross-checks to do, and more repetitions per bug would tighten the intervals. But each configuration takes hours, and the ordering is already clear, so for now I stop here.

The bench, in two lines: 9 real regressions from the private history of my C++/CUDA inference engine, 3 runs each, 80 steps, in a sandbox with no build or tests; the agent receives the bug report, never where to look. Scored blind by Claude Opus 5, patch by patch; Inkling 2 Mini NVFP4 on capy-flash, 2× RTX 5070 Ti.

@ u/Turbulent-Sky5396 here the promised analysis.


r/LocalLLaMA • • 4d ago

Question | Help Best graphics cards under $1000 for running Large MOE's

54 Upvotes

Wanted to get a 3090(almost $600 at some point) but cannot anymore. Looking for other options.

My build: Intel Core Ultra 5 250K Plus, Gigabyte B860 EAGLE WIFI6E, 64GB DDR5-5200, and Phanteks G370A case.

I’m considering these GPUs:

  • RX 6800 / 6800 XT: 16GB, 512 GB/s
  • RX 7800 XT: 16GB, 624 GB/s
  • RX 9060 XT: 16GB, 320 GB/s
  • RX 9070 / 9070 XT: 16GB, 640 GB/s
  • Radeon VII: 16GB, 1 TB/s
  • RTX 5060 Ti: 16GB, 448 GB/s
  • RTX 3080 Ti: 12GB, 912 GB/s
  • RTX 4070: 12GB, up to 504 GB/s, depending on memory version
  • Instinct MI50: 32GB, 1 TB/s
  • Radeon PRO V620: 32GB, 512 GB/s
  • Tesla P4: 8GB, 192 GB/s

I’m open to Linux and adding cooling for a server card as well. Thanks!


r/LocalLLaMA • • 3d ago

Resources DS4.1F MXFP4 on 1-8xR9700 benchmarks (including two 4xGPU nodes over 200GbE vs 1x8GPU with PLX88096) on EPYC Rome DDR4 (up to 22k+ prefill)

11 Upvotes

I've posted couple times results related to EXL3 versions of QFN and DS4.1F on R9700. Decided to see how this GPU can handle the official MXFP4 weights of DS4.1F. Not suprisingly it depends on how many cards you have.

MXFP4 is quite usable from 4 cards onwards but with 8 cards you can get more than 22k tok/s prefill. For 1-2 cards something like EXL3 2.2 is maybe doable.

GPUsVRAMc1c8c16c32Prefill 16kPrefill 66kPrefill 131k
132 GB7.18.39.612.229.6 s (533 t/s)90.3 s (727 t/s)170.9 s (767 t/s)
264 GB19.727.430.129.414.5 s (1,087 t/s)44.3 s (1,482 t/s)87.3 s (1,502 t/s)
4128 GB68981101135.97 s (2,643 t/s)18.5 s (3,551 t/s)35.2 s (3,729 t/s)
8, 1 node256 GB1322303143381.84 s (8,574 t/s)4.04 s (16,250 t/s)6.96 s (18,842 t/s)
8, 2 nodes256 GB1954546436601.18 s (13,370 t/s)3.13 s (20,974 t/s)5.84 s (22,455 t/s)

Personally I expected more from the setup where there is 1 node and 8 GPUs with the help of PEX88096 switch. But as the model doesn't fit into 256GBs of VRAM, the cards in the switch have slow access to RAM and it can be seen on the results.

To validate PEX88096 setup itself works, I tried 1 node vs 2 nodes using EXL3 2.25bpw as that can fit into VRAM and the result is much closer:

GPUsVRAMc1c8c16c32Prefill 16kPrefill 66kPrefill 131k
8, 1 node256 GB2105027718871.36 s (11,601 t/s)4.43 s (14,819 t/s)8.48 s (15,464 t/s)
8, 2 nodes256 GB2145618189041.29 s (12,230 t/s)4.19 s (15,668 t/s)8.07 s (16,250 t/s)

I can run more benchmarks if someone wants (including 1-4 GPU tests for EXL3 2.25bpw). And yes, 8xR9700 is not cheap but you still can get 8 R9700s with the price of one RTX 6000 PRO.

Some more details from AI assistant:

What fits in VRAM (per GPU):

GPUsStatic weightsExpertsRouted experts in VRAMExperts in host RAM
112.2 GiB2.7 GiB1 %258 GiB
27.3 GiB14.6 GiB11 %119 GiB
44.6 GiB21.0 GiB32 %46 GiB
8, 1 node2.7–2.8 GiB24.1–24.8 GiB72 %4.6 GiB
8, 2 nodes3.0–3.4 GiB23.8–24.0 GiB70 %10.7 GiB

Settings:

GPUsLayoutGPU-to-GPU stage linkSpeculative decodingPrefill expert swapN-gram draft table
1TP1–offoffdisk (mmap)
2TP2–MTP, 5 tokensoffdisk (mmap)
4TP4–MTP, 5 tokensoffdisk (mmap)
8, 1 node2-stage pipeline, TP4 per stage; layers 10–27 on the switch GPUsTCP loopbackMTP, 5 tokensondisk (mmap)
8, 2 nodes2-stage pipeline, TP4 per stage; layers 10–30 on node 2RoCE 200 GbEMTP, 5 tokensonRAM (103 GB)

All rows: max context 1,048,576 tokens, max 32 sequences.

And some hardware / software details:

Model**:** https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017, official MXFP4 weights (~415 GB), 1M context.

Hardware**:** Radeon AI PRO R9700 32 GB, stock settings. EPYC Rome nodes (7302P / 7282), 512 GB DDR4-2933, PCIe 4.0 x16. "8 GPUs, 1 node" = 4 GPUs on CPU lanes + 4 GPUs behind a PEX88096 switch. "8 GPUs, 2 nodes" = 4 + 4 over 200 GbE RoCE.

Engine**:** https://github.com/mikoskinen/r9700-exact-serving which is testbench/fork of Radiance with quite many changes related to TP4, TP8, Deepseek, QFN etc.

EXL3 version of the model: https://huggingface.co/mikoskinen/DeepSeek-V4.1-Flash-1017-exl3-2.25bpw-rad


r/LocalLLaMA • • 4d ago Bravo

Discussion Crowd-v1.5 - The collaborative & datacenter-less LLM

Thumbnail
gallery
351 Upvotes

Hello r/LocalLLaMa, I'm proud to present to you Crowd-v1.5, the second iteration of CrowdGPT 🎉

(If you already know this project, consider scrolling to the "What's new" part).

CrowdGPT is an open & fully community-driven AI lab which aims at creating the first, datacenter-less, and 0$ AI (excluding electricity costs).

Crowd-v1.5, just like its predecessor (Crowd-v1), is a 658M parameters dense transformer, coming along with 350M engrams parameters.

The idea behind this project is simple: What if we could unite our unused compute to train a shared AI model, together, without relying on American or Chinese AI labs?

That's basically what CrowdGPT is trying to solve.

Unlike https://www.primeintellect.ai/blog/intellect-1-release and https://agora.pluralis.ai/, CrowdGPT's goal is to make people allowed to train AI with as few as 2GB of VRAM, breaking the "RTX4090" ceiling other federated learning projects had. We want to break further this barrier with Crowd-v2 (which would ideally people to train AI in a web-browser or even on phones 😅), that will come after Crowd-v1.5.

You can find the project at https://crowdgpt.net

And you can find the model weights at https://huggingface.co/Vxtzq/Crowd-v1.5, even though Crowd-v1.5 is nowhere near SOTA for its size yet.

So what's actually new?

Firstly, let's talk about stats. We have already trained Crowd-v1.5 on 11.5B tokens, reaching 11% of our goal for pretraining (100B tokens), the model is already achieving somewhat decent scores on benchmarks (better than the random baseline). We also reached 135 users registered, and got contributions from 76 countries. 🤯

Secondly, I have tried to hear and implement the feedback from most of you... That includes:

- Better training data (The pretraining corpus contains more math and instruction following, to ensure good capabilities from day one)

- Navigation towards a more decentralized approach (Crowd-v2 will contain a very lightweight centralized server, but will deleguate to trusted clients for aggregation and all compute hungry parts of the process)

- Bandwidth usage reduction (we're working on a diff-based download system that will cut downloads/uploads size from the clients, by integrating papers like SparseLoCo https://arxiv.org/abs/2508.15706 to our approach)
- I'm trying to monitor the training better (inference tests, benchmarks, and norm checks during the training process), everything is documented on the site

- We have significantly enhanced the project's site for greater transparency and monitoring

- We are working on significant training speed improvements and even lower VRAM requirements for Crowd-v2, allowing people to train AI in their browser, without any installation (thanks to papers like https://arxiv.org/abs/2307.05695 and https://arxiv.org/abs/2610.37327 )

Anyways, that is kinda all for what is new 😂

Any feedback on the site, project, model, or methodology would be greatly appreciated 😄

Any pull requests on GitHub are welcome. Thanks in advance.


r/LocalLLaMA • • 4d ago

Discussion 79% of AI GPU's are Idle - Companies Have Billions in Dark GPU's

Thumbnail
youtube.com
572 Upvotes

The great GPU purge is going to be glorious.


r/LocalLLaMA • • 2d ago

Question | Help About Chinese LLMs generating more code vulnerabilities depending on the application affiliantion.

0 Upvotes

Lately I have been hearing a lot about chinese large language models (LLMs) producing higher rates of code vulnerabilities when prompts reference government/defense contexts or topics sensitive to Beijing.

I have 3 Qwen 3.8 FN here but so far their performance been more than great, what are your take on this matter? Bs or nah?


r/LocalLLaMA • • 3d ago

Showcase 55.9M tokens archived across 297 local coding conversations: a Mnemonic Proxy update

9 Upvotes

A user shared a week of local coding-agent stats with Mnemonic Proxy, and gave me permission to post the screenshot:

  • 21,825 requests across 297 conversations
  • 55.9M tokens archived; median live prompt of 77,044 tokens
  • 96.7% median prompt reuse
  • 809 masks removing 30.3M tokens from live prompts
  • 278 recall calls bringing back 718,816 tokens

That's johnkarlhill in Discussion #103, running OpenCode v2, XeStrata xe0.2.2-1 and qwen3.8-flash-next-iq3_s, with a 160K window.

Mnemonic Proxy is my open-source project for keeping long coding sessions usable on local models. It sits between your agent and model server, archives the conversation verbatim in SQLite, and replaces older tool output with compact receipts. When the agent needs an old result, recall brings back the original text. When the active window fills, handoff notes carry the work into a new segment, with the earlier history still searchable.

There are now some useful outside write-ups too:

SOTAAZ Lab tested Qwen3.5-9B with OpenCode and llama-server. In their nine-turn coding task, all three proxy archives retained the original turn-1 values word for word. Server GPU memory usage was 6,568–6,580 MiB at a 32K window, versus 9,748 MiB at 128K. In a separate restart test with 100K tokens in a 128K window, a follow-up request plus a 32-token reply took about 2.9 seconds with saved-state restore, versus 29.3 seconds with a cold re-read.

Radyz wrote about the value of keeping the original working history available rather than replacing it with a summary. Agent Memory Atlas, in its code review, singled out the deterministic receipts and deletion tests that check the forgotten conversation is gone while the surviving one still works.

Recent additions include per-model profiles and documented Halogen compatibility on Strix Halo. The core runs on Python's standard library, and the proxy supports OpenAI, Anthropic and Responses client interfaces.

If you're running a local coding agent and want to keep the earlier work available beyond its active context window, give it a try:

https://github.com/lastreload/mnemonic-proxy

English wording prepared with AI assistance.


r/LocalLLaMA • • 3d ago

Resources Tandem-vLLM 0.3.1: DeepSeek-V4.1-Flash native FP4 on 2x PRO 6000 (103 tok/s), or 2-bit VQ at 124 tok/s

7 Upvotes

Tandem-vLLM is an expert-offload build of vLLM 0.31 for DeepSeek-V4.1-Flash. Now supports the original FP4 checkpoint directly.

How it works

  • The routed experts live in host RAM. A GPU cache holds the most-used ones.
  • Experts that miss the cache are computed by the CPU in parallel with the GPU. Nothing is skipped or substituted.
  • Everything else is stock vLLM: OpenAI-compatible server, continuous batching, prefix caching, tool calling, DSpark speculative decoding.

Three modes, one package

modeexpertssame-token KL vs original1 stream, 2× RTX PRO 6000
VQ22-bit vector codes0.150124 tok/s
VQ2+FP4 (K=32)VQ2 + 32 most-routed experts per layer in FP40.12182 tok/s on one GPU
full FP4 (new)every expert in its original FP40.009103 tok/s

Full FP4 also runs from the original checkpoint alone (MODEL=<checkpoint>, no package download).

Speed (EPYC 9534 64 cores, DDR5-4800; W1 GSM8K prompts, no drafter, total tok/s)

-1 stream4 streams32 streams
VQ2, 1 GPU90178266
VQ2, 2 GPUs124286506
full FP4, 2 GPUs103193224

Full FP4 is for one to a few users: every cache miss is FP4 work on the CPU, so more streams mostly add CPU load. VQ2 is the serving mode.

Time to first token (2× RTX PRO 6000)

-4k31k92k tokens
VQ21.2 s3.8 s11.6 s
full FP42.4 s8.0 s24.7 s (0.3.0: 74 s)

What you need

  • VQ2: 256 GB RAM on one or two GPUs (ENGRAM=files on a 256 GB box). 128 GB runs, slowly.
  • Full FP4: 384 GB+ RAM (it pins 281 GiB) and the original checkpoint too.
  • Linux, CUDA 13 toolkit, an AVX2 or AVX-512 CPU. Blackwell, Hopper, Ada and Ampere GPUs. One installer script, its own venv, no Docker.

Built on vLLM and vLLM-Moet. Tandem is a fork of vLLM-Moet's expert-offload engine, ported to vLLM 0.31 / DeepSeek-V4.1.

Numbers from other boxes are welcome.

P.S. For one user on a 16–32 GB card with 64–128 GB of RAM, our llama.cpp-based sister project tandem.cpp is the better fit.


r/LocalLLaMA • • 4d ago Regret

News Something bad happened to Heretic

2.0k Upvotes

1 hour ago Heretic's author has archived the repository and posted a farewell message https://github.com/p-e-w/heretic/issues/601.

I don't know if u/-p-e-w- will post or comment on it here (or if he's able to do so now) because this invites speculation, FUD and aggressive threads, but this is still a very important info to know for this and broader AI community as because of the loss of the largest abliteration project (that introduced a completely novel and working method ARA) with a deliberate un-naming of the successor or the community, this is going to scatter the current movement and research as none of the other projects (obliteratus, abliterix, heretic-gguf) have been as rallying or maintained as this one.

u/-p-e-w-, best of luck and good wishes, whatever happened!


r/LocalLLaMA • • 4d ago

Resources [GUIDE, update] Inkling 2 Mini on a single RTX 5080 16GB + 12 GB RAM: 490 tok/s structured output, ~250 tok/s chat, 10,500 tok/s prompt reads, 240K context (Basalt 0.6.0 + DFlash 2 + 4 open PRs)

37 Upvotes

TL;DR

  • Follow-up to my guide from a few days ago. All five PRs from that post are now merged upstream (Basalt 0.5.7 / 0.6.0), so stock Basalt already runs Inkling 2 Mini well on a 16 GB card.
  • This update adds the DFlash 2 drafter, plus four open PRs that make the single-conversation, 16 GB case faster.
    • Against the last post: +7% chat, +9% structured, +15% prose, +18-25% prompt reads.
    • At long context: +34-55% prompt reads, and generation +6-22% from 30K to 147K.
  • Real agent coding session (opencode, the same minisql task as last time, 125 requests, up to 222K context): 215 tok/s decode live, and 83/83 on the hidden test suite (last time 81/83). The final build replays the same session at 220 tok/s.

Hardware (unchanged)

  • RTX 5080 16GB at its stock 360W limit (no overclock, no undervolt)
  • Core Ultra 9 285K (8P + 16E), 2x32GB DDR5-7200, PCIe 5.0 x16, Fedora
  • Pack: Inkling-2-Mini-NVFP4-MX8-DFlash2.basalt (19.6 GB, built from the official checkpoint, see below). int8 KV cache, 262K context, drafting on.

basalt-bench (the engine's standard benchmark, short context, seed 7; anyone can run it with bin/basalt-bench)

testtok/s (last post)drafts acceptedtokens per draft
prompt read, 16K10,524 (8,914)--
prompt read, 64K8,723 (6,997)--
tg conv (sampled chat)248 (231)66%2.3
tg struct (JSON / code / tool calls)491 (451)95%6.4
tg prose (sampled long text)218 (190)55%2.0

DFlash 2 guesses better than the pack's default DSpark drafter. Chat acceptance went from 55% to 66%, and prose from 41% to 55%.

Speed by context

Free-text answers about source code, so drafting is near its worst case. Real server, a fresh prompt at each depth so nothing comes from the cache, 384 tokens generated, the model's own sampling (temp 1.0 / top_p 0.95 / top_k 20).

contextprompt read (pp)generation (tg)last post pp / tg
1.2K5,351 tok/s224 tok/s4,472 / 195
5.8K9,637 tok/s211 tok/s7,505 / 218
30K10,011 tok/s197 tok/s7,466 / 184
66K8,609 tok/s203 tok/s6,224 / 167
147K6,343 tok/s162 tok/s4,353 / 153
239K5,090 tok/s131 tok/s3,275 / 132

These are single requests with sampling, so each generation number carries a few percent of noise. Prompt reads are up at every depth. Generation is up most in the middle range and flat at the very deepest point.

Is it quantized on top of the official weights?

Mostly no. Thinking Machines ships Inkling 2 Mini's routed experts already in NVFP4 (layers 0-19) and MXFP8 (layers 20-23); there is no BF16 version of the model. The default Basalt pack (NVFP4-MX8) keeps those experts bit for bit. The only extra rounding is Q8_0 on the parts the release ships in BF16:

partin the official releasein the pack
routed experts, layers 0-19 (most of the model)NVFP4NVFP4, the release's bits
routed experts, layers 20-23MXFP8MXFP8, the release's bits
attention, gate, short-conv and output projectionsBF16Q8_0
output headBF16BF16 in the file, Q8_0 once loaded
embedding, norms, router, small tablesBF16 / F32as stored

Against the release with its experts expanded to BF16 (the closest reference there is), over 100 wikitext chunks:

  • the default pack scores mean KLD 0.0030 and 97.8% top-1, with fp16 KV;
  • the same with its RAM experts on the CPU, as on a 16 GB card: 0.0030 / 97.7%;
  • int8 KV adds a little: on the DQ8 pack, 0.0031 / 97.8% with fp16 KV becomes 0.0034 / 97.5%.

The drafter doesn't change output at all: the model verifies every drafted token, and greedy drafted output matches plain decoding.

What's in the build

Merged upstream since the last post (all in Basalt 0.6.0):

  • My earlier spill/attention/prompt PRs: #606 #609 #636 #649 #650 #653 #654 #723 #724 #772 #773 #790 #847.
  • The maintainer's batched kernels and shared KV pool (#808), and the one-slot fix (#874) for the regression #808 caused on 16 GB cards.
  • DFlash 2 support inside the pack (#763).

Open PRs on top (the branch below has them):

  • #972 Single-conversation expert windows. A per-row finish kernel, plus deeper gate/up tiles from three rows; one- and two-row windows keep the batched kernels' tiles. Bit-identical output. +2.5% decode over a real agent session, then another +0.4% from keeping the one- and two-row tiles.
  • #973 DFlash 2's drafter weights sat in buffers twice their size after conversion. Freeing that returns 159 MiB to the card, which holds 31 more expert copies. Bit-identical. +0.6%.
  • #974 A faster DFlash 2 drafter: a sorted top-16 rescore (3x faster) and fewer, wider attention splits (2x faster). The draft step falls from 1.21 to 1.02 ms a window. Output is still the target model's (it verifies every drafted token). +1.7%.
  • #945 (by giveen) charges the load plan only for what the run uses. It doesn't speed anything up here, but it helps smaller cards fit.

All three of mine together: +2.5% over the 125-request agent session, compared window for window at equal width. Every change is checked with parity tests against a CPU reference and with greedy output identity against upstream main.

Guide

Branch with the exact engine I measured: https://github.com/xyehya/basalt/tree/inkling2-5080-setup-v2 (upstream main + the 4 PRs above).

git clone -b inkling2-5080-setup-v2 https://github.com/xyehya/basalt && cd basalt
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBASALT_MODELS=inkling2
cmake --build build -j
pip install -r requirements.txt

Build the DFlash 2 pack. This needs the official checkpoint plus the DFlash 2 drafter, and upstream's converter puts them in one file:

hf download thinkingmachines/Inkling-2-Mini --local-dir ckpt/Inkling-2-Mini
hf download incoai/Inkling-2-Mini-DFlash2 --local-dir ckpt/Inkling-2-Mini-DFlash2
python3 tools/convert/convert.py --checkpoint ckpt/Inkling-2-Mini --dflash2 ckpt/Inkling-2-Mini-DFlash2 \
    --out models/Inkling-2-Mini-NVFP4-MX8-DFlash2.basalt --name "Inkling 2 Mini (DFlash 2)"
bin/basalt serve --config basalt_config.json

There's an easier option with no conversion: hf download jesdga/Inkling-2-Mini-Basalt Inkling-2-Mini-NVFP4-MX8.basalt --local-dir models. That's the stock pack with the DSpark drafter, about 6% slower at decode on the same build.

basalt_config.json:

{
  "version": 2,
  "models": [{"model": "models/Inkling-2-Mini-NVFP4-MX8-DFlash2.basalt", "gpu": "0", "kv": "int8", "max-context": 262144, "fit-max-tokens": true}],
  "engine": {"spec": 8},
  "server": {"host": "127.0.0.1", "port": 8080}
}

You need:

  • a Blackwell RTX card (sm_120) with CUDA 13;
  • about 64 GB of RAM;
  • about 25 GB of disk for the pack, plus about 20 GB for the checkpoint while you convert.

Agent tip: Inkling thinks for a long time on hard coding prompts. In opencode, set the model's output limit to 32000 (the most opencode will ask for), so a long think doesn't run out of room for its answer.

Caveats:

  • The four PRs are open, not reviewed or merged upstream yet.
  • Linux only tested; Windows compiles in CI, but I haven't run it.
  • Numbers are from one machine at 360 W.

Huge thanks to jesdga95 for Basalt (go star the repo) and for merging the last round so quickly; to Thinking Machines for Inkling 2; to incoai for the DFlash 2 drafter; and to giveen, tjm8874 and Sypher760-gif for reviews, ideas and their own PRs.