• 0 Posts
  • 5 Comments
Joined 1 year ago
cake
Cake day: August 30th, 2025

help-circle

  • Thank you very much. Didn’t respond cause I was lost in benchs and attempts to vibe fix things I didn’t like lol.

    Anyway, here is what I got:

    State: 256k context, vision works (CPU projector). VRAM ~8.5 GiB without desktop at full 256k context; ~7.5 GiB at short prompts;

    On stock llama.cpp: pinned Unsloth b12631-mix-acc0843 (source 59f66204), TheRock 10.3.0a20261121, Clang 24, Ubuntu 22.04 GCC 11 headers, gfx1200;gfx1201. Local patch: capture-safe pinned-only HIP pool. Host: LimitMEMLOCK=infinity + mlock. DSpark not enabled.

    -ngl 99 --cpu-moe --moe-cache-mib 2048 --moe-cache-cpu-share 0.45
    -ub 512 -c 262144 -ctk q4_0 -ctv q4_0 -fa on --parallel 1
    --load-mode mmap+mlock --mmproj ... --no-mmproj-offload
    

    cmoe vs ncmoe

    - cmoe cache 4096, ub512: 23.3 write t/s @ 13.61 GiB
    - ncmoe16, ub512: 16.5 write t/s @ 13.74 GiB
    

    Absolute win on the similar size of vram.

    Short prompt at 2 GiB cache: 454 t/s read / 19.4 write. Cache 3/4/5/6 GiB: 21.6/22.7/25.2/26.7 write t/s; VRAM 11.4/12.4/13.4/14.4 GiB.

    – so pretty much +2t/s decode per 1 GiB of vram if I wanted (chose to have more headroom of vram as this is my working machine and I would want to open other apps that eat vram too)

    The Patch

    VRAM used to grow until OOM, I didn’t like it, so I vibed this patch; Now it stays flat because only graph-pinned buffers are kept.

    Prefill is down about -3% to -5% and decode is pretty much unchanged.

    –moe-cache-cpu-share

    Pretty much flat 0.3–0.6, with best (within noise) results at 0.4 / 0.5

    0.7 and up drops (19.4 → 14.2 write).

    -ub

    ub512: ub2048 adds ~1.3 GiB + 2.4 GiB graph, OOMs at depth; only ~3–8% prefill gain.

    I am on PCIe 5 so it probably didn’t matter much.

    Going down from 512 hurts like hell, 1/3 prefill on each half.

    Q3

    Didn’t do anything good cause you are dragging gigabytes of experts to vram anyway - same vram cause you are literally specifying how much of vram you want to be loaded with it. So, same size, 3-5% more speed, quality loss.

    Host memory fix

    • –load-mode mmap+mlock;
    • LimitMEMLOCK=infinity on [email protected];
    • this stopped the ~16 GB mmap’d expert set from being evicted from page cache, which had collapsed deep-context runs to ~0.1 t/s.

    Saga to make it not to eat all of my GPU processing and leave a headroom

    Utterly failed to do anything about it.

    At decode it stays at roughly 80-90% avg and it’s comfortable enough for any activity.

    Prefill though goes to 100%, and since it throws batches, you can’t just gradually sleep patch it or anything.

    Tried to throw it at low priority for GPU but it didn’t work either - no difference between AI in low + concurrent ~80% GPU burn in normal & AI in normal priority + concurrent ~80% GPU burn in normal.

    Sooo, when it’s not run at dedicated AI PC, it’s gonna cause disturbances and it cannot be just backgrounded without cost. Non-backgrounded? Slow asf to be looking at it. Also why even look at an agent. Who looks at code today anyways.

    The Model

    Well it works. Agent did build be a simple python webserver that hosts my previous experiments at local embeddings - embedding images/audio and searching by text. Done and works in a first attempt. Took about 35-40m. This wasn’t very hard task, but not a trivial either.

    But

    It looks like it’s specifically designed to be run in agentic mode.

    image

    explain the joke

    It’s a self-referential joke: the moment a “dad joke” becomes recognizable as a dad joke, it is one—so the joke is about the label itself.

    It’s a self-aware pun: a dad joke is only a dad joke once it’s obvious/apparent — the joke’s badness/timing is what makes it a dad joke. In other words: it “lands” when it’s blatantly a joke.

    ^ high thinking.

    Both Qwen 3.8 27B & Qwen 3.8 Flash Next crack it on normal thinking.


  • setup summary:

    • CPU/RAM: Ryzen 7 9800X3D, 32 GB DDR5.
    • GPU: Radeon RX 9070 XT 16 GB, RDNA4 gfx1201, ROCm.
    • Model: Inkling 2 Mini, UD-Q4_K_M (15.46 GiB GGUF), 26.4B total / 5.4B active, plus mmproj-F16 for vision.
    • Backend: Unsloth llama.cpp prebuilt b12631-mix-acc0843 (ROCm gfx120X), pinned because nixpkgs still ships v1.0.0/b12359. No DSpark.
    • Server flags: -ngl 99 -ncmoe 10 -c 32768 -ctk q8_0 -ctv q8_0 -fa on --parallel 1 -dev ROCm0; temp 1.0 / top-p 1.0 / top-k 0 / min-p 0.
    • Speed: 800+ pp512 and ~21–22 tg128 is depth 0. At 32k depth: ~170 pp512 / 20 tg128. At 64k depth with all experts on CPU (ncmoe 24): 85 pp256 / ~13 tg64.
    • VRAM fit with mmproj (context preallocated, incl. desktop):
      • 32k, ncmoe 10: ~15.2 GiB used, ~20 t/s depth-0
      • 128k, ncmoe 16: 12.1 GiB used, 16.7 t/s
      • 256k, ncmoe 20: 12.5 GiB used, 14.5 t/s
      • 512k, ncmoe 24: 13.9 GiB used, 14.1 t/s
    • 128k is the practical sweet spot; 256k/512k load but prefill becomes painful.
    • Raising --n-cpu-moe frees VRAM at a modest tg cost; -nkvo keeps KV in RAM, the other lever.
    • Prompt cache is on by default (8 GiB RAM + checkpoints), so a long doc is prefilled once per conversation.
    • No autostart: ai on -l / ai on -e start services; ai off stops them.

    ^ it’s vision, I can cut on vision too. Just wanted to see it in action.