Skip Navigation

BeefAndPoultry

@beefandpoultry.lemmus.org.ap.tdpl.io

11 Posts11 Comments0 Memberships

Joined October 2026

  • Release v1.1.0 · ggml-org/llama.cpp adds Inkling 2, Hy4 Flash, and more

    llama.cpp v1.1.0 adds the Inkling 2 family (base, Mini and DSpark), Domyn Edge 4B, Zaya1 8B, RAON-1-mini and Hy4 flash, splits DFlash speculative decoding into separate draft methods, and deprecates the old llama_batch API in favour of llama_batch_ext. It brings a large set of TTS and audio models (Kokoro, Zonos3-Mini, tiny-voca, VoxCPM2, MiniMax-Music3, YuE2, Fish S2, Higgs v3/VibeVoice-ASR and Kyutai Hibiki), token-aware chat parsing, named tool choice, automatic per-tensor quantization targeting a bpw or size budget, a slot-scheduling refactor in llama-server, a redesigned Llama Chat web UI with voice messages and agent traces, and updates ggml to v1.1.1.

    I actually had to update because of --ui-mcp-proxy-allow-private-urls, and --ui-agent sounds interesting

    server: add --ui-agent and --ui-mcp-proxy-allow-private-urls (#33004, #32633)

    github.com
  • PR merged: llama_moe_cache: run missed experts on CPU - Tested on 32GB RAM and 8GB VRAM with Tiel 35b, Gemma 26b, and LFM 24b

    am17an: Before you guys bash llama.cpp again - I know it's not there yet. I'm working on it.

    am17an: I'm working towards an "auto" mode here, thinking about a good UX.

    I tried this on my Ryzen 2600, 32GB DDR4 RAM, RTX 2080 8GB, PCIe 3 desktop. The tuning script takes about 5 minutes to run but it gives you recommended settings. I tested Tiel 35b, Gemma 26b, and LFM 2.5 24b, all without mmproj (or with --no-mmproj-offload). If you have PCIe 5, your numbers will probably look different even with the same 8GB VRAM. My real world numbers seem about 20% slower than what the tune script is predicting, but still I'm getting the fastest speeds I've ever seen in llama.cpp on my computer, and I've tried a few of these different attempts at MoE caching.

    Tiel 35b

     
    $ python3 scripts/moe-cache-tune.py -- build/bin/llama-server -m ~/Documents/LLMs/Tiel-Coder-35B-A3B-UD-Q4_K_XL.gguf -cmoe -c 77824 --cache-type-k q8_0 --cache-type-v q8_0
    
    1/6 1856 MiB, share 0: 35.3 t/s
    2/6 1856 MiB, share 0.5: 38.6 t/s
    3/6 1856 MiB, share 0.95: 50.1 t/s
    4/6 3136 MiB, share 0: 41.1 t/s
    5/6 3136 MiB, share 0.5: 47.3 t/s
    6/6 3136 MiB, share 0.95: 53.5 t/s
    
    [The script pauses here for a few minutes...]
    
    Tiel-Coder-35B-A3B-UD-Q4_K_XL.gguf: 18760 MiB of experts, CUDA0 7284 MiB free, cache up to 3188 MiB
    
      cache MiB  share   t/s  hits
           1856      0  35.3   73%
           1856    0.5  38.6   66%
           1856   0.95  50.1   64%
           3136      0  41.1   81%
           3136    0.5  47.3   79%
           3136   0.95  53.5   73%
    
    machine: uploads 10.9 GiB/s, CPU 40.8 GiB/s, CPU part 0.00 ms, overlap 1.4 ms/GiB, rest 14.14 ms per token, fit within 0.7%
    
    predicted t/s, warm cache:
      cache MiB     0   0.5   0.8   0.9  0.95  0.98
            896  25.3  32.8  39.6  42.4  43.9  44.6
           1856  32.8  39.8  46.3  48.8  49.9  50.3
           3136  41.6  47.7  52.9  54.7  55.4  55.4
    
    recommended: --moe-cache-mib 3136 --moe-cache-cpu-share 0.8 (52.9 t/s, 41.6 with share 0)

    Interesting to note that 1856MB and 0.95 share is almost as fast as 3136MB and 0.8 share. This means it might be worth reducing the cache size in order to use MTP, or maybe I should start using a higher quant. But looking at the "predicted" table, it seems like the fastest would actually be 3136 MB and 0.98 share for 55.4 tok/sec? Not sure why it doesn't recommend that instead, maybe it's an expected peak not average.

    Forcing Lower VRAM Usage

    You can use --max-mib to force it to tune your settings with a lower VRAM usage, just make sure you put this argument before the llama-server portion of the arguments. It seems to work in steps, so not every number is respected, and the initial data collection run still seems able to use more than your requested amount, but the recommendation will respect it.

     
    $ python3 scripts/moe-cache-tune.py --max-mib 2500 -- build/bin/llama-server -m ~/Documents/LLMs/Tiel-Coder-35B-A3B-UD-Q4_K_XL.gguf -cmoe -c 77824 --cache-type-k q8_0 --cache-type-v q8_0
    
    1/6 1856 MiB, share 0: 34.1 t/s
    2/6 1856 MiB, share 0.5: 37.4 t/s
    3/6 1856 MiB, share 0.95: 49.8 t/s
    4/6 3136 MiB, share 0: 41.6 t/s
    5/6 3136 MiB, share 0.5: 44.9 t/s
    6/6 3136 MiB, share 0.95: 54.1 t/s
    Tiel-Coder-35B-A3B-UD-Q4_K_XL.gguf: 18760 MiB of experts, CUDA0 7292 MiB free, cache up to 2500 MiB
    
      cache MiB  share   t/s  hits
           1856      0  34.1   73%
           1856    0.5  37.4   66%
           1856   0.95  49.8   64%
           3136      0  41.6   81%
           3136    0.5  44.9   79%
           3136   0.95  54.1   73%
    
    machine: uploads 8.7 GiB/s, CPU 47.0 GiB/s, CPU part 3.06 ms, overlap -12.2 ms/GiB, rest 11.50 ms per token, fit within 1.3%
    
    predicted t/s, warm cache:
      cache MiB     0   0.5   0.8   0.9  0.95  0.98
            896  23.2  31.6  39.4  42.8  44.7  45.7
           1856  31.4  38.3  45.7  48.8  50.3  50.9
           2496  36.9  42.5  49.1  51.8  53.0  53.4
    
    recommended: --moe-cache-mib 2496 --moe-cache-cpu-share 0.9 (51.8 t/s, 36.9 with share 0)

    It recommended a slightly higher "share" meaning it allows more to run on the CPU, to reduce movement of data.

    Testing with GPU Power Limit

    I used sudo nvidia-smi -pl 125 to limit my GPU's power from 225 down to 125:

     
    $ python3 scripts/moe-cache-tune.py -- build/bin/llama-server -m ~/Documents/LLMs/Tiel-Coder-35B-A3B-UD-Q4_K_XL.gguf -cmoe -c 77824 --cache-type-k q8_0 --cache-type-v q8_0
    
    1/6 1856 MiB, share 0: 29.5 t/s
    2/6 1856 MiB, share 0.5: 38.6 t/s
    3/6 1856 MiB, share 0.95: 48.9 t/s
    4/6 3136 MiB, share 0: 41.4 t/s
    5/6 3136 MiB, share 0.5: 46.8 t/s
    6/6 3136 MiB, share 0.95: 52.1 t/s
    Tiel-Coder-35B-A3B-UD-Q4_K_XL.gguf: 18760 MiB of experts, CUDA0 7288 MiB free, cache up to 3192 MiB
    
      cache MiB  share   t/s  hits
           1856      0  29.5   73%
           1856    0.5  38.6   66%
           1856   0.95  48.9   64%
           3136      0  41.4   81%
           3136    0.5  46.8   79%
           3136   0.95  52.1   73%
    
    machine: uploads 7.6 GiB/s, CPU 26.4 GiB/s, CPU part 0.00 ms, overlap 0.0 ms/GiB, rest 11.30 ms per token, fit within 7.9%
    
    predicted t/s, warm cache:
      cache MiB     0   0.5   0.8   0.9  0.95  0.98
            896  21.1  28.8  36.1  39.3  41.0  41.7
           1856  29.0  37.0  44.9  48.0  49.4  49.8
           3136  39.4  47.5  54.6  57.2  58.1  57.8
    
    recommended: --moe-cache-mib 3136 --moe-cache-cpu-share 0.9 (57.2 t/s, 39.4 with share 0)

    You can see GPU power limits don't affect token generation much, it has a bigger impact on prefill speed. The cpu share is a little higher because the power limit makes the expert movement slightly less valueable. The predictions seem a bit... unpredictable. This run had slightly slower figures for every test, but ended up predicting a higher speed, who knows why.

    Gemma 4 26b

    With Gemma 4 26b QAT I got:

     
    recommended: --moe-cache-mib 3328 --moe-cache-cpu-share 0.8 (50.1 t/s, 40.3 with share 0)

    And with 131072 context:

     
    recommended: --moe-cache-mib 2496 --moe-cache-cpu-share 0.9 (45.7 t/s, 30.5 with share 0)

    LFM 2.5 24b

    With LFM 2.5 24b QAD I got:

     
    recommended: --moe-cache-mib 5056 --moe-cache-cpu-share 0.9 (75.7 t/s, 51.5 with share 0)

    I wonder why this one suggested a high share when the cache size nearly half of the model size. Maybe it's because the experts that aren't cached are infrequently used. So when your cache is big enough to hold every frequently used expert, they aren't worth moving back and forth.

    github.com
  • llama.cpp v0.9.0

    Overview:

    This release adds OCP FP8 E4M3 quantization support, a new flash_attn_ext_rows op that makes the unified KV cache efficient for multi-sequence inference, and a generic batched tensor copy API. Four new architectures are supported (Clover, Limite, Metis-1.6 and Mistral Large 4), audio generation and transcription expand with Chatterbox TTS, Nemotron 3.5 Transcribe and predefined Pocket TTS voices, and the Gemma 4 E2B/E4B models get major prefill optimizations. ggml is updated to v0.29.0, bringing FP8 E4M3, flash attention rows, NCCL-based multi-node tensor parallelism and performance work across the CPU, CUDA, SYCL, Metal, Vulkan, OpenCL and Hexagon backends. The server and UI receive a round of fixes and refinements.

    Is the next release going to be v1.0? Maybe with all the MoE caching improvements that should be culminating with https://github.com/ggml-org/llama.cpp/pull/30966 and Qwen 4 support?

    github.com
  • Heretic 2.0 released: Model modification for everyone - "it can suppress slop, reduce sycophancy, alter emotional alignment, and pretty much anything else that you can think of"

    Copied from -p-e-w- from another site: Dear fellow Llamas, after almost 5 months of development, I finally have the pleasure of announcing to you the immediate availability of the biggest Heretic release ever, Heretic 2.0: https://github.com/p-e-w/heretic Heretic is the leading software for removing censorship from language models. It now boasts 37k GitHub stars and more than 8,500 models on Hugging Face, with 88 million(!!!) total model downloads. With Heretic 2.0, the project is entering a new era. Heretic is expanding from a purpose-built tool for censorship removal to a general-purpose model modification tool that can do amazing things. Besides removing censorship, it can suppress slop, reduce sycophancy, alter emotional alignment, and pretty much anything else that you can think of. Of course, censorship removal remains the primary and default function, and in fact works much, much better than ever before. Heretic 2.0 is the most advanced refusal suppression system ever built. Your time is precious, so here's the TL;DR for this release: • Directional abliteration is replaced by Arbitrary-Rank Ablation (ARA), a novel steering method that I developed from scratch for Heretic. It's vastly superior to abliteration, and has been used with great success by enterprising testers for several months. Now it is the default (classic abliteration remains available as an option). • Heretic has been completely rebuilt around plugins. Scorer plugins define what Heretic optimizes for. Modifier plugins implement the actual steering method. Plugins are easy to write, can be loaded directly from a simple Python file, and have a well-defined API. • Heretic can now run non-interactively, which among other things has enabled us to implement full end-to-end tests for much tighter quality control. Model support has been expanded to include models with hyper-connections, and support for thinking models has been substantially improved. • Heretic 2.0 is not backwards compatible with Heretic 1.x configurations. See the migration guide for what you need to change in order to make your old configurations work. What hasn't changed is that removing censorship from a model remains as simple as running

     
    heretic Qwen/Qwen3.5-4B

    See the default configuration file for what Heretic has to offer beyond that. Now for some details...  

    ARA: Heretic's new steering method

    Directional ablation, or "abliteration", is based on the assumption that refusals (or whatever else you are trying to suppress) are represented by a single direction (that is, a rank-1 subspace) in residual space. That this is the full picture has been doubted in research for a while, and there are now several papers exploring alternatives such as multi-directional ablation or "representation cones". At the beginning of this year, I started experimenting with a method that completely abandons the idea that the ablation transformation must be restricted to a fixed-rank subspace. In March, I published the initial version of Arbitrary-Rank Ablation in this pull request (which was later closed as I re-implemented ARA on top of the plugin system in this PR). ARA steers model behavior by modifying matrices based on an objective function that encodes the basic properties of the change we want: Harmful prompts should be represented in residual space in a way that's similar to harmless prompts, while the representations of harmless prompts should change as little as possible. This objective is used with the L-BFGS optimizer to modify matrices one-by-one, a kind of micro-training that steers representations without any rank restriction. ARA has been extensively tested and refined with the help of the community. Notably, kabachuha made it compatible with Heretic's LoRA system, and varunbln found a substantial performance improvement. I intend to post an article explaining ARA in more detail soon.

    Using scorer plugins to make Heretic do what you want

    Heretic operates by finding modification parameters that optimize scores, values that measure the quality of the resulting model. Ever since the 1.0 release, Heretic has used two hardcoded scores: Refusal count to measure decensoring strength, and KL divergence to measure quality retention. With Heretic 2.0, you can freely define your own scores by writing and loading scorer plugins. Arbitrarily many scorer plugins can be loaded and optimized for simultaneously, and each score can be either minimized or maximized during optimization. See the default configuration file for how to do this. The scorer plugin system is the result of months of effort by red40maxxer, with whom I exchanged hundreds of messages over dozens of review cycles to figure out the best possible design. This is a monumental contribution that has changed how Heretic works from the ground up. Besides the keyword (refusal) count and KLD scorer plugins, which remain the default, Heretic ships with two other scorers: A benchmark scorer, which can compute scores for many standard benchmarks, and a BERT classifier. The BERT classifier, developed by long-time Heretic contributor Vinay Umrethe, can use an arbitrary ModernBERT-type model to classify LLM responses, and score them based on which labels the classifier produces. Vinay also trained a refusal classifier model (used by default with this plugin), which experiments have shown to be substantially more accurate at identifying model refusals than the naive keyword matching method that Heretic employs by default. While the plugin is slower than keyword matching, the greater accuracy can steer Heretic towards producing a higher-quality modified model. An alternative configuration, which uses an emotion classifier, is also provided in the Heretic repository. The plugin system is well-documented in both the README and the code. If you are interested in experimenting with custom plugins, an agent should have no difficulty cooking up a plugin and a matching configuration file that together do what you want, after ingesting the Heretic repository.   Well, I hope you like it! Cheers :)

    github.com
  • Apparently Gemma 4's chat template can take over 10 seconds just to build the text when there are many tool calls

    Not something I ever expected to cost a significant amount of time

    huggingface.co
  • Mistral Says Its AI Model ‘Le Chonk’ Has Leapfrogged China in the Open-Weight Race (1T-A52B)

    www.wired.com
  • FoodTruck Bench: MiniMax M3.1 Flash is the best Chinese model we've tested, and it's chasing Opus 5

    the benchmark is like a tycoon game/simulation, pretty fun and probably not benchmaxxed

    foodtruckbench.com
  • llama.cpp v0.8.0 adds the LiquidAI LFM3 family, DeepSeek V4.1 Flash, SenseNova U1, Beam, Kolibri-1, Flint, Muse Spark, Granite Switch Decision, and more

    This release adds the LiquidAI LFM3 family (text, vision, audio and omni) together with a new experimental streaming-audio API in mtmd, and wires realtime audio in and out of the server through the new /v1/realtime and /tts endpoints. A batch of new architectures landed: DeepSeek V4.1 Flash, SenseNova U1, Beam, Kolibri-1, Flint, Muse Spark, Granite Switch Decision, plus decision/embedding models from LiquidAI, Baidu and NVIDIA. The core got sparse-attention (QSA/DSA) reworked onto a fused masking op, a 50/50 SLRU cache for host-resident MoE experts, and cleaner no_alloc memory handling; the server got router memory-management and tool-calling improvements; the UI can now browse and download models straight from HF Hub, search conversations and compact them. Finally, ggml was bumped to v0.28.0, bringing GGML_OP_TOP_K_MASK, -1 expert-index semantics and large backend performance work (CUDA chunked graph launches, SYCL graph replay, OpenCL Q2_K/Q3_K, Hexagon HTP rework, KleidiAI SVE kernels).

    I'm interested to try the performance from this change:

    MoE experts kept in host memory now use a 50/50 SLRU cache instead of a plain LRU cache llama/30637

    github.com
  • LiquidAI LFM3 1.7B and other small LFM3 models

    huggingface.co