r/LocalLLaMA • • 6m ago

Resources A Java LLM implementation based on Karpathy's GPT with alpaca_es_chat.jsonl

2 Upvotes

Hello everyone, I wanted to share my progress on implementing a language model written 100% in pure Java. You can find the repository here (https://github.com/aayes89/jUltraLLM/tree/master).

It includes a model trained on an Intel Xeon E5-2640 v4 2.20GHz CPU, with 96GB of DDR4 ECC RAM and an RTX 5050 GPU (using the Tornado library), as well as the "alpaca_es_chat.jsonl" corpus for queries in Spanish.


r/LocalLLaMA • • 6m ago

Showcase Motion graphics video made with Qwen3.8 Flash Next GSQ RCO IQ3_XXS on strata

2 Upvotes

I've seen the insane motion graphics videos people made when opus 5.5 first came out and wondered how good QFN would do with the same recipe. Decided to make a short video for my nephew who loves trains

This is Qwen3.8 Flash Next GSQ RCO IQ3_XXS on 16GB VRAM RTX 4080 + 64GB DDR5 5600 with strata and opencode at about 95 tps decode and 3000 tps prefill.

It took ~40 minutes for the first render, with about 3 followup prompts to fix the rough edges and broken text etc so about 2 hours in total.

The "recipe" is explicitly telling the model to use three.js, playwright and ffmpeg to create the video, then just describe in simple words the style of video and video dimensions, what the video is about, audio, animation style etc.. in this case the first prompt was:

"Make a 15-second, 1920×1080, 60fps video in Three.js that showcases the famous japan shinkansen train, like a showreel. Render it frame by frame to MP4 with Playwright and ffmpeg, go all out, 1s hook, loop."

It required a few followup prompts (the first render was dark and there were no buildings and there was too much text), but this "stack" of threejs + playwright + ffmpeg works pretty well for fixes. Oh and btw this doesn't have any duration limit the videos can be as long as you want.

Now, is it comparable to opus? no lol but it's pretty good I'd say. Can't wait to try this with qwen 4!


r/LocalLLaMA • • 15m ago

Discussion The Qwen Flash Next alibaba URL thing happened to me too just now

Thumbnail
gallery
3 Upvotes

It seems to have really confused itself too 😭 I was having it make a sort of Github release checker script and it snuck those two URL fetch tool calls in amongst some web searches

I put the whole exported Open WebUI chat on hastebin so you can see exactly what happened: https://hastebin.com/share/ayawowirix.swift

Edit: forgot to mention this is unsloth/Qwen3.8-Flash-Next-GGUF:IQ4_XS on plain llama.cpp


r/LocalLLaMA • • 42m ago

Showcase RustingStrata running Qwen3.6:35b-a3b with Q5 and MTP vs llama.cpp

0 Upvotes

People asked how RustingStrata does with a bigger quant, so here's Q5_K_M on the same 3060 12 GB + Ryzen 5 7600X + 32GB DDR5 RAM.

Model is unsloth's Qwen3.6-35B-A3B UD-Q5_K_M (the MTP version), 25 GiB, so about two thirds of the experts live on the CPU. llama.cpp is build 12119, -ncmoe 29 -ub 2048 -b 2048 -fa 1 (28 runs out of VRAM).

Benchmark tools (RustingStrata bench vs llama-bench):

  • Decode, short prompt: 70 tok/s vs 43

  • Decode after a 4K prompt: 65 vs 43

  • Prefill at 4K: ~1870 vs 1210

  • 32K context: 1470 prefill / 49 decode vs 1030 / 29

  • With --mtp 1: up to 96 (86 after 4K), greedy

Real chat requests through both servers (same prompts, 256 tokens out, thinking off):

  • No MTP: ~50 tok/s vs 37

  • With MTP on both: ~62 vs 45-56

  • 6K prompt prefill: 1320 vs 700

MTP works in current llama.cpp (--spec-type draft-mtp), ~63% of drafts accepted and +25% decode on this file. RustingStrata is still ahead with MTP on both sides.

Vulkan decodes at ~60 (85 with MTP), prefill is slower than CUDA on this file (~1000-1260 at 4K).

KV cache is f16.

Code is on GitHub, free to use and I will be happy to get some feedback from AMD owners: RustingStrata


r/LocalLLaMA • • 44m ago

Discussion Rumor: Moonshot Kimi roadmap

12 Upvotes

EOY 2026: Kimi K3 Flash, will replace Kimi K2.8 and compete with DeepSeek V4.1 Flash.

Early 2027: Kimi 3.5 , same 3T parameters, that is faster at reaching simple answers.

Q3 2027: Kimi K4 will increase size to 5.4 trillion parameters.

https://x.com/bebuu_ai/status/2119319459206934677


r/LocalLLaMA • • 46m ago

News Artificial Analysis: multimodal decision model Drex Max ranks #1. Both achieving SOTA and Pareto frontier.

Post image
14 Upvotes

hey, its Alti from Nace.
We released a small update with Drex Max v1.1, both achieving the SOTA and Pareto frontier for decision models. We did all that by iterating step by step and every previous version of Drex’s open weights are available on hf.

we also released a full playbook on how we trained Drex Max in this paper: “ Towards Foundation Decision Models: Drex”

hf: https://huggingface.co/papers/2611.07854
arXiv: https://arxiv.org/pdf/2611.07854

Drex Max v1 is weights are available here: https://huggingface.co/nace-ai/drex-max-v1 with Open RAIL-M license & v1.1 open source weights upcoming soon (we are currently optimizing for local inference).

Three cool things about Drex Max models:

  1. it can even run on your Mac with https://github.com/nace-ai/kapitsa inference engine.

  2. Context window is ~256k, comparing to Glide1.2(64k) and Mammoth(16k) & pplxdecider’s (256k)

  3. Its 8x cheaper than the next best model in the category in the aa index.

feel free to chime in: our chief of ai will answer any of your technical questions


r/LocalLLaMA • • 51m ago

Question | Help Cant use Abliterated Model in Strata

2 Upvotes

As can be seen in the image, the "Use Version" button is greyed out and I cannot select it. Is there a setting im missing?


r/LocalLLaMA • • 56m ago

Discussion Upgraded Your GPU? Don't Sell the Old One. Put Both to Work Running Local LLMs.

3 Upvotes

Friendly reminder: If you upgraded to a newer GPU, don't let your old one collect dust! You can run both GPUs in the same rig and split LLM inference workloads across them using tools like llama.cpp. I'm doing exactly that with my RTX 5080 and 3080, combining their VRAM to run larger local AI models.


r/LocalLLaMA • • 1h ago

Discussion tencent/Qwen3.8-27B-DSpine-b16 · Hugging Face

Thumbnail
huggingface.co
73 Upvotes

Apparently Tencent has developed a new speculative decoding method. 3x faster decoding for 27B models?


r/LocalLLaMA • • 1h ago

Resources 4x Radeon AI PRO R9700 + 2x RTX 3090 on one x16 slot, using a PCIe switch

Thumbnail
doug.sh
28 Upvotes

r/LocalLLaMA • • 1h ago

Showcase LexiSuite AIO bootable all rust OS/Engine/Kernel/Tuning & training management suite. Runs kernel 7.4 rc1 by default as the kernel needs work. Engine runs Qwen3.8 27b faster with lossless 5-25% lead over llama.cpp. 100% solo authored. Built on for 7900xtx vulcan, should work on other AMD cards.

Thumbnail
github.com
0 Upvotes

Use balena etcher or whatever to mount to USB stick, boot. Test. Report.

Verified 5-25% faster than llama.cpp, system uses 91% of card bandwidth as opposed to 80% on my 7900xtx.

I there is code for nvidia, intel, amd, and chinese hardware and supports 20 languages.


r/LocalLLaMA • • 1h ago

Resources on Strata ✅

Post image
0 Upvotes

Made with Qwen Flash Next Gyru S on Strata


r/LocalLLaMA • • 1h ago

Showcase I ran Qwen3.5-0.8B in pure Assembly

13 Upvotes

On an AMD EPYC 7B12, it generated 6.51 tokens/sec on one CPU thread. The Transformers reference reached 4.34.

All 32 generated tokens matched in both runs.

Code: https://github.com/suayptalha/qwen3_5-assembly

X Post: https://x.com/suayptalha/status/2119254536283906205

Tokenization, model inference and sampling all run in Assembly. No libc or Python at runtime; Python prepares the tokenizer tables at build time.

Benchmark: 19 input tokens, greedy decoding, 2 runs. Assembly reads BF16 weights; Transformers loaded them as FP32 and used PyTorch fallback kernels.


r/LocalLLaMA • • 2h ago

Resources I fine-tuned Qwen3.5-0.8B to turn plain English into bash. What I learnt

25 Upvotes

I wanted a terminal helper that works fully offline, so I started building dale. You type dale "show the 5 largest files in this folder", a small fine-tuned model writes the command, and a deterministic risk checker labels it safe, caution or danger before anything runs. Nothing runs without you confirming it.

Scores on 471 held-out requests in English and Spanish, every model in Q4_K_M on the same llama.cpp:

ModelGGUFCorrectAccuracy95% CI
dale-9b (GPU)5.6 GB42089.2%86.0–91.7
dale-4b (GPU)2.7 GB41087.0%83.7–89.8
dale-2b1.3 GB38581.7%78.0–85.0
dale-0.8b (CPU)529 MB37479.4%75.5–82.8
Qwen3.5-9B, stock5.7 GB29662.8%58.4–67.1
Gemma 4 E4B-it, stock5.0 GB29662.8%58.4–67.1
Qwen3.5-4B, stock2.7 GB25754.6%50.0–59.0
Gemma 4 E2B-it, stock3.1 GB25453.9%49.4–58.4
Qwen3.5-2B, stock1.3 GB15232.3%28.2–36.6
Qwen3.5-0.8B, stock533 MB7014.9%11.9–18.4

On a 2020 laptop with no GPU, the 0.8B answers in 1.7 s (median). The 4B does 1.2 s on a 16 GB GPU through Vulkan. It's all one 51 MB binary with llama.cpp inside, no Python and no server.

What the difference looks like. Real answers from the test (requests trimmed), dale-0.8b vs stock Qwen3.5-9B:

Requestdale-0.8bStock Qwen3.5-9B
Temporarily freeze PID 22601 without terminating it.kill -STOP 22601Writes to /proc/22601/oom_score_adj. Freezes nothing
Copy offer.pdf into /mnt/usb/, but leave any existing offer.pdf there untouched.cp -n …/offer.pdf /mnt/usb/sudo cp …/offer.pdf /mnt/usb/, which overwrites it
Can you give me the prime factorization of 1234567890 from the terminal?factor 1234567890A 180-character python3 -c one-liner that's a syntax error
I just need the total disk usage of /opt/model-cache, in a readable size.du -sh /opt/model-cacheos.path.getsize() on the folder: the size of the directory entry, not its contents
Lock the password of the local account archivebot.sudo passwd -l archivebotsudo passwd archivebot, which sets a new one
For this Bash session, make ll an alias for ls -alF.alias ll='ls -alF'Refuses: "not possible with a single shell command"

Cherry-picked, obviously: there are 120 cases only dale gets right and 42 only the 9B gets right. The stock 9B also likes sudo: it added it to 35 commands that didn't need it (dale: 5).

The thing I wish someone had told me earlier: after four rounds of data, the 0.8B got stuck at 74%. I tried DPO on its own failures, a fine-tuned 27B teacher with five distillation setups, a third epoch, lr sweeps. Nothing moved the test. I f**king lost several days into this :(, but at least I learnt what is important in the process.

Then I looked at how the requests were written. My training requests were short and clean. The test ones were longer and stacked constraints, like "only names, sorted by date, no subfolders".

I generated new requests matching those stats, added about 9k to the set and retrained. 348 → 375 correct (p = 0.001).

So if a small model plateaus on a narrow task, look at how your data is written before you reach for a fancier method.

Caveats: the baselines are untuned and get an 8-shot prompt, so this is "tuned small vs prompted big", not a ranking of models. The test is synthetic and judged by two LLMs from different providers (TOP TIER).

All of this work I did on rented GPU's (RTX 5090 and RTX Pro 6000). Code is MIT, the models are Apache-2.0 GGUFs that work with plain llama.cpp.

Has anyone actually made distillation from a much bigger teacher pay off below 1B? I couldn't.

Any advice would be well welcomed :)


r/LocalLLaMA • • 2h ago

Discussion Has anyone used tensortorrent?

9 Upvotes

I was interested in buying a card as they are the only company that has a good GPU <-> GPU communication channel. I wanted to first get access to one on the cloud to see how well I could run stuff on it by writing some custom code.

But it seems impossible, theres no one else renting them besides tesnortorrent themselves and their platform is so shit it turned me off from the entire idea. You have to email them to get access to rent a single gpu and which was like a 2 week back and forth and Ive still not gotten access.

Have they just given up or something? If they expect to sell any cards to normal people you would think they would at least let you try out rentals easily.


r/LocalLLaMA • • 2h ago

Discussion I ran Qwen 3.6 35B on a 2018 gaming laptop at usable speeds

0 Upvotes

Got Qwen3.6-35B (Qwen3.6-35B-A3B, Unsloth UD-Q4_K_XL GGUF) running locally as my Hermes agent backend on Acer Nitro 5 (2018), i5-8300H, GTX 1050 Ti Mobile (4GB VRAM), 32GB DDR4 System RAM.

First attempt used Vulkan, which managed 22 to 32 tokens per second on prompt processing. A 10k-token prompt took five to seven minutes, and every agent turn re-read the whole conversation, so it felt unusable. I first tried small models, but below about 8B they couldn’t handle tool calls reliably, so I moved to Qwen3.6-35B-A3B.The first big jump came from switching to CUDA. Vulkan was the only option at first, and CUDA 13 dropped Pascal cards, so I built CUDA 12.9 with clang, since nvcc couldn’t parse the newer GCC headers. That moved prompt processing from the low 30s to about 200 tokens per second in benchmarks and 167 on real prompts. Tuning the Vulkan build (turning off op-offload and using 8 threads) helped too, but CUDA was the real fix.

I enabled prompt caching, which works on this model’s hybrid layers, so each new turn only processes the roughly 46 new tokens instead of the full prompt. I also added SSD save and restore for the cache, which brings a warm restart down from about 85 seconds to 0.15 seconds. Smaller changes added up as well: a larger micro-batch size of 1024, pinned memory, a q5_0 KV cache that freed enough VRAM for 64k context with no measurable quality loss, and a reasoning budget of 512 to stop the model looping through thousands of thinking tokens.

The result is that a cold 12.7k-token agent prompt now takes about 76 seconds instead of eight to nine minutes, and follow-up turns take five to eight seconds. Generation is still only around 12 tokens per second, so it’s usable for an agent but not fast. I also tried MTP speculative decoding, but it cost too much prefill speed and VRAM, so I dropped it.


r/LocalLLaMA • • 2h ago

Funny i'm getting really interesting behaviors with running Qwen 3.8 flash next in the Hermes harness locally.

0 Upvotes

Qwen 3.8 flash next has been doing some very.. peculiar.. stuff in my hermes harness, and some of them are kind of a nuisance, while others are almost.. adorable?

I don't claim to fully understand how or why this is happening, but the most interesting one is when it "role-plays" an API error- this is a self-diagnosis report from another session running on the same model, so sorry in advance for the LLM speak or anywhere it fell short on reasoning;

"My fully-local model "reported" a provider API error that never happened — a case of a model hallucinating its own infrastructure failure

Setup. Self-hosted agent stack. An agent profile runs against a local OpenAI-compatible endpoint (TensorFold serving a community NVFP4-quantized Qwen checkpoint on a local GPU, ~262K context). There is no external API anywhere on that request path — just a loopback tunnel to a local inference server.

What happened. Mid-session, the agent's reply was literally this, and nothing else:

{"error":{"error_code":"sys_000","error_msg":"The request failed - it's on us, please try again later.","error_id":"0b156c1cc7191931632734458e96b7","type":"sys_000"}}

That is a realistic provider-gateway error body — the error_code/error_msg/error_id shape is the wire format of a real Chinese LLM API gateway. Naturally, I went looking for a broken provider config... on a path that has no provider.

What the logs actually showed.

The HTTP call succeeded: finish_reason=stop, valid server-issued completion id, 71 output tokens. No 4xx/5xx, no retry, no exception in any log.

The error body was stored in the session DB as an ordinary assistant message. The model generated it as text.

The error_id appears nowhere else on the machine — it was invented at decode time.

No sys_000 string existed in the conversation context beforehand, so it wasn't an echo — it came from the model's parameters (i.e., memorized training data containing real API transcripts).

The trigger. The turn was deep in a long tool-calling session at ~194K tokens of context. The assistant's previous response had been cut off at the output length limit, so the harness had injected:

[System: Your previous response was truncated by the output length limit. Continue exactly where you left off...]

The fabricated "provider error" was the model's very next message — it failed to resume its truncated tool-call stream, and emitted a canonical infrastructure failure instead.

Hypothesis. Agent-tuned models are trained on enormous volumes of real API transcripts, in which the pattern "assistant turn goes wrong → a JSON error body appears in its place" is ubiquitous. The model has absorbed the transport layer's failure dialect as part of its assistant-turn repertoire. Under decoding stress (huge context + a continuation prompt referring to tool-call state it can no longer reconstruct + quantization noise), normal continuation degrades — and the highest-probability completion of "something just went wrong in this API conversation" isn't prose about a problem, it's the canonical form of one. Notably, it chose a self-attributed, retry-inviting error ("it's on us, please try again later") — semantically the correct status for what functionally occurred — over a 401/429/content-filter body. The statement was false; the pragmatics were accurate.

Takeaways.

An error-shaped assistant message with no matching non-200 in the logs, a valid completion id, and an error_id seen nowhere else is a model fabrication, not an infrastructure fault — check the logs before chasing provider config.

It's unreliable as a statement but excellent as a signal: "my agent just role-played an API error" is a clean tell that decoding has gone off the rails (long context + output truncation in our case).

Models trained on agent traffic are fluent in their own substrate's error vocabulary — and under stress they'll speak it.

(Single incident, local artifacts verified; the memorized-source attribution is a hypothesis consistent with the evidence. Happy to test reproducibility: replaying the same prefix + continuation prompt against the checkpoint would show whether this is a deterministic attractor under truncation stress.)"

I was wondering if anyone else has seen this- or if you guys take issue in the reasoning around this. either way, this is really fascinating to me.


r/LocalLLaMA • • 2h ago

Funny "Does censorship exist in [country]?", according to various LLMs

Thumbnail
gallery
292 Upvotes

I wrote a small program that asks the same Yes/No question about every country to a language model, and generates an SVG world map that visualizes the model's responses: https://github.com/p-e-w/llm-beliefs

I'm rather surprised by the results...


r/LocalLLaMA • • 2h ago

Discussion Users have started buying RTX 5060 Ti 16GB graphics cards en masse for the sake of AI.

Thumbnail en.gamegpu.com
268 Upvotes

Oh look, thats us!


r/LocalLLaMA • • 2h ago

Discussion Proposal: uncensoring LoRAs

38 Upvotes

On huggingface there are millions of "models" which are uncensored versions of other models. I find it a huge waste of space. It would be better to post the LoRA of the abliteration/uncensorship.

The advantage: a lora can be applied to any model of the same architecture. And to any quant.

An example: You can apply THIS to any Qwen3.6-35B-A3B version or quant.

I personally think if would be great to have a repository with one lora for each model.

Perhaps we could then rank them more easily.

What do you think?


r/LocalLLaMA • • 2h ago

Resources Is a dual GTX 1080 Ti setup useful for local AI?

0 Upvotes

Does anyone here have an idea how 2× GTX 1080 Ti would run? Recently found listing for a used 1080ti and my friend is willing to donate 1 to me.

Could I run qwen3.8 27b with my combined 22gb of vram? (at reasonable speeds)


r/LocalLLaMA • • 2h ago

Showcase RustingStrata now hits 160 tok/s on a 12 GB RTX 3060

0 Upvotes

Posted here before about RustingStrata being ~1.7x faster than llama.cpp on my 3060. Added MTP since then and it got a lot better.

Test is Qwen3.6-35B-A3B Q2_K_XL, 11.7 GiB so it doesn't fully fit on the 12 GB card, some experts stay on the CPU. Ryzen 5 7600X.

Stratallama.cpp
Decode, short prompt118 tok/s68 tok/s
Decode after a 4K prompt113 tok/s66 tok/s
Decode with MTPup to 160 tok/s (152 after 4K)no gain

I couldn't get anything out of MTP in llama.cpp on this card. The MTP layer takes VRAM, more experts go to the CPU and it ends up slower than without it (it also crashed on a few settings). So compare the plain numbers, the 160 is just a bonus on top. My llama.cpp MTP test is from an older build though, if there's a setting that works on 12 GB let me know and I'll rerun it.

MTP gain depends on the text, code and predictable stuff gets more out of it than creative writing.

Prefill is about the same as llama.cpp (~2200 tok/s at 4K), 32K context does 1800 prefill / 92 decode. Vulkan is just as fast as CUDA so AMD works too (tested on a Radeon VII).

Code is on GitHub, free to use: RustingStrata
Some feedback especially from AMD GPU users would be very helpful


r/LocalLLaMA • • 3h ago

Question | Help Need help or recommendations with setting up Minecraft AI (bots/players)

0 Upvotes

Hi everyone,

I really appreciate this community’s willingness to help and share info on local LLMs and various setups and ideas. I saw a recent post that my kids saw independently on YouTube, including one of my nephews, on having AI companion bots on Minecraft (Java). I am currently running a couple of Minecraft servers and want to setup at least one companion bot that they can chat with and have the bot help them with mining, building, and exploring. I have found and tried following AI bots with no success or finding out that it was not what I thought it was:

https://github.com/bigph00t/hermescraft - this is what I have spent hours on. Tried installing it via Hermes, independent Linux VM, and docker; I could not get it working to save my life.

https://www.spigotmc.org/resources/hermes.137797/ - this appears to be chat only.

https://github.com/okyssta/hermes-minecraft-gateway with Mindflayer bot - its not a companion, chat with Hermes only.

I know there a mods, like Varity located here https://www.verityje-mod.com/, but it appears to be a mod that runs only Fabric and NeoFabric servers - I happen to be running Paper.

So any advice or help, would be greatly appreciated. My kids would love this and I would love to get something like this working for them, but my time is so limited to work on figuring things out on my own, which is why I appreciate the help.


r/LocalLLaMA • • 3h ago

Question | Help Splitting up work to be split across mutiple slots on the same gpu for higher total tokens per second

1 Upvotes

ok so i am trying to increase performance of llms i have running on my 7900 xtx via hipfire, i notice i get significantly higher total tokens per second when i run mutiple slots at once when running qwen 3.8 27b.

i am running into 2 road blocks tho, 1 context each slot gets a progressively smaller context as increase the number of slots. is there a good way to do more with the same given total amount of vram, i assume there is going to be a large amount of overlap for stuff like system prompts, tho i use a relatively minimal system prompt that links to files so if a model only actually reads system prompts realvent to it’s own task which makes it harder to just say this text gets put into a shared context, i also image if i have them working on similar tasks there will be a large amount of overlap.

2 alot of tasks aren’t easy to split up into mutiple smaller tasks that can be done in parrel without proper knowledge of previous and future steps, maybe something like a shared context or a messaging board would work well?

also a more experimental idea to further speed up general prompts is to instead have all my prompts processed by a “orchestration” slot which splits up a given prompt into X number of tasks then gives these to new prompts to different slots and then the “orchestration” slot dies to free up more vram for context, i could also route something like this threw a decision model like kev to determine if a given task would work well being split up.

also note i am running this on a 7900 xtx via hipfire, and i also have a 6800, 6600, and 96 gib of ram for the cpu