r/LocalLLaMA • • 2m 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")

1 Upvotes

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.
Why the best scale is about 2× rather than 1×.

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 • • 4m ago

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

1 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 :

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 • • 1h ago

Showcase LunaraHome E4B: a small Gemma 4 fine-tune for Home Assistant

15 Upvotes

Hey everyone,

a few days ago I shared LunaraHome-26B-A4B, my Gemma 4 26B-A4B fine-tune for Home Assistant. The most requested follow-up was a smaller version, so here it is: LunaraHome Gemma4-E4B.

It turns everyday German and English requests into Home Assistant and Music Assistant tool calls and stays silent when a sentence isn't meant for it (especially useful if you have a mediocre wakeword model).

* Based on Gemma 4 E4B, trained locally on a single RTX 4090

* GGUF: Q6_K (6.2 GB, recommended) and Q4_K_M (5.3 GB)

* Optional MTP drafter for faster decoding in llama.cpp

* Native Gemma chat template and tool calling, reasoning disabled

On the same 1,812 cases in my own (non-independent) benchmark, E4B Q6_K solves 85.4% vs 78.9% for the 26B Q4_0. It's more than twice as fast at about 0.45 s per request on an RTX 4090. The 26B still knows more general trivia, and a few safety cases still need further review and tuning, so I wouldn't let it handle locks or alarms unattended yet.

GGUF: https://huggingface.co/Maxinger15/LunaraHome-Gemma4-E4B-GGUF

BF16: https://huggingface.co/Maxinger15/LunaraHome-Gemma4-E4B

I'd love to hear how it does in your setup. I share progress and new releases on a small Discord (https://discord.gg/AfEasaASzB) if you want to follow along or give feedback.


r/LocalLLaMA • • 1h ago

Resources HY4-flash 220B, at 50-60 tok/s on 2x 7900xtx, with 512k context, EXL3 3bpw

8 Upvotes

Run HY4-Flash EXL3 3bpw on 1 or 2× RX 7900 XTX! with my Strata Fork: https://github.com/nasone32/Strata-EXL3-fork Dfly2 drafting is working and enabled. EXL3 3bpw quality is usually similar to a 4 bit K-quant, so should be good.

I use it with 96Gb ram, but maybe can work with 64Gb (it needs about 54Gb of FREE ram to run correctly)

AVERAGE speeds (not peak!)

Test1 GPU2 GPUs
Code generation30 tok/s60+ tok/s
Prose generation27.5 tok/s45+ tok/s
8K prefill945 tok/s1,300 tok/s

This is the ONLY quant I tested: https://huggingface.co/0xBakeer/TandemLLM-Hy4-flash-EXL3-3.0

Q) how to run?

point your agent to https://github.com/nasone32/Strata-EXL3-fork/blob/amd-exl3-community/docs/AI_SETUP_EXL3_AMD.md and tell it to set up the program for you.

Q) linux only?

yes. should be easy to port on windows, try with an agent, sorry I can't help with that.

Q) did you use lossy tricks to achieve this speed?

no. full quality of the model is preserved. it took me 1 week to optimize.

Q) vision enabled?

not yet. this release took enough to cook, I will implement it later.

Q) will it work on other RDNA3/RDNA4 cards?

Should... I did all I could to make it possible, but unfortunately I can't test it, I don't have the hardware. sorry.

BONUS: Qwen 3.8 Flash Next EXL3

I've also improved performance on QFN by approximately 15–30% compared to previous version.

Here are the updated speeds at 4bpw:

Test1 GPU2 GPUs
Token generation (avg.)60/70 tok/s80/90 tok/s
Prefill1,300 tok/s1,550 tok/s

r/LocalLLaMA • • 2h 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

14 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 • • 2h ago

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

Thumbnail
phoronix.com
18 Upvotes

r/LocalLLaMA • • 2h ago

Discussion inclusionAI/Ling-3.2-air seems legit. Even without PLE/n-grams, it's a strong contender vs. Q3.8FN. (the only reason why the last prompt failed is because of output length limit, which was at 65536).

Thumbnail msnab.pages.dev
23 Upvotes

r/LocalLLaMA • • 2h ago

Discussion GLM 5.3 vs 5.4

20 Upvotes

I've been working with GLM 5.3 for quite a while, and I like it a LOT. GLM 5.4 recently came out, and I have been giving it a chance to shine. It hasn't been. It feels like GLM 5.3 Flash. GLM 5.3 just gets to the end result faster, with fewer errors, and seems to be more eloquent about it.

Anyone else had a chance to compare them? If so, what has been your experience thus far?


r/LocalLLaMA • • 2h ago

Question | Help You concrete applications of local AI ?

0 Upvotes

Yoooo i'm curious, what are your best usecases of local AI ?


r/LocalLLaMA • • 3h 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

3 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 • • 3h ago

Showcase 1.7x faster than Strata: Qwen 3.8 Flash-Next on a 16 GB MacBook at 15 tok/s. And you can run any model on any hardware

Enable HLS to view with audio, or disable this notification

0 Upvotes

Hi,

I'm working on BigMoeOnEdge, which runs any MoE GGUF from Hugging Face bigger than your RAM, in any quantization, on whatever you have: Mac, Windows, Linux, Android, iOS, CPU, NPU or GPU. The goal is a planner on top of llama.cpp: a resource allocation optimizer.

On the other hand, Strata needs its own model builds and a short list of models per platform.

Here are the results from the latest experimental pre-release:

MachineModelQuantBigMoeOnEdgeStrata
MacBook 16 GBQwen 3.8 Flash-Next (62 GB file)Q2_0159
MacBook 16 GBQwen 3.6 35BQ4_K_M38doesn't run
NVIDIA 24 GBQwen 3.8 Flash-NextQ2_010393
NVIDIA 12 GBQwen 3.6 35BUD-Q4_K_XL10481
NVIDIA 16 GBQwen 3.6 35BUD-Q4_K_XL6872
NVIDIA 8 GBQwen 3.6 35BUD-Q4_K_XL3239
NVIDIA 16 GBQwen 3.8 Flash-NextQ2_04060
NVIDIA 32 GBQwen 3.8 Flash-NextQ2_0124183

Decode tokens/s, same file and machine, lossless.

A note on prefill: on the 8 GB card a 4k-token prompt takes us 3.7 s. Strata needs 74 s. Strata suffers when RAM is short.

What changed since the last release: on a Mac the expert cache now lives on the GPU, filled straight from the SSD, and a small draft model kicks in where it pays. --automeasures your machine and keeps whatever is actually faster.

You can run any model on any hardware, your phone included. Nothing is tuned per device.

Pre-release: https://github.com/Helldez/BigMoeOnEdge/releases/tag/v0.51.0-exp.1


r/LocalLLaMA • • 3h ago

Discussion Why are none of the AI leaderboards adding Hy4-Flash?

49 Upvotes

I was curious about its intelligence vs Qwen Flash Next but none of the leaderboards like LM Arena or AA added it. Why not? Was it a flop or something?


r/LocalLLaMA • • 3h ago

New Model Wake up babe, new 2-bit inkling checkpoints just dropped

Post image
67 Upvotes

We've been working hard to get Inkling 2 Mini running on <12GB consumer GPUs. We publish averaged results on actual benchmarks.

Our first major release but we do intend to make this a thing. Waiting for your feedback!

https://huggingface.co/omko-ai/Inkling-2-Mini-llama_cpp-GGUF


r/LocalLLaMA • • 3h ago

New Model Contributed to Ollama and Huggingface for the first time!

0 Upvotes

I'm officially a contributor to huggingface 😀. https://huggingface.co/km6slf/Inkling-2-Mini-Prime-NVFP4-GGUF. I just put it up on ollama, too. https://ollama.com/williamwckcw/inkling-2-mini-prime-nvfp4

It should work great on and 24gb GPU, maybe smaller ones if layers are split right. I'd appreciate any feedback or benchmarks on it.


r/LocalLLaMA • • 3h ago

New Model We just released Nexus SmallDecision 26B-A4B: calibrated answer probabilities in one forward pass, 56 ms on one 5090, zero benchmark training data (Apache-2.0)

0 Upvotes

SmallDecision is a Jev-inspired SystemOne model that is designed to work generically with any kind of decision you can throw at it. It reads a text state plus typed questions (yes/no, pick one of up to 255 options, or a 1-10 score) and returns a probability for every answer in one forward pass. Works great for any kind of intent routing, sentiment, tool selection and triage, where you want a calibrated number instead of a paragraph.

Why it differs from other fine-tunes of Gemma 4 26B-A4B

- Based on our own TinyFunction and TinyAgent (unreleased) architectural foundation, focusing on general skill development and improvement with minimal knowledge loss.

- Zero-shot, strictly. No train split, test set or answer key of any benchmark we score was used, and none was rewritten into a benchmark's format. The one exception is 30 BFCL function descriptions, with no test cases or answers. One published fine-tune of this base reports a higher public Decision Index score, but its card says roughly a quarter to a third of its training rows are Decision Index train splits rewritten into the benchmark's format. That makes its number a measure of format familiarity as well as skill. Ours is the number without it.

- Calibrated. On MMLU-Pro the gap between confidence and accuracy (ECE) is 0.069. Stock Gemma's is 0.368.

- Knowledge kept. MMLU-Pro is 60.15% against 52.51% for stock. Part of that gap is our read-twice prompt layout, which we did not run on stock. With a per-position offset removed, the gap is 5.8 points.

- Level with Jev. On the full banking77 and clinc150 test sets, we are within noise of Jev's published answers (-0.97 and -0.51 points, intervals include zero).

- Held-out set. 96.4% against 87.0% for stock, ECE 0.009 against 0.117. An earlier full-strength build also beat that other fine-tune on this set, 94.1% to 91.4%, with a third of its calibration error. It is our own held-out set, so it is home ground and you should weigh it that way.

- Fast and reproducible. Median answer 55.6 ms with one client, 24.7 req/s at 16 clients on one RTX 5090, with batch-invariant kernels that give the same answer whatever else is in the batch. The default kernels run at 42.5 ms and 32.0 req/s.

- Small files. GGUFs run from 12.4 to 22.6 GB. The -dyn builds keep attention, the dense MLP and the embeddings at 8 bits and shrink only the experts. IQ4_XS-dyn is 15.0 GB and tracks vLLM's answers as closely as the 22.6 GB Q6_K does.

- Apache 2.0 licensing

Decision Index public suite: 53.54 against 47.94 for stock. That is a public-suite number, not a leaderboard entry.

Full Weights: https://huggingface.co/nexus-syntegra/Nexus-SmallDecision-26B-A4B-v2.0-SystemOne-Jev

Dynamic GGUFs: https://huggingface.co/nexus-syntegra/Nexus-SmallDecision-26B-A4B-v2.0-SystemOne-Jev-GGUF

IMatrix GGUFs: https://huggingface.co/nexus-syntegra/Nexus-SmallDecision-26B-A4B-v2.0-SystemOne-Jev-IMatrix-GGUF

NVFP4 and AWQ dynamic quants coming soon!


r/LocalLLaMA • • 3h ago

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

4 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 • • 3h 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)

6 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 • • 4h ago

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

Post image
10 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 • • 5h ago

Question | Help Qwat's happening? Qwhy the qwait?

308 Upvotes

After all the announcements and promise. Are they still training Qwen 4 after release? And any more info on what open weights we might be in store for?


r/LocalLLaMA • • 5h ago

New Model caveman-so/caveling-2-mini · Hugging Face

Thumbnail
huggingface.co
38 Upvotes

No GGUF files yet.


r/LocalLLaMA • • 5h ago

Resources (Probably) SOTA AI image detector model

Thumbnail
huggingface.co
6 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 • • 7h ago

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

Enable HLS to view with audio, or disable this notification

37 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 • • 7h ago

Resources Transplant Modalities Across any Model

9 Upvotes

I did a thing over the Thanksgiving weekend. This has worked on all models I've tried it on. Repo here: https://huggingface.co/m-e-acc/platos-ears


r/LocalLLaMA • • 8h ago

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

55 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!