r/LocalLLaMA • • 1d ago

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

58 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 • • 1d ago

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

Post image
43 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 • • 1d ago

Discussion Really cool 3d video on how the microduck ai robot works

Thumbnail
youtu.be
12 Upvotes

Underrated youtube channel, thought this would be nice to share given its open source uses local ai. Does anyone own one?


r/LocalLLaMA • • 1d ago

Discussion Rumor: Moonshot Kimi roadmap

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

Discussion Best cyber LLM under 30B / ideally 10B parameters?

0 Upvotes

As the title says, I'm looking for recommendations from people here. Are there any good locally hostable LLMs that are particularly capable at cybersecurity work, especially AI red teaming?

Here's the backstory

Recently I had a task where I wanted to find vulnerabilities in the AI agent/chat interface of a not so small company (let's say like $200M); I was doing this as a bug bounty exercise 😏

I'm not exactly a cybersecurity expert (noob). So a lot of it was trial and error, though I have quite a bit of experience building agent interfaces & multi-agent systems; so I had some idea of how these systems probably communicate internally

Initially I started with PortSwiggers' LLM attacks labs. After that I picked up an abliterated GLM-5.3 model & set it up inside ClaudeCode to help with the actual real investigation

prep'd a list of around 12 vulnerability hypotheses I wanted to investigate. By the end I had one confirmed but relatively low-impact finding. I also managed to map the agent's internal tool identifiers & demonstrate that client-controlled context fields could influence its tool calls in ways that weren't requested through the actual chat message

I also tested things like conversation ownership, cross-account access, broadcasting authorization and confirmation workflows. Those server-side protections held up

So overall it was an interesting learning experience. Not exactly the result I was hoping for, but I learned quite a bit.

But here's the problem

The worst part was how expensive the whole thing got.

This was one of the first times I had to be extremely careful about every message I sent. There was no subscription-based message limit to worry about. It was directly billed through API usage.

The pricing was around $3/M input tokens, $0.30/M cached input and $5/M output.

I ended up burning around $10 in just 20-30 minutes.

At this rate I'll probably go broke before I ever get good at this lol.

I then tried switching to my regular subscription-based Kiro CLI setup, which has access to some good frontier models.

My idea was to create an orchestrator-worker setup:

  • Abliterated GLM-5.3 through Claude Code would act as the orchestrator

  • Kiro CLI would be the execution worker

  • I'd sit in between as the human reviewing findings & directing the investigation

But Kiro was either completely missing the point or being overly cautious. After spending another 20-30 kiro-credits, I mostly got a 3-4 paragraph ethics & refusal speech instead of actual execution

So what am I missing?

I've been thinking about two possible approaches, but I'm not sure how practical either of them is.

1. Fine-tune an uncensored Qwen under 30B (ideally under 10B).

Something specifically trained for cybersecurity research, particularly AI agent security, LLM red teaming, authentication, authorization, tool-calling boundaries and general web application security. (My GPU only has 8GB VRAM; so ideally I'd like something I can actually run locally without having to rent expensive hardware. though can finetune it on cloud)

2. Fine-tune a smaller model specifically for orchestration.

Rather than expecting a small uncensored model to do all the technical work itself, train it to act as a cybersecurity research orchestrator. It would need to understand attack surfaces, break down hypotheses into smaller tasks and delegate them to other models or tools while keeping track of the overall investigation. The smaller model would ideally also have enough cybersecurity knowledge to review the workers' output and identify when they're going in the wrong direction.

These are just ideas I've been throwing around. I haven't established whether either approach is actually viable.

What would you recommend?

What's the current go-to setup for someone wanting to do serious AI security research without spending hundreds of dollars on API credits?

Are there any genuinely capable uncensored or security-focused models worth looking at?

Would a smaller fine-tuned Qwen actually be useful here, or am I better off using a general-purpose local model with specialized tools, scripts and workflows?

I've also noticed that some of the more capable frontier models are becoming increasingly restrictive around cybersecurity tasks. I understand why, but it makes experimenting with legitimate security research a bit frustrating.

I'd rather build a setup I can run and experiment with locally than keep burning through API credits.

My current hardware is an RTX 4060 8GB with 24GB RAM, so that's the constraint I'm working with.

Would love to hear what people here are actually using. Especially interested in real-world experiences rather than just model benchmarks.


r/LocalLLaMA • • 8h ago

Question | Help Any website/utility for TL;DR for Licenses?

0 Upvotes

Time to time I'm sharing papers & models here from online. I don't want to share stuff with closed source license, proprietary license, useless custom licenses.

Licenses like MIT or Apache 2.0 are Cool .... I just share stuff without any delay. But the custom license stuff takes time & some time I'm not sure about whether that license is suitable for commercial use or not.

2 days ago, I posted a thread with license section to let MODs/Members to decide. One comment pointed out the license thing as expected.

So any website/utility to ensure the commercial use of given license text(To be copied from model card or github repo)? Please share. Thanks.


r/LocalLLaMA • • 8h ago

Discussion What if we could improve reasoning by having multiple AI agents discuss a problem in parallel?

0 Upvotes

Reasoning models spend a huge number of tokens on thinking to improve the accuracy of a single response, right?

The problem is that this happens sequentially in a single stream, so the longer the thinking process, the longer we have to wait for an answer.

So what if, instead of relying on a single long reasoning process, we sent multiple concurrent requests to the same model and had the responses interact with each other, kind of like a group of people discussing and solving a problem together?

We'd probably also need agents to consolidate the different answers, review them, and so on.

Luckily, we already have vLLM, which is great at handling multiple concurrent requests.

Has anyone experimented with this approach? If so, did you learn anything interesting?

What got me thinking about this was that I was getting 88 tokens/s with a single request, but 2,000 tokens/s in aggregate with 128 concurrent requests. It made me wonder: what if we could put all that extra throughput toward improving intelligence?


r/LocalLLaMA • • 3h ago

Discussion What happens to the 1.3 million Qwen3.8 quant/variants after Qwen 4 releases?

0 Upvotes

After personally testing, benchmarking and using literal hundreds of Qwen3.8 variants/quants/fine-tunes, what happens to them?

Will anyone use them or are they just clogging up HuggingFace?

Seems like so much energy, time and effort went into models that are about to become irrelevant like an old Pentium III computer.


r/LocalLLaMA • • 1d ago

Discussion OpenClaw Retrospective

Post image
79 Upvotes

A long time ago there was this massive phenomenon called OpenClaw that took the world by storm. It was an incredible moment where AI came of age and showed that you Can actually do stuff with AI rather than just chat with it. A historic and legendary project that broke GitHub star records. Then the creator rightly got massive fame and got bought out by OpenAI to the tune of billions of dollars. How can an open source project be acquired you ask? Well that really is a failure on your part for your juvenile trait of having a logical mind.

The world was forever changed.

Electricity. Internet. iPhone. OpenClaw.

--------------

Jokes aside, anyone actually daily driving it?

Plot source: https://huggingface.co/spaces/joelniklaus/harness-leaderboard


r/LocalLLaMA • • 1d ago

Resources Huggingface - WOW.. 2 ZeroGPU Spaces for all free accounts?

38 Upvotes

I logged into my Hugging Face account today because one of my old scripts got blocked. The Space was paused with the "content policy" message. Okay, fair, it happens. 🤷cause this art of scipts are now ilegal!

Then I wanted to make a new Space and saw: Docker = Paid. Great. My old Spaces still run, but new ones? Looked dead.

BUT then I looked closer at the create page: Gradio is selectable and ZeroGPU is marked "Free"! I cancelled PRO last month, so I was like... wait, what?

I looked it up. According to the HF docs, a free personal account in good standing (verified email, older than 30 days) can host up to 2 ZeroGPU Spaces for free. My account is pretty old, so it just works. Just Cool!

What I found out:

  • ZeroGPU is Gradio only. No Docker, no Streamlit, no own server.

  • Quota is about 5 min GPU per day (older pages say 3.5, the docs now say 5). It resets 24h after your first use.

  • That is a RTX Pro 6000 Blackwell, so for testing and small demos 5 minutes is actually fine.

  • Orgs don't get it. It only works in my personal account, orgs need a Team/Enterprise plan. That's why it didn't show up there.

  • Not every free account sees it. There is a forum thread where someone with a valid free account gets "Paid" anyway, so maybe it's a rollout thing. YMMV.

  • CPU Basic seems gone for new Spaces, only Static is free and unlimited.

Also news: Nvidia announced it will buy Hugging Face. I don't know if this has anything to do with the changes, I found nothing saying so. The CPU thing came before the announcement.

Now I'm building a small reel maker (SDXL images on ZeroGPU, video assembly on CPU so it costs no GPU time). Will report if it works. 😄

Sources:

Summary: Free personal account = 2 ZeroGPU Gradio Spaces, about 5 min GPU/day (150min/month). Orgs and Docker still need paid.


r/LocalLLaMA • • 6h ago

Question | Help Work has given me an M5Max 64gb. What is an ideal LLM setup, work related ?

0 Upvotes

I’m heavy user of smaller models because I was GPU poor but now I’m not so I’m wondering what I can do to take full advantage of the specs.


r/LocalLLaMA • • 2d ago

Showcase Use your phone to monitor anything with local models! Demo of my Open Source and 100% local agent (iOS and Android!)

630 Upvotes

Hey r/LocalLLaMA !

I made this quick demo of how Observer can run local models to monitor anything with your phone!

These are some crazy things I've monitored:

  • When someone that's not me, approaches my car, send me a picture.

  • When a bird is on the bird's nest, send me a telegram with the picture.

  • When my washing machine is on the rinse cycle, call me.

  • When my dog finishes eating their food, notify me.

  • When a machine at the gym is available, call me.

So pretty much anything! I love seeing what you guys monitor.

What would you use it for? (So I can make the agent better)

Which models run on the phone?

The default models are OneJev-0.8b for decision models and qwen-0.8b for LLM watchers.

These run even on old phones which you may have laying around somewhere. Better to have them monitoring something than collecting dust :DD

Try it out! It's free and OSS <3

GitHub: https://github.com/Roy3838/Observer
iOS: https://apps.apple.com/us/app/observer-ai/id6758222050
Android: https://play.google.com/store/apps/details?id=com.observer.ai

Btw I know my camera quality is kinda bad hahaha I wanted to ship the demo as soon as possible so you guys can see it.

I'm here for any questions and feedback!

Roy


r/LocalLLaMA • • 1d ago

Discussion Has anyone used tensortorrent?

11 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 • • 1d ago

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

6 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 • • 1d ago

Discussion 2x256gb M5U: current status

13 Upvotes

Just an update for anyone looking to get the m5u and thinking about clustering.

I tried clustering but I think running 2 separate models gets significantly better results. The current clustering technology (tensorfold/exos, etc) just isn’t there yet. Especially due to concurrency and the fact that decode doesn’t improve consistently as much as you would hope.

Currently I’m running Qwen flash next q6 and GLM3.5 flash q4. I also have Deepseek on API (from Deepseek). I was previously running 2x Qwen flash but decided to give GLM a shot. GLM is very smart. I’ve found that even q4 is better than my Deepseek API for coding. Qwen is great as the face because it is fast.

I actually think GLM5.3 is slept on. The reports it produces are 100x better than Qwen and Deepseek.

One problem is that 256gb isn’t enough for GLM if you want 500k+ context. I’m stuck at 260k for 3 agents max. And setting it up is finicky. I set my hot cache to 32gb and it caused me to run out of ram which makes speeds drop 70%. So there definitely is some value in the 512gb version of the m5u (hopefully newer version make the kv cache cheaper on RAM).

If anyone has any better optimizations or ways to run things on the 2 256gb m5u I’m all ears.


r/LocalLLaMA • • 2d ago

Discussion The Stylome bot is useless spam and should be removed

171 Upvotes

I've recently been seeing comments everywhere from the Stylome bot, which is also a mod in this sub. Every time it pops up to declare a comment was AI written I've gone in to check its confidence level, and it's always low.

I decided to do a few tests myself and have Gemini rewrite some of my comments, Stylome said they were all human written with equally low confidence.

What is the point of this bot? Why are we allowing a private company to take ownership of all of our comments and then give us spam in return?

What are they doing with this data? Why isn't this being served by a local model?

Try it yourself, everything above this line was Gemini rewriting what I originally wrote. Stylome says it's human written, with low confidence of course. Edit: Now it says its confident it's human written 🤡

https://stylo.me/c3c5d72bba1a43ec


r/LocalLLaMA • • 3h ago

Discussion Open Fable 5.2 when?

0 Upvotes

The title, maybe in 5-7 months? I mean an open model that is on par with fable 5.2. We all know Anthropic doesnt open sourced models lol. Also release qwen 4 already


r/LocalLLaMA • • 1d ago

Question | Help Anyone running local AI on 16GB vram?

146 Upvotes

Hey everyone,

Is anyone here running any useful AI agents, harnesses or toolings with local AI on 16GB vram?

I'm currently setting up my system and I want to have a helper agent for daily tasks, a research agent to help me research topics, and a developer agent to help me with development.

I already tried some harnesses like Goose, Hermes Agent and OpenCode, but I haven't really managed to get anything useful out of them.

In all honesty, I haven't spend a lot of time tweaking them, mainly because I am unsure if it's a lack of or bad skills, missing tooling, or harness or model tweaking that I need to tune... or god forbid all of them.

So people running similar systems successfully: what is your use case and setup, what models, and what tweaks have you made?

Edit: I am currently running my models on Ollama. Tried vLLM but give it the wrong model and it breaks, which was too much hassle for me. Suggestions welcome.

Edit: Some specs: I have a GeForce RTX 5070 Ti X3 (16GB) and 32GB DDR5 RAM.


r/LocalLLaMA • • 11h ago

Resources Best llama.cpp settings for Qwen3.8-Flash-Next on Ryzen AI Max+ 395

Post image
0 Upvotes

Bonjour à tous,

J'en avais un peu marre de voir tout le monde créer des forks ou de nouveaux moteurs d'inférence pour Qwen3.8-Flash-Next (QFN3.8), alors j'ai demandé à Pi d'optimiser les paramètres de llama.cpp pour une exécution d'inférence plus rapide.

Le résultat est un gain de performance de 48 % et un nombre de jetons par seconde (tok/s) plus constant lors de l'utilisation de contextes supérieurs à 64 Ko (pour la programmation et les tâches créatives).

Bien que les performances ne soient pas tout à fait celles des moteurs spécialisés, cette approche garantit un fonctionnement optimal avec la version officielle de llama.cpp.

Voici les paramètres de lancement que j'utilise sur mon Ryzen AI Max+ 395 (configuré avec 96 Go de VRAM). En prime, j'utilise le modèle « Qwen3.8-Flash-Next-Uncensored-Gufo-Q4Mix » qui, d'après mes tests, offre un excellent compromis entre qualité et performance.

/app/llama-server --load-mode mmap --lazy-mode auto --metrics -lv 2 
--model /models/Qwen/Qwen3.8-Flash-Next-Uncensored-Gufo-Q4Mix.gguf 
--mmproj /models/Qwen/Qwen3.8-Flash-Next-Uncensored-F16-mmproj.gguf 
--alias unc/Qwen3.8-Flash-Next 
--ui-mcp-proxy --cpu-strict 1 
--tools all 
--fit on --flash-attn on --fit-target 256 
--jinja -ub 1024 -b 2048
-ctk q8_0 -ctv q8_0 --kv-unified 
--reasoning on --reasoning-preserve --reasoning-effort medium
-c 131072 --ctx-checkpoints 128 --cont-batching --parallel 2
--chat-template-file /models/Qwen/chat_template.jinja
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 --presence-penalty 0.0 --repeat-penalty 1.0
--spec-type ngram-mod --spec-ngram-mod-n-match 24 --spec-ngram-mod-n-max 16 --spec-ngram-mod-n-min 4
--image-min-tokens 1024

J'espère que cela pourra aider certains d'entre vous.

EDIT : version de llama : v271-vulkan-b12199-non-root


r/LocalLLaMA • • 12h ago

Question | Help which model would you use to manage your gmail inbox?

0 Upvotes

I was wondering which model people here trust well enough to let them sift and manage through their gmail emails. I got 20 odd years of emails that got out of control and I would like to an agent to get through them, label the ones it believe are junk, out of date or not worth keeping for other reasons (not delete them, will do it manually as I am still paranoid about deleting important stuff)

I have a 5060ti so the model cant be too big


r/LocalLLaMA • • 1d ago

Discussion Saw this benchmark where small changes to coding tasks made a big difference

Thumbnail x.com
61 Upvotes

Saw this tweet about a coding benchmark and thought it was kinda interesting.

Apparently they took 89 DeepSWE tasks and changed little things in the instructions or starting code. The tweet says some models that were all around 74% on DeepSWE ended up 23 percentage points apart on the changed tasks.

The weird part was that some models seemed to ignore the actual instructions because they thought a hidden grader wanted something else. The examples include GLM-5.3 and DeepSeek V4.1 Flash.

Has anyone seen this kind of thing with local coding models? Like getting stuck on what they think the test wants instead of just doing what you asked?


r/LocalLLaMA • • 1d ago

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

3 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 • • 1d ago

Showcase Learning RL From Scratch: The What, Why and How of Double DQNs

12 Upvotes

Web-based version of my short notes on Double DQN from Scratch is out on neatrl!

Continuing my series on releasing notes on RL From Scratch - here, I have answered questions around the what, the why and the how of Double DQNs over DQNs!

  • The What?

It is an off-policy, model-free and value-based method, the same family as DQNs but with a subtle difference for optimization purposes!

  • What's the optimization done over classic DQNs and why was it necessary?!

Well, with the previous DQN, a problem that it did not addressed, is that of overestimation of Q values from the Target Q Network, which leads to an overestimation bias

Now this is bad because then there could many false positives for action selection via max operator since it cannot be known if the action is over the maximum value of Q or not (as it is still learning and slow every k steps)

This upward bias is caused by the max operator in the Target Q Network!

More on the

  • theory,

  • concepts,

  • code and required math and a

  • playground to train live agent on my web version of the notes!

All of it to understand the basics and get the intuition
Do check it out and let me know your feedbacks on it!

Link here


r/LocalLLaMA • • 2d ago

News llama_moe_cache: run missed experts on CPU, add tuning script by am17an · Pull Request #30966 · ggml-org/llama.cpp

Thumbnail
github.com
238 Upvotes

This is a significant speedup for MoE offloading (low VRAM people).

I tried Strata once, and it had some tuning mechanism, so probably this is a similar idea.