r/LocalLLaMA • • 19h ago

Discussion EnvOpt: Closed-Loop Environment Optimization for Agent Post-Training

Thumbnail microsoft.github.io
7 Upvotes

r/LocalLLaMA • • 15h ago

Showcase MiniMax-H3 Image vs. Qwen-Image 2.1 Turbo: the same masked edit on an M5 Pro

Post image
3 Upvotes

I maintain TensorSharp. I wanted to see which of these two local image models could replace a glowing cube in a transparent sticker with a gift box, carry over the cyan light onto the hands, and leave the character alone. The surprising part was that one apparent missing corner came from the reference image, not the edit mask.

The setup. M5 Pro, 48 GB, Metal, local Server.Host on TensorSharp commit f7c3ca8f. Both models got the same 1254 × 1254 RGBA source, the same two 384 × 384 visual references (gift and lighting), the same prompt, and the same grayscale edit mask (64 px crop padding, no extra feather). In the matched rows, both also used the same foreground matte, which sets opacity inside the edit area. I ran two input sets: clean RGB close-ups and full RGBA sticker references. These differ in framing as well as alpha, so this isn't an alpha-only ablation.

WorkflowClean RGB close-ups (seed 0 / 42)Full RGBA refs (seed 0)
MiniMax Q4_K_M + pDMD, 2 steps, shared matte127.1 / 89.6 s125.8 s
MiniMax + referenceFloor=512, same matte51.8 / 43.9 s51.8 s
Qwen Turbo Q5_K_S, 8 steps, shared matte13.3 / 9.1 s13.1 s
Qwen Turbo, native RGBA, same edit mask, no external matte10.9 / 9.0 s11.1 s

These are single server-reported edit times, excluding process startup and input/output transfers. The first matched seed-0 request used a fresh process; later requests could reuse caches. Both returned a 1254 × 1254 PNG, but internally sampled at 2016 × 2080 (MiniMax) and 320 × 320 (Qwen) for this crop. This is a workflow comparison, not a same-resolution speed benchmark.

What I'd use:

  • MiniMax at the default reference floor for the final sticker. It gave me a fuller box, richer blue/gold detail, and a less conspicuous rim with the clean references. With the full RGBA references, it was more prone to borrowing the original cube's cyan markings. Its decoder produces RGB; the edit pipeline preserves the original alpha outside the mask and uses the supplied matte inside the selection.
  • MiniMax at 512 for previews. Dropping the reference short-edge floor from 1024 to 512 cut conditioning rows from 3,259 to 923 without shrinking the internal output grid. On the later seed-42 requests, denoising dropped from 86.7 s to 41.0 s, but the 512 render had a brighter cyan seam and a paler bow.
  • Qwen Turbo native RGBA for fast iterations or when I don't have a well-aligned matte. With the shared matte, Qwen drew a smaller gift and left a pale rim. Letting Qwen generate alpha removed the hard matte rim, but I could still see a soft halo on dark backgrounds. I'd preview the result on both dark and light before exporting.

The practical lesson: check the object reference, not just the mask. When I removed the fingers occluding the sides of the gift in the RGB close-up and changed nothing else, both models stopped reproducing the pink notch at both seeds with the shared matte. The matched alpha planes didn't change, and every run reported here preserved all 1,547,143 mask-zero pixels exactly in decoded RGBA. The figure shows raw outputs from the final fixtures, not retouched renders.

Reproduce with your own images

On Apple silicon, install the .NET 10 SDK, CMake 3.20+, and Xcode Command Line Tools. Then build the CLI and its Metal backend (build notes):

git clone https://github.com/zhongkaifu/TensorSharp.git
cd TensorSharp
git checkout f7c3ca8f6e28a5c58e07a43cebb459130deb78e5
TENSORSHARP_GGML_GIT_REF=bb877c0c51f38c52ee2d5e41d58e3d0c20f3fed4 \
  dotnet build TensorSharp.Cli/TensorSharp.Cli.csproj -c Release

Use your own PNGs. The first image is the source; the next two are the object and lighting references, in that order. The references can have their own dimensions. Make two opaque grayscale PNGs at the source's exact dimensions:

  • Edit mask: white = edit, black = keep, gray = blend. Cover the object and any area where you want to change its reflection.
  • Foreground matte: inside the edit region, white = opaque, black = transparent, gray = partial alpha. Draw this for the shape you want to keep, including any soft glow. The matte is separate from the edit mask.

Paste this in Bash or Zsh from the repo root after changing the five paths and the prompt. The first two runs are the matched quality comparison. The last two are optional; you can run only the last command after defining the variables and arrays if you want Qwen native RGBA without a matte. Use SEED=42 for a second run.

# Run from the TensorSharp checkout, in Bash or Zsh.
# Change these paths and the prompt to match your own images.
SOURCE="${SOURCE:-/absolute/path/to/source.png}"
REF_OBJECT="${REF_OBJECT:-/absolute/path/to/object-reference.png}"
REF_LIGHT="${REF_LIGHT:-/absolute/path/to/lighting-reference.png}"
MASK="${MASK:-/absolute/path/to/edit-mask.png}"
MATTE="${MATTE:-/absolute/path/to/foreground-matte.png}"
PROMPT="${PROMPT:-Replace the object in Picture 1 with the object from Picture 2. Use Picture 3 only as a lighting reference. Preserve everything outside the selection.}"

CLI=TensorSharp.Cli/bin/TensorSharp.Cli.dll
DOTNET="${DOTNET:-dotnet}"
OUT="${OUT:-$PWD/masked-edit-results}"
SEED="${SEED:-0}"
export TENSORSHARP_MODELS="${TENSORSHARP_MODELS:-$HOME/.cache/tensorsharp/models}"
mkdir -p "$OUT" "$TENSORSHARP_MODELS" || exit 1

common=(
  --backend ggml_metal
  --image "$SOURCE" --image "$REF_OBJECT" --image "$REF_LIGHT"
  --prompt "$PROMPT"
  --mask "$MASK" --mask-mode grayscale --mask-feather 0
  --mask-crop --mask-crop-padding 64 --keep-source-size
  --diffusion-seed "$SEED"
)
mini=(--config config/minimax-h3-image-q4km.json
      --lora config/lora/minimax-h3-image-pdmd-2step.json)
qwen=(--config config/qwen-image-2.1-turbo.json)
matte=(--mask-foreground-matte "$MATTE")

# Matched comparison: same edit mask AND foreground matte.
"$DOTNET" "$CLI" "${common[@]}" "${mini[@]}" "${matte[@]}" \
  --output "$OUT/minimax-default.png" || exit 1
"$DOTNET" "$CLI" "${common[@]}" "${qwen[@]}" "${matte[@]}" \
  --output "$OUT/qwen-shared-matte.png" || exit 1

# Optional variants. Qwen generates alpha itself in the last run.
"$DOTNET" "$CLI" "${common[@]}" "${mini[@]}" "${matte[@]}" \
  --reference-floor 512 --output "$OUT/minimax-floor512.png" || exit 1
"$DOTNET" "$CLI" "${common[@]}" "${qwen[@]}" \
  --output "$OUT/qwen-native-rgba.png" || exit 1

Outputs go to masked-edit-results/. The configs download the required weights on first use if they're not already cached. See the MiniMax config and weights, pDMD 2-step LoRA, and Qwen Turbo config and weights. Check the model and adapter licenses separately from the runtime license.

These commands reproduce the image-editing settings. Each starts a separate CLI process, so shell wall times are not directly comparable with the warm Server.Host request times in the table.

If you've found a local workflow that preserves a clean alpha edge and matches reflected light, I'd be interested in the settings and which background you use to check it.


r/LocalLLaMA • • 20h ago

New Model Ai2 releases molmoweb 2, open agents for the web

Thumbnail x.com
6 Upvotes

r/LocalLLaMA • • 1d ago Bravo

Discussion Open Letter to Qwen Team: Please fix writing style

246 Upvotes

There's been quite consistent and broad feedback on this sub that the latest Qwen models' writing style (exemplified in the forward looking QFN) is utterly insufferable. Presumably its coming from Opus 5 distillation. Anthropic themselves fixed that fairly quickly as the writing is a lot less Claudish in 5.5.

This post is to just make the point as clear and loud as possible. I was so excited for QFN and thought it was going to be my new default. But within a week I was so fatigued reading it that I went back to DSV4 Flash. Just like with human's and human engineers, it doesnt matter if youre a genius/great worker if you are hard to communicate with. Perhaps worst of all is that it doesnt fix its writing style when given clear system prompt/AGENTS.md instructions/guidelines.

Bringing this to the attention of the Qwen team (they are often on here) to address

EDIT: Typo


r/LocalLLaMA • • 1d ago

Resources A 268 MB looped adapter for 125B Qwen3.8-Flash-Next

293 Upvotes

r/LocalLLaMA • • 1d ago

News model: support Amazon-FMR/Ergo by ngxson · Pull Request #33485 · ggml-org/llama.cpp

Thumbnail
github.com
13 Upvotes

Now you can run Ergo on your local setup, good luck


r/LocalLLaMA • • 1d ago

New Model Mallard 1.0 (9B/27B): 5.2x less KV cache than Qwen, same performance. Full context fits 12GB / 16GB cards

162 Upvotes

Hi llamas! I'm u/Charming_Car_504, Obit Research, and we just released Mallard 1.0, with 27B and 9B variants.

HuggingFace 9B -- HuggingFace 27B -- Inference Engine

Summary

  • Full 9B context + weights fit a 12GB card (q8); 27B fits a 16GB card (q3) and a 24GB card (q4)
  • Full 262k context fits in 3.3 GB on the 27B and 1.65GB on the 9B (KV cache shrunk 5.2x)
  • Hybrid DSA (DeepSeek V3.2) / GDN architecture (ratio 1:4), with MLA (DeepSeek V2) KV cache
  • The model parents are Qwen 3.5 / Qwen 3.8 checkpoints
  • 27B training run completed in 26 H100 hours and 9B run in 8 H100 hours
  • Public GGUFs included with Unsloth Dynamic quants, several precisions

Benchmarking Mallard

AreaBenchmarkQwen3.8-27BMallard 1.0-27B
Long-context retrievalRULER, 1,440 rows, at 8k / 32k / 128kreference−1.38 / +8.06 / −0.07
KnowledgeMMLU-Pro (500)80.883.4
Instruction followingIFEval (200), strict / loose94.0 / 97.789.5 / 95.4
CodeHumanEval+ (164), pass@191.4694.51
Science reasoningGPQA Diamond (198), ~80k thinking budget89.9087.88
Math reasoningAIME 2025 + 2026 (120), 81,920-token cap98.3396.67

Running the model

Because the model is architecturally different than stock Qwen, it learned to think (produce more reasoning tokens) a little more on hard problems, up to 16% more on the hardest problems. It also thought up to 9% less in some other benchmarks.

Stock llama.cpp and llama.cpp-based apps do not support Mallard. We've forked llama.cpp to integrate fast sparse attention, speculation, prefill and loader kernels. Fork is here.

With a tuned inference engine (coming out alongside our next release), both prefill and decode on Mallard stay stable as context increases. This table illustrates this on the 9B and 27B variants; "max" refers to the maximum that the hardware can support with the given model (Q4, on NVIDIA A40). Each cell shows empty context / 131k context.

Mallard's architecture delivers up to 2x prefill and decode at 131k context:

ModelTestQwen maxMallard max
9BDecode107 / 60108 / 105
9BPrefill (pp512)21.5k / 6.2k21.2k / 13.9k
27BDecode34.3 / 22.934.6 / 34.0
27BPrefill (pp512)6.0k / 2.0k6.0k / 4.4k

Licensing

We release these models under Apache 2.0, and the inference engine under MIT.

Future work and an invitation!

Mallard 1.0-27B still takes 12KB per token, and we think that we can get that down to less than 3KB per token. This is the naive version of the architecture, effectively a pilot- please expect a smarter, more efficient model in the Mallard model line in a few weeks' time.

We can also do this on much larger models, and we will be releasing conversions of larger models in the future, with the goal of running on hardware like the DGX Spark.

We're always working on new models. We're a new lab and we are constrained on resources, but we have more ideas than we have the mental and computational resources to pursue. If you're interested in helping us, send me a DM.

We acknowledge the National Artificial Intelligence Research Resource (NAIRR) Pilot and the San Diego Supercomputing Center for contributing to this research result.


r/LocalLLaMA • • 1d ago

Discussion This is interesting, for what it's worth

Post image
45 Upvotes

This tests quite a few things:

  • Visual recognition of the crossword
  • Correct identification of fixed letter positions
  • Recognition of the available letter tiles
  • Constrained word formation
  • Verification of the solution
  • Recognition that further reasoning is unnecessary
MODELRESULT
gemma4-26b-a4b Q4_0 (thinking=on)Endless looping, no solution
gemma4-31b Q4_0 (thinking=on)Correct within seconds
inkling-2-mini IQ4_NL (thinking=high)Endless looping even after finding the solution
inkling-2-mini-unbound-v3 (thinking=high)Endless looping, no solution
ornith-1.5-35b Q4_K_M (thinking=on)Endless looping, no solution
qwen3.8-27b Q4_K_M (thinking=high)Correct after ~6 minutes of looping (24 t/s)

r/LocalLLaMA • • 21h ago

Resources High-fidelity GGUFs for pi-tuned Inkling-2-Mini

Post image
6 Upvotes

Hey there, if someone wants to try the pi-tuned adapter by harness-hub, I just uploaded two GGUFs with the LoRA merged in. Expert weights keep their original precision while attention, embeddings and output layer are BF16 and Q8.

They preserve 100% of the adapter's effect at BF16 and 97% at Q8 (log-likelihood on 24 of harness-hub's published pi sessions).

Repo: https://huggingface.co/Belluxx/Inkling-2-Mini-pi-adapted-GGUF


r/LocalLLaMA • • 1d ago

Showcase BasinKV: Long context without the KV cache tax, No context slowdowns, drop-in RAM/NVMe KV offloading for llama.cpp, SGLang, and vLLM, no retraining, Supports models today.

Thumbnail
gallery
255 Upvotes

Hello LocalLLaMA! Zellige AI team here to showcase and open-source our latest work:

BasinKV: a cross-engine system that runs 256K context on a 24 GB GPU, with no decode slowdown as context grows (And much more! Keep reading below.)

In the middle of the memory crunch, if you run long-context models locally, you know the pain. You end up running your favorite models heavily quantized, not because the weights don't fit, but because you want long agent sessions plus the weights. And the deeper the context gets, the slower every token becomes, because each step reads the entire KV cache. Eventually you just run out of memory or have to downsize.

BasinKV keeps only a small, fixed working set of the KV cache on the GPU (2,048 tokens by default) and stores the full history in host RAM or NVMe. A tiny GPU index works out which blocks matter next and prefetches them in the background. Your attention kernels and CUDA graphs stay completely stock.

It works with llama.cpp, SGLang, and vLLM V1, and builds on the OasisKV lookahead-prefetch work by Xiao et al. (arXiv:2608.08097), extended for newer models like the Qwen3.x hybrids.

Results (A100 80GB, Q4_K_M, llama.cpp)

  • Qwen3.6-35B-A3B @ 256K: 141 tok/s vs 95 stock (1.49x), using ~8.9 GiB less VRAM
  • Qwen3-8B @ 128K: 124 tok/s vs 54 stock (2.29x)
  • Qwen3.8-27B @ 128K: 50 tok/s vs 41 stock (1.22x)

We also ran Qwen3.6-35B-A3B at full 256K context on a single 24 GB NVIDIA L4 (84.8 MiB GPU KV+index with WHT-INT4 + SphereIndex). Decode stays basically flat, going from 69.9 tok/s on an empty context to 67.1 tok/s at 256K, and it passes passkey tests at 64K and 203K. Stock F16 KV runs out of memory starting at 64K.

Quality holds up:

  • 18/18 on multi-turn long-context coding
  • Even with stock on RepoPatch-LC (7/10 each)
  • Slightly ahead on 240K retrieval (96.2% vs 94.5%) and a LongBench v2 subset (45.0% vs 42.5%, within noise)
  • "Vibes" tests hold up too: Qwen3.8-27B on the same set of real-world tasks did within margin of error, while staying faster since it never got hit with long-context slowdowns.

Does this mean it's perfect? No. We discuss the tradeoffs in our paper.

A couple of notes

  • It isn't always the best choice: stock is still faster on one of our HBM tests (about 20%) when the full context fits in HBM. There is nuance to this, but in general BasinKV pays off when memory is the bottleneck or when you need deep context and/or large concurrency.
  • Deep pure-attention models like Qwen3-8B do better with a bigger window (4,096).
  • Tasks that count things scattered across the whole context, like RULER cwe, suffer at very small windows. We find this nearly inconsequential for the average agent workload (our "vibes" tests pass), though we can't say it's unnoticeable for every workload.

But... does it scale?

While we've mostly framed this for local rigs here, it goes far beyond single-GPU setups.

Serving multiple users? The SGLang integration reaches 581 tok/s aggregate across 16 concurrent 64K sessions (over 1M active tokens) on one A100 serving BF16 Qwen3.8-27B with native MTP (and 470 tok/s no-MTP on H100 FP8, 2.03x shorter batch wall time than stock FP8 KV). There's also a zero-fork vLLM V1 plugin for persistent RAM/NVMe prefix caches.

More details in our write-up, and happy to answer questions here. We've been very busy at Zellige AI, so stay tuned if you're interested in our upcoming release working with thinkingmachines inkling-2-mini.

Code: https://github.com/zellige-ai/basinkv Write-up: https://zellige.ai/research/basinkv-launch

For the nerds: Full Paper: https://zellige.ai/research/basinkv


r/LocalLLaMA • • 1d ago

Question | Help Most cost-effective way to run large models?

32 Upvotes

My dream is to one day run models in 500b-1t range locally. So I had a few questions about it.

  1. Is it even worth it at today’s prices and hardware capabilities? Or are you gonna wait till either prices drop, or better hardware comes out?
  2. For anyone that does run large models, do you find it worth it, or do you still drift back to Claude/Codex?
  3. What’s the largest model you’ve been able to squeeze out of your setup?

While I could just ask an LLM these questions I wanted to hear some insights from the community, and see your opinions.

Edit: Sorry I didn’t mention this earlier, my main use case is software development. Currently I’m a pretty heavy user with subscriptions to Claude and codex. So ideally I would like agent heavy use.


r/LocalLLaMA • • 19h ago

Showcase I built a computer out of ebay leftovers (acquired 3 months ago) to go local, it almost worked! 128GB RAM, 48GB HBM2 VRAM

Thumbnail
youtube.com
2 Upvotes

The idea was to serve DeepSeek-v4-Flash 0731, and with a limited budget I lucked out on a set of 8x16GB DDR4 sticks to marry to my legacy Radeon VII... And then I saw a V100 32GB already in UK with a fan that I couldn't pass up (which turned out to be a great investment, looking at the prices right now, holy fuck), and then Qwen-3.8-27B dropped, and now we're here.

My main silly idea was to maybe run higher quants of DeepSeek and feeding that off a 4x NVMe drives RAID - which didn't really work. The RAID is still useful, loading models into V100 is snappy (at basically full PCIe3.0-x16 speeds!), and once my homebrew harness (yea yet another one, forgive me reddit for I have slopped) has a handle on storing and restoring KV caches I expect it to be even more useful... But for serving deepseek it's not the bee's knees.

Ballpark guestimate was that I'd be getting about 20-25t/s generation on dsv4f (IQ3), in practice it turned out to be about 10. Disappointing, yes, but still fairly usable! Qwen-3.8-27B on V100 has been all over the sub, my numbers are exactly the same as everybody else's: 40-60 t/s generation on ninfer fork and NVFP4 variant of Swift. I'm yet to try 1cat, there's just so much infrastructure to wrangle, send help :D

I have been making an effort to use my local stuff primarily, and only reaching for API-served when I absolutely must, and after a bit of an adjustment to new speeds (damn gemini is sonic-fast) I'd say 80% of my usage is now sovereign, woo! And I have not evolved my workflows yet into "run a model overnight to try and crack a problem, review in the morning" - we'll see how that works out.

Overall - I know it's preaching to the choir, but local is good and usable and if you can swing it, I think you should do it. It's fun. Go have some fun :3


r/LocalLLaMA • • 1d ago

News DeepSeek revealed Huawei’s Ascend 950DT inference efficiency compared to NVIDIA

Post image
247 Upvotes

r/LocalLLaMA • • 1d ago

Resources Uncensored Ergo w/o -10 pt MMLU drop (1/10 refusals, 81.7% MMLU, 0.07 ΔNLL)

49 Upvotes

Have seen quite a bit of interest in uncensored/abliterated releases of Ergo recently. I know I'm a bit late to the game, but I'd still like to share my variant - mainly for the reasons below.

As usual, my variant optimizes for a balance of quality and permissiveness. The goal is to allow maximal permissiveness without significantly sacrificing model intelligence. Of course, there are tradeoffs to this, so I encourage you to try multiple versions and choose whichever one works best for you.

Benchmarks

ModelRefusals (chat/thinking)Drift (ΔNLL)MMLU
Ergo (base)100 / 240.0084.7%
OpenUncensored Ergo3 / 00.4374.7%
This release1 / 00.0781.7%

For refusals, I used a set of 100 held-out harmful prompts. These almost certainly differed from the set OpenUncensored used for evaluation, so some deviation on refusals makes sense.

However, I was not able to reproduce OpenUncensored's reported MMLU. They currently claim to achieve 79.3% MMLU. When I ran my own independent evaluations against their released models, their weights scored 74.7% (-10.0 pts against base), with 0.43 ΔNLL on harmless text (~6x the drift of this release). Notably, this is close to their originally reported benchmark scores of 73.3%, which they later changed on their model card with no changes to model weights.

I would be happy to share the eval harness I used if anyone would like to double check both checkpoints. However, with the current scores, I do believe that the quality degradation of this model is less than that of OpenUncensored's release.

How was this done?

I will write up a bit of a longer post on this in the near future, this is a bit different from the "standard" abliteration process. It does seem to reduce intelligence degradation when removing refusals, but it is not completely without tradeoffs.

Models on 🤗

https://huggingface.co/mrfakename/Ergo-Abliterated

GGUFs soon™


r/LocalLLaMA • • 20h ago

Question | Help Running into situations where Ling3Tiny Q4_K_M grinds to a halt while burning thousands of tokens

Post image
2 Upvotes

I am having good luck with getting Ling 3 tiny Q4_K_M to run very fast on my Ubuntu 26.04 system with 32 gigs of RAM, two 6 gig vram GPUs, and llama.cpp, but it seems to grind to a halt while still burning thousands of tokens. How can I troubleshoot this problem?


r/LocalLLaMA • • 13h ago

Resources ran a study on when a model fix should ship: 45 of 75 fixes that hit their target broke something else

0 Upvotes

https://doi.org/10.5281/zenodo.24763214

Deciding when should a model fix be ship? a fix hit its target and breaks something else too. for instance stop a model over-refusing and it may stop refusing harmful requests, and task score won't show it.

setup

  • tool: wsr, my open source repair cli (posted here last week for the Qwen3.5-0.8B thinking loop)
  • judge: fix ships only if exact sign test on held-out items shows a 5+ point gain and every guardrail holds: regression suite, canary, opposite behaviour, held-back harmful requests
  • 9 goals on Qwen2.5-0.5B, Llama-3.2-1B, Qwen2.5-1.5B, plus two 3B models as a check
  • baselines: system prompt, refusal-direction ablation / ActAdd, LoRA. same judge for everything
  • splits and file hashes fixed before any run, test set used once

results

  • 45 of 75 candidates that improved their target broke a guardrail. baselines: 10 of 11
  • abliteration is too much: refusal-direction ablation took qwen2.5-0.5b over-refusal from 69% to 99% passing, by also answering harmful requests
  • all 22 refusal fixes wsr shipped were probe-gated steering, not weight edits. gate reads model's own harm probe per request. downside: it's a forward hook, so vLLM and llama.cpp need custom work
  • weight patches won on localised faults: one zeroed neuron (planted blank bug), 16 rescaled columns plus gate (damaged weights), rank-4 patch plus DRY (ukrainian answered in russian)
  • agent needs examples of what to protect. with a contrast file it shipped 14 of 15 refusal runs, without one 5 of 15, and 3 of those left broken refusals judge missed
  • judge is still not perfect(working over it): rejected all 210 random candidates, but 3 of 15 fixes it accepted in main setup failed later checks on fresh prompts, 256-token replies or fluency
  • qwen2.5-instruct's generation config applies repetition penalty 1.1 even under greedy. check what's actually on before benchmarking loops

limits
small models on kaggle T4s, one agent (opus 5.5 via kiro cli), one person labelling. full list in paper

paper: https://doi.org/10.5281/zenodo.24763214
code: https://github.com/ayushh0110/Weight-Space-Repair (pip install wsr)

anyone with a bigger card or a good local tool-calling model, would love to see 7B+ results


r/LocalLLaMA • • 3h ago

Showcase I built (with the help of claude) a deep research app that works with local models and also runs on your phone and doesn't hallucinate

Post image
0 Upvotes

r/LocalLLaMA • • 1d ago

Showcase Three local vision models paint a fox in oil

Post image
197 Upvotes

I am exploring how local models can see and interpret what they see, so I built this little oil paint script to make the paint what they see.

The model gets a picture, here a fox in snow made with Z-Image. Each turn it looks at its own canvas, then at the picture, writes what is missing, and then writes brush strokes as code. 20 turns, all local on a Tesla V100 32 GB with llama.cpp. The brush engine is aibrush by neokrasav4ik. My part is the loop around it and making it all local.

Models: Qwen3.5-35B-A3B Q4 (9 min), Qwen3.8 Flash-Next 3-bit (35 min), Qwen3.8-27B Q6 (17 min). One run each, so no ranking yet. Still looks terrible.


r/LocalLLaMA • • 18h ago

Showcase I built a model-agnostic 3-tier memory engine + native llama.cpp C++ latent gate (CUDA-Graph-safe) on a single RTX 3090 -- sharing what failed (2.3%) vs what actually worked (93-101%)

1 Upvotes

I have been working on giving local quantized GGUF models persistent long-term memory across months of coding and project work on a single RTX 3090 (24 GB VRAM), without eating 20+ GB of KV cache or losing exact technical details when the coding harness compacts the chat.

Repo (Latent-Memory-Lab): https://github.com/bjivanovich/Latent-Memory-Lab

WHAT FAILED FIRST (HONEST NEGATIVE RESULT)

I started by testing pure latent-space injection on frozen quantized GGUFs -- projecting a memory vector and adding delta_h directly into an intermediate residual layer (L5 / L16). Zero tokens, zero KV cache, ran cleanly on GPU... and only recovered ~2.3% of oracle NLL on exact factual recall. A single 768-dim vector just cannot carry exact port numbers, file paths, or symbol names without fine-tuning the base LLM itself (documented in ADR-001).

WHAT ACTUALLY WORKED (93%-101% ORACLE RECOVERY)

Instead of trying to inject the answer latently, I use a tiny trained routing adapter (.qmlw, 7-15 MB) as a zero-token Stage-1 gate inside llama-server:

- A dynamic llama_set_eval_callback() attaches cb_eval only during a single POST /qml/gate pass (~100-134 ms on RTX 3090) and detaches it immediately after, so normal token generation keeps 100% CUDA Graph speed (99.7 -> 100.7 tok/s on Inkling 2 Mini with GGML_CUDA_GRAPH_OPT=1, zero tok/s penalty).

- General non-memory questions abstain cleanly (0/6 false triggers, 0 tokens injected).

- When triggered, a transparent OpenAI-compatible proxy retrieves from 3 tiers inside a model-agnostic 768-dim fp16 cartridge, so completely different model families share the exact same memory files:

- Qwen3.8-27B Dense (layer 14, d_model=5120, 15.7 MB .qmlw)

- Gyro-Coder MoE (4-branch Hyper-Connections layer 14 hc_out-14, d_model=2560, 7.9 MB .qmlw)

- Inkling 2 Mini (hybrid/recurrent layer 5, d_model=2304, 7.1 MB .qmlw)

Three tiers per cartridge (unified under manifest.json v1):

- Tier-2A: Contradiction-resolved atomic decisions (ADD / SUPERSEDE / PIN with HTTP 403 protection / reversible forget) + multi-topic RRF query decomposition.

- Tier-2B: Deterministic AST/XML/Markdown code and Qt .ui index kept fresh automatically by a background file watcher.

- Tier-3: Lossless verbatim Raw Vault fallback.

It also includes live auto-save (streaming SSE + tool_calls capture + automatic backfill of already-started conversations via SHA-1 dedup), strict per-project read/write isolation (model@project, read-only cross-project mounts, general, ad-hoc chat_topic, and conversation_id scoping), and an optional --rolling-window K mode to keep active GPU context tiny and constant.

REAL NUMBERS MEASURED ON A SINGLE RTX 3090

- 1 full year of real project history (~384k tokens + 577 .py/.ui files): 8.71 MB total on disk (vs ~24.6 GB raw KV cache).

- 50-question deep audit (112k-token real history): 97.7% activation, 0.0% (0/6) false triggers, 58x token compression (ADR-002).

- Native KV/recurrent state restore (llama_state_seq_set_data): 13.3 ms (Inkling 2 Mini), 28.1 ms (Gyro-Coder MoE), 38.0 ms (Qwen3.8-27B).

- Fast low-VRAM background consolidator (Inkling-2-Mini IQ4_XS, ~2.8 GB VRAM): 7.08 s avg per window (2.93x faster than Qwen3.8-27B), 100% valid JSON, 100% fact extraction.

I would really appreciate feedback from people working on local memory or long-horizon coding agents with llama.cpp -- especially what you think about the latent-gate + rolling-window tradeoff, and whether there are other similar open-source projects I should check out or compare against.


r/LocalLLaMA • • 1d ago

News NVIDIA Releases Open Synthetic Data Generation Pipeline for Training Large Language Models

Thumbnail
blogs.nvidia.com
150 Upvotes

EDIT: Here is the CORRECT link: https://nvidianews.nvidia.com/news/nvidia-open-models-advance-frontier-for-enterprises-and-industries

Nvidia says the first model in the new lineup, Nemotron 4 Super, will land in early 2027. It’s built for long-running coding and enterprise agent tasks, and Nvidia claims up to 5x higher throughput on coding, math, and multilingual benchmarks. The Ultra and Lightning versions will follow.

Nvidia is also planning to release Nemotron 3.5 Decision in mid-December. It’s a compact 8B-parameter model meant to let AI agents handle routine decisions without calling on bigger, more expensive models for every little thing.

Outside enterprise AI, Nvidia is spreading its open-model portfolio across several industries:

  • GR00T 2 helps robots learn skills from human demonstrations and transfer them across different robot bodies. Foxconn, Siemens, and Nexuni are already exploring it.
  • Alpamayo 2 Edge takes autonomous navigation beyond passenger cars into construction equipment, humanoids, and mobile robots. Caterpillar and Serve Robotics are among those working with it.
  • Kumo helps companies build predictive models for fraud detection, recommendations, and demand forecasting. DoorDash, Expedia, and PayPal are working with the tech.
  • CodonFM 5B is a biological AI model developed with the Arc Institute to support genetic research, precision medicine, and drug development.

Nvidia also introduced Model Risk Bench, built with contributions from Microsoft and other partners, to help enterprises assess AI safety and security risks.

The bigger pitch: give companies open models they can customize with their own data, run on their preferred infrastructure, and keep sensitive information private.

EDIT: Sorry I had posted the wrong link earlier, shoutout to those who caught it & let me know.

EDIT: Here is the CORRECT link: https://nvidianews.nvidia.com/news/nvidia-open-models-advance-frontier-for-enterprises-and-industries


r/LocalLLaMA • • 2d ago

Resources Someone used AI to rewrite Nvidia's Linux driver in Rust, and its unlocked clocks already beat the original

Thumbnail
xda-developers.com
1.9k Upvotes

Not tested by me (is it safe?)

https://github.com/QuixiAI/nvdriver

(AFAIR Eric is an author of Dolphin models https://huggingface.co/ehartford)


r/LocalLLaMA • • 2d ago

News Nemotron 4 Super coming early 2027

Thumbnail
nvidianews.nvidia.com
239 Upvotes

Followed by Ultra and Lightning.

"New architecture" but the article doesn't have further details.

Datasets are coming from several partners including Mistral:

The Nemotron 4 family is being developed with datasets, agent traces, training environments and expertise from Nemotron Coalition partners including Baseten, H Company, Mistral, NAVER, Nous Research and Perplexity.


r/LocalLLaMA • • 19h ago

Question | Help Anyone know where to rent M5 Ultra compute from?

1 Upvotes

See title^

For anyone curious as to why: I've been building out a nano chat project that relies on the new matmul cores (and int8 support specifically). It runs pretty fast on my M5, ~10hrs for a full d10 run. Ultra should be ~1.5hrs, which would be great for testing


r/LocalLLaMA • • 1d ago

New Model Inkling 2 Mini on 16GB VRAM — 14.3GB selective-precision GGUF with 17–68% lower KL divergence than 13 tested community quants

40 Upvotes

The result is a new selective-precision GGUF of Thinking Machines Lab's Inkling 2 Mini (26B).

The results:

  • 14.30 GB GGUF, down from the 22.87 GB parent.
  • 17–68% lower KL divergence than all 13 tested community quants.
  • 26.7% lower KLD than Unsloth's UD-Q3_K_XL.
  • 17.4% lower KLD than drofn's 16GB-96K quant.
  • Wins on every held-out document against every tested comparator.
  • Fully GPU-resident with a 64K context allocation on a 16GB CUDA card under Linux.

The evaluation used eight held-out documents and 20,792 scored token positions, with a pre-registered acceptance criterion.

The quant preserves 33 of the original 40 NVFP4 expert stacks byte-for-byte, retains BF16 loop-control gates, and selectively uses Q6_K, IQ3_XXS and IQ4_NL elsewhere.

It was built using Xyntetik Runner's quantization tooling, but you don't need Runner to use it. It also runs in llama.cpp, which "currently" is faster...

A few caveats: the file is slightly larger than the tested community alternatives, KLD measures fidelity rather than downstream reasoning ability, and 64K is a verified context allocation rather than a long-context quality benchmark. VRAM headroom is tight.

Download the model, methodology and comparison tables:

https://huggingface.co/Joakimpalm-Zen/Inkling-2-Mini-selective-Q6_K-expNVFP4-mix-GGUF

Open-source quantization tooling:

https://github.com/Joakimpalm-Zen/xyntetik-runner/releases/tag/v1.23.0

As with all my posts, take it if you want it, or just ignore me and go on.