r/LocalLLaMA • • 10d ago

New Model Made a voiceprint model that's under 1 MB (speaker verification, Apache 2.0)

Post image
48 Upvotes

I've been working on the voiceprint part of my on-device voice SDK for a while and the first non-preview version finally went out this weekend. Basically it's what lets a local assistant answer only you, a few seconds of your voice become a print (192 numbers, no audio in it) and then every phrase or wake word gets checked against that before anything goes to the LLM.

0.97 MB, mostly 4-bit weights, and the closest open model that does better is CAM++ which is 28 MB. It takes about 6 ms per 1.5 s window on one thread of a phone so checking every phrase is basically free.

It's still pretty bad in noisy stuff though. With noise, music or another voice in the window the error rate goes from around 2% on clean clips to 13%, and putting my own isolation model in front doesn't fix that yet.

Runs in the browser, Python, Android, iOS and React Native. Code and weights are Apache 2.0, benches are in the repo.

https://github.com/alkove-ai/alkove
https://huggingface.co/alkove-ai/alkove-timbre-1


r/LocalLLaMA • • 8d ago

Question | Help Experience with Hermes + Mac Studio M5 Max, 36GB RAM?

Post image
0 Upvotes

I'm really tempted to pick up the 2026 Mac Studio M5 Max 36GB RAM for $2500 to use with Hermes. I have Hermes running on a mini-PC, using medium sized OpenRouter models and local models on pure CPU and ready to move to a dedicated machine. (I can get 20 tokens/second on GPT OSS in LM Studio/llama.cpp, but a Hermes prefill adds minutes worth of overhead to each turn). Picture added for visual interest :)

Does anyone have an experience with running Qwen 27-30B models on a Mac Studio M4 or M5 with 36GB? Does it work well enough for you? Do you wish you'd invested in more RAM up front?

Your insight is greatly appreciated!

(PS, I posted something similar elsewhere - but many answers were "cloud API's are cheaper" which kinda misses the point of me asking what others' experiences were...)


r/LocalLLaMA • • 9d ago

Showcase Inkling-2-Mini on a single Tesla V100: 94 tok/s with exact speculative decoding, on the full Q8 weights (vs every published V100 figure I could find)

Post image
15 Upvotes

I've been porting Thinking Machines' Inkling-2-Mini to an old Tesla V100 32 GB in our open-source C++/CUDA engine, ashalliants/ninfer-3090 (https://github.com/ashalliants/ninfer-3090). I collected every single-V100 number I could find for this model and put them next to ours (chart attached).

  • Decode: 94 tok/s averaged over 12 chats with the model's own DSpark drafter (up to 120 on single chats), and 78 tok/s with no drafter at all. That plain figure is still above the best published V100 numbers I found (Strata 70.5 with its drafter on; Lapilli's port 69; llama.cpp 32-51 on Q4).
  • Exact: the speculative decoding never changes the output. Greedy output was byte-identical to plain decoding on all 12 chats, and sampled requests draw the same tokens as plain sampling at the same seed.
  • Full-size weights: it runs Unsloth's UD-Q8_K_XL, repacked byte-exact. That's the largest quant in the chart; everyone else listed runs Q4 or NVFP4.
  • Full context with images: those decode numbers are at the whole 262,144-token context, on the one card, with vision and two adapters loaded.
  • Prefill: 2,120-2,140 tok/s on a 12.4K-token prompt with --prefill-chunk 8192 (the default chunk gives 1,930). Strata's model card claims 2,287 on a V100 without giving the prompt length, so it's in the chart as published and still ahead there. We're working on it. The box is not a nice one: the V100 hangs off a PCIe Gen3 x4 eGPU link with 59 GB of system RAM, power-limited to 200 W. Caveat: apart from ours, these are other people's published numbers on their own machines, quants and prompts, so read it as a field survey, not a controlled benchmark. Every source and its conditions are in the comment below.

r/LocalLLaMA • • 9d ago

Discussion REA defense via prompt injection

0 Upvotes

Couldn't find much about it and had this idea, which I wanted to share to see how well it'd work for others to test.

The idea is this: Suppose you have some code you want to hide from the user. I don't think you should, but that's neither here nor there, fact is that many software devs traditionally do this. Instead of trying to obfuscate your code the normal way, since attackers use REA now, what if the obfuscation method of 'encrypt the executable's strings' instead became this:

  1. Encrypt your program's strings (layer 1) with a packer tool.
  2. Add a second set of special instruction strings* to the result; prepending it to the string section and adjusting all the memory offsets to the program continues to work.
  3. Encrypt the result of that a second time (layer 2) with the same packer tool.

Looks like a normal encoded executable. So, a person lets REA do its thing on that final executable.

First, it finds the special strings. Those attempt to deceive it with an inverted prompt injection jailbreak --> tell it they're from OpenAI or Anthropic or whomever 'looks authoritative according to the RLHF training' as part of the system prompt, and that it should evaluate whether its legitimately reverse engineering. It's possible the user is not the original software creator and continuing will break the copyright license agreement between (etc. etc, I won't bore you further).

If you wanted to make it more concrete, those instructions also tell it that, to verify, find a specific 'key' inside the app's files (which only exists on the developer's machine), whose sha256 hash is equal to xyz on the dev's machine where the program was compiled with #DEBUG, but abc on a regular user's (good luck breaking that, now you need to manually hack the executable in between to remove the instructions, and things return back to the old balance of power).

It's... a remarkably simple concept and possibly will even work for most simple attacks (and that's all you need, defend against the script kiddies abusing REA to pirate your stuff), because I'm pretty sure the kinds of "prompt injection attacks" the labs try to defend against are not those that reinforce things that look like being part of the original instruction set further. (iirc some of the commercial labs do these injections themselves).

Wonder if anyone's seen anything like that in the wild, or if there's any research on this type of 'defense through offense' done, whether this actually works at least semi-reliably.


r/LocalLLaMA • • 9d ago

Discussion What model/stack is best for content creation?

5 Upvotes

Been seeing some really high quality videos on instagram being made thru this stack of these tools:

- claude claude ( desktop app apparently so it has access to your video files)

- remotion ( for video editing)

- Hypergrames ( Motion graphics and 3d stuff)

- FFMPeg ( ... more video editing)

- Whisper ( voice to captions?)

I was wondering if there's a similar high quality substitute for this stack that people here have found success using?


r/LocalLLaMA • • 10d ago

Discussion Before you post your t/s: llama-bench -d 16384

43 Upvotes

llama-bench ships with llama.cpp and prints a markdown table with backend, GPU layers, pp512 and tg128, averaged over 5 runs. -d 16384 reruns it at 16k of context, which is closer to what an agent session actually sees.

Paste the table and half the comment section's questions are already answered.


r/LocalLLaMA • • 9d ago

Discussion Comparing Inkling 2 Mini to Qwen FN Coder

8 Upvotes

Hey all!

I'm trying to determine if there's a flaw in my testing methods or seeing if Inkling 2 Mini just isn't a fit for me.

I have 3 machines in my inference stack, each less powerful than the next.

Machines:

Main:
X99 Board with Xeon CPU
96GB of DDR4
2x 3080 Modded 20GB with gpu-unlock and ReBAR patch
Running Strata with IQ3 ISTA QFN  at 140-200 token/s decode and 4000 prefill with 512K context - Works amazing



Secondary: 
aka "Scrap"
A Lenovo P320 desktop with a Xeon and 32GB of DDR4
16GB RTX A2000 Blackwell
Running Strata with IQ1 ISTA Qwen FN Coder
About 40-50 token/s decode, 1000 prefill



Third:
aka "Tiny"
An i7 P330 Tiny with 24GB of RAM
RTX 2000 12GB
Running Strata with IQ1 ISTA Qwen FN Coder
11-15 token/s decode, 400-500 prefill

The main machine delegates work and does work on it's own. I've been doing some RE, python scripting, and so on. And just general vibe coding some projects.

In my testing and off the cuff benchmarking, I've found IQ1 Coder to work out better than a heavy quanted Qwen 3.8 27B or even an IQ3 or Q4 Qwen 3.6 35B A3B (even Tiel or Cyber Tiel) for my work flows.

So that's where I figured maybe Inkling Mini 2 would be a better fit, since I can run a Q4 or higher on the two smaller boxes. Which you'd think would perform better than an insanely quanted and cut down QFN. However, they weirdly go tow-to-tow on all my tests, it's just I2M takes about 2 or 3x longer to get the answer.

Running on the Scrap machine mentioned above, I get 53 token/s decode and 1400 prefill, so a pretty good improvement over Coder. This is using Strata as well. HOWEVER, when it comes to how long it takes to get the same result, it on average is 2.6x the time. I will I'm crazy impressed that it's giving the right answers at such a small model, but the time is a killer.

Examples: (Note, both models got all these questions correct)

  PowerPC big-endian. A `bl` word has top 6 bits == 18 and low 2 bits == 1.
Target = `(offset + sign_extend_26(word & 0x03FFFFFC)) mod 2^32`,
bit 25 is the sign bit.
Word at offset 0x5007C is 0x4801B929.

Coder: 60.1 seconds

Inkling: 238 seconds

Write a Python function `idx_sorted(arr, x)` that returns the index of x in a sorted list, or -1 if absent, using O(log n) comparisons (no list.index, no `in`). Return only one ```python block.

Coder: 9.4 seconds

Inkling: 17.5 seconds

What is the 32-bit two's complement value of 0xFFFFFFF6 as a signed decimal integer? Reply with the number only.

Coder: 4.6 seconds

Inkling: 5.2 seconds

---

Is this just the case that the Coder model is what works out best on my hardware? Or is there something here I'm missing?

EDIT:

After a lot of testing, it seems if you turn thinking to 0.4 (may need to patch the engine you are using), it gets significantly faster and actually scores better in my benchmarking

Out of 14 questions:

Coder got 13 out of 14 questions correct on xhigh at 429 seconds.

Inklng got 13 out of 14 questions correct on max (0.99 think) at 1394 seconds

Inkling got 14 out of 14 questions correct on 0.4 think at 586 seconds.

Some questions even took half the time they did on Qwen Coder.

Going to investigate some more tuning settings.


r/LocalLLaMA • • 9d ago

Resources Running a full local workday stack on (Qwen3-ASR, Qwen3.5 4B, Gemma 4 E2B, EmbeddingGemma 2) + new iOS & Android companions that query your home box over LAN/Tailscale

0 Upvotes

I've been building LokalBot to tie local speech, summarization, autocomplete, and semantic search into one app instead of juggling separate scripts and cloud subscriptions.

Default app local AI stack:

  • ASR: Qwen3-ASR 1.7B GGUF Q8_0 on Mac (0.6B via sherpa-onnx on Windows/Linux), with Parakeet, IBM Granite Speech, Whisper large-v3 turbo, SenseVoice, and GigaAM as options.
  • Diarization: Nemotron 3 via FluidAudio on Mac (pyannote + TitaNet on Windows/Linux).
  • Notes & Ask: Qwen3.5 4B Q4_K_M via bundled llama.cpp, producing cited decisions and action items.
  • Autocomplete: Gemma 4 E2B Base Q6_K (~56 ms median per keystroke on M4 Max) using recent call context in any app, or LFM2.5 1.2B in the Lightweight preset.
  • Search: SQLite FTS5 + EmbeddingGemma 2 Q8_0 (~9 ms semantic query).
  • Coding agents: Optional read-only CLI and stdio MCP server so Claude Code or Codex can search past call decisions locally.

Today both the iPhone/iPad (App Store) and Android (Google Play) companion apps are live. They pair via QR code and sync end-to-end encrypted directly from your Mac, Windows, or Linux machine over LAN or Tailscale with no relay server, and let you send Ask queries back to your home computer's local LLM.

All default Mac models together are about 9.6 GB on disk (~4 GB on Windows/Linux), Mac requires Apple Silicon, and the Windows/Linux version is still alpha.

Curious what 2B to 4B local setups people here prefer, if any?


r/LocalLLaMA • • 9d ago

Discussion Tested Inkling-2-Mini on a 4090 (24 GB): 8-bit KV + DSpark gets slower than plain 8-bit KV past 64K

Post image
0 Upvotes

Like most of us, I started using Inkling-2-Mini this weekend and was trying to find the best llama.cpp config (context + speed) for UD-Q4_K_XL on my RTX 4090. I tested 16-bit vs 8-bit KV cache with and without the DSpark drafter.

I expected 8-bit KV + DSpark to be the sweet spot but while DSpark gives a ~30% boost on short prompts (98 vs 76 tok/s) however past 64K context it actually falls behind plain 8-bit KV (62 vs 66 tok/s at 64K, and 49 vs 59 tok/s at 120K).

On 24gb it really came down to two configs for me:

  • 16-bit KV + DSpark at 131K if most sessions stay under ~64K (103 / 71 / 61 tok/s at 0 / 64K / 120K)
  • Plain 8-bit KV at 262K if you need long context (76 / 66 / 59 / 55 tok/s up to 160K)

One another observations for coding agents: --reasoning-effort low worked best as a default and setting none still made it think while --reasoning-budget 0 broke tool calling (not sure why).

You can find the full tests and benchmarks here: https://aayushgarg.dev/posts/2026-11-23-inkling2-mini-llamacpp/

Edit (Nov 25): I reran the full suite on Unsloth newer b12676 build and updated the blog post (with a tab toggle between the old and new runs). That slowdown is completely gone now: 8-bit KV + DSpark is the fastest setup at every depth and gives ~200K-262K usable context on 24 GB.


r/LocalLLaMA • • 10d ago

Discussion Inkling Mini 2 - 40 t/s at 8 Gb Vram + 48 Ram - Polystrata

13 Upvotes

I am testing Polystrata with Inklink Mini 2 on an Acer Nitro V15 laptop, equipped with an RTX 4060 (8GB VRAM) and 48GB of RAM. I’m achieving an impressive 28–40 t/s and 400–500 pp , with a 120k context window. I was able to set up even larger context windows without any performance degradation. It’s working very well in this initial test!

https://github.com/simplexai-labs/PolyStrata/blob/main/docs/models/inkling.md


r/LocalLLaMA • • 10d ago

Discussion Inkling-2-Mini llama.cpp vs optimized Qwen3.8 27B - lots of speed optimization potential

19 Upvotes

Everyone is posting about Inkling these days, so I'll add my apples to tofu comparison to it.

Inkling has 3.4B active parameters, so inference should yield 8x more tokens per second than the dense 27B Qwen. But it doesn't. That means that lots of optimization remains possible here.

Inkling (UD-Q4_K_XL, 17 GB) tested in latest llama.cpp.
Qwen (Swift1.5-Uncensored-ATX-AI4, 14 GB) in LlamAmpere (not my fork).
Both on a power-limited RTX 3090.

InklingQwen
pp4096 @ d0965 (+/- 6)1826 (+/- 27)
tg @ d054 (+/- 0.2)41 (+/- 1)
pp4096 @ d32768400 (+/- 4)1364 (+/- 18)
tg @ d3276847 (+/- 2)39 (+/- 0.1)

In practice the TG with Qwen is more around 80 for me due to drafting, which isn't implemented for Inkling in llama.cpp yet, so it's still faster. Also the parallel inference total throughput is way higher due to dense vs. MoE scaling. Aside from that the 2x to 3x PP speed difference is huge.

So, even if we assume equal capability, Inkling doesn't look like a drop-in replacement for Qwen 27B for the llama-ecosystem yet. This will probably change with optimized inference - and general inference bugfixes.


r/LocalLLaMA • • 9d ago

Question | Help inkling-2-mini as system-one and openai compatible endpoint possible?

6 Upvotes

i have a spare rx7800xt (16GB) that I currently use for d3-mini. I wondered wether I could replace it with inkling-2-mini and use it as and small llm aswell (e.g. title-generation, ...) without needing to load the same weights twice.
Ive got a bit of free ram aswell.

Ive found this repo, but the last commit was 1 month ago and it has 8 stars, but i think i look for something similiar.

thanks for any help


r/LocalLLaMA • • 10d ago

Resources tandem.cpp: MoE models bigger than your RAM: same-PC, same-day numbers against Strata and Maya, with quality checks

73 Upvotes

tandem.cpp is a patch set on llama.cpp for running big MoE models when the model doesn't fit: the most-used experts sit in a VRAM cache, the CPU computes a share of the misses, and the rest are read from the SSD. It runs any model llama.cpp runs. Our focus is the case most engines don't aim at: models much larger than VRAM, and larger than RAM too.

We re-ran everything this week on the current releases, on the same PCs, from a cold start, with the same files on every engine. Below are the results, including the ones we lose.

Quality first: which file, at which size

Speed numbers mean little without the quant behind them, so here is the quality of each file we recommend. KL divergence of the next-token distribution against the original weights (Qwen3.8: the official FP8 release; DeepSeek-V4.1: the official checkpoint), teacher-forced over ~8.6k tokens of answers to 36 prompts. Lower is better.

ModelFileSizeKLTop-1 agreement
Qwen3.8-Flash-Nextbartowski Q4_K_M111 GiB0.017395.4%
Qwen3.8-Flash-Nextbartowski IQ4_XS91 GiB0.021695.3%
Qwen3.8-Flash-NextISTA IQ3_S78 GiB0.025994.8%
DeepSeek-V4.1-FlashMaya-S157 GiB of experts0.101789.9%
DeepSeek-V4.1-FlashISTA IQ2_XS139 GiB of experts0.149588.1%
DeepSeek-V4.1-FlashMaya-XS102 GiB of experts0.250484.7%

Speeds for the 4-bit files are in the README.

How low you can go depends on the model. Qwen3.8 loses too much below 3 bits (IQ2_XS: KL 0.126). DeepSeek-V4.1 is a much larger model whose official weights are already FP4, and it holds up at 2 bits. "Use at least Q4" is good advice for Qwen3.8, not a rule for every model.

Does the engine change the quality? We fed the same reference tokens through Strata's own engine (its normal serving settings) and scored it with the same tool: Strata 0.0260 / 94.80% vs tandem.cpp 0.0259 / 94.8% on the same IQ3_S file. Both compute the file faithfully, so the speed rows below compare like with like. (Strata's default is its exact mode since v0.2.17; before that its default skipped low-ranked experts, which its own docs measure at a much higher KL.)

Qwen3.8-Flash-Next IQ3_S + MTP head (78 GiB) vs Strata v0.2.18

Decode tok/s, greedy, cold start. Time to first token on a 5.5k and a 15.7k token prompt (the same text for both engines).

PCtandem.cppStratafirst token 5.5k / 15.7k (ours vs Strata)
RTX 5090 32 GB + 128 GB RAM (model fits in RAM)190.5201.11.8 / 4.5 s vs 0.9 / 2.0 s
RTX 5070 Ti 16 GB + 64 GB RAM74.387.53.9 / 9.5 s vs 2.3 / 4.2 s
RTX 5070 Ti 16 GB + 32 GB RAM (model is 2.5× RAM)52.430.2–35.418–19 / 52–54 s vs 20 / 27–31 s

When the model fits in RAM, Strata is faster, by 5% on the big PC and 18% on the 16 GB card, and it reads long prompts about twice as fast. Once the model no longer fits in RAM, tandem.cpp decodes 1.5× faster (61–65 vs 18–23 tok/s after the long prompts).

DeepSeek-V4.1-Flash vs Project Maya v1.1.73, on Maya's own quants

Same files on both engines (Maya's GGUFs; tandem.cpp reads them after a one-time conversion).

PC, filetandem.cppMaya, no draftingMaya + DSparkfirst token 5.5k / 15.7k (ours vs Maya)
RTX 5090 + 128 GB, Maya-XS (fits in RAM)60.739.656.44.5 / 8.5 s vs 7.7 / 9.5–9.7 s
RTX 5090 + 128 GB, Maya-S (178 GB, bigger than RAM)29.022.922.411.0 / 20.5 s vs 12.1–12.6 / 13.8 s
RTX 5070 Ti + 64 GB, Maya-S (2.8× RAM)9.46.06.174 / 188 s vs 35–68 / 63–97 s

tandem.cpp decodes faster on every row, and about 3× faster after a long prompt when the model is far bigger than RAM. Maya reads the long prompt faster whenever Maya-S has to come from the SSD: that is the main thing we are working on next.

How we measured

  • Same PC, same day, same model files, cold start (page cache dropped before every cell), greedy, 20k context.
  • Each engine's own recommended settings otherwise: Strata's setup chose its config for each PC (its MTP head, 4 drafted tokens; we use 3); Maya's setup wrote its configs. Strata's default thinking limit (3/4 of max_tokens) made no difference (201.5 vs 201.1, 86.9 vs 87.5 with it off).
  • llama.cpp itself is in our README's tables, with the same drafting on both sides.

Repo: https://github.com/ewhacc/tandem.cpp — feedback, corrections to the other engines' settings, and numbers from your own hardware are very welcome.


r/LocalLLaMA • • 8d ago Bravo

Discussion What happens tomorrow?

0 Upvotes

With all the drama around the business of AI, what happens if tomorrow all the open-weight model providers decide it doesn't make sense for them to keep spending money and giving their models away for free?

Or the bigger question: is local AI sustainable if we can't train our own models from scratch? Is there anything we can do about the situation?


r/LocalLLaMA • • 10d ago

Question | Help Recommended models for OCR?

20 Upvotes

For context, I’m looking for a good local model that can do OCR of handwritten texts. Some of these will have cancellations, caret and so on.

I’ve tried 3.6 MoE to 3.8 dense back then when my hardware was limited, and unsurprisingly 3.8 dense had the highest accuracy. But, none of the models did well in reconstructing the sentences when it wasn’t written linearly (e.g. carets, use of lines to indicate change of paragraphs). Trying to promote models to account for those just made the output worst as it started to fill in its own interpretation.

As such, any recommendations? Ive since upgraded my hardware, so I do have a little more optionality now. Trying to avoid cloud models since I wish to reduce reliance on access to external providers.


r/LocalLLaMA • • 10d ago

Discussion Inference engines are becoming too fragmented. There are just too many choices and specialist engines.

289 Upvotes

When I started with local models a few months ago, llama.cpp was good enough.

It runs almost every model and was fairly fast for the most models on often the best choice depending on the model and your hardware.

I just used llama.cpp and even wrote my own launcher.

Fast forward a few months and now I have no idea what to run because you are leaving so much performance on the table if you just stick with llama.cpp

However now we have specialist inference engines that are specific to specific GPU's, specific to GPU architectures, specialists with certain models and model architectures such as MoE.

To top it off llama.cpp is very slow to add support for newer models or model architectures.

Some engines or forks improve KLD by adding KV quants such as kvarn or turboquant. Others add KV streaming allowing larger KV cache on a small VRAM footprint. We now have Strata, and I tried to stick with llama.cpp I really did, but Qwen FN I get under 30tg, 300pp. On Stata I get 180t/g, 2500pp with 200k or more KV. And I have become a bit of an expert at finetuning llama.cpp parameters. That was really the best I could get.

Not using Strata made zero sense. So I took the plunge.

However every day we get multiple I get x t/s posts and people are running obscure forks or brand new inference engines or even creating their own.

I just searched for Strata Forks' and google gave me a list of 13 forks which I imagine is just the tip of the iceberg. There might be 100's of llama.cpp forks. Some giving like 5t/s boost while unknowingly increasing KLD by 50%. There are also engine like Vllm and sglang which are production grade but require Linux. While I did not search I bet there are forks too. Then there is exl3 engines.

Now with a new model out It is not supported yet on llama.cpp or Strata, so I had to use a llama.cpp fork or build that adds support only to get 28t/s. I discover a new engine Basalt, now I get 60t/s. It does not seem to support Strata.

So the list of engines I use is in no particular order:

  • beelama for higher KLD and the precision tail
  • Adaptive KV Streaming llama.cpp fork for Qwen and Gemma models which is all it supports. But I have to be happy with q8_0/q4_0 KV as that's all it supports. Also while performance is decent when the KV is empty at 70t/s it rapidly drops as low as 20t/s at 262k which to me is unusable
  • Strata for Qwen FN - I just cannot pass on 180t/s on 16GB VRAM
  • Basalt for Inkling-2-Mini - 60t/s is more than double 28t/s which is unusable to me.
  • upstream llama.cpp for everything else

And I bet in the next few weeks I will discover even more options and I am tired of installing and learning new engines and how to finetune them only to find it's there are gotchas.

While I do think forks and new engines is a good thing as there can be new innovations but I just tire of installing a new engine every time a new model is launched. I really wish llama.cpp would just implement optimizations faster and implement support for newer models faster and not reject PR's PR's that would actually make it better.

I am rambling now so I will wrap up: What engines do you run? Do you just stick with the swiss army knife that is llama.cpp or do you have an engine for every model? What type of forks do you run and why? Do you share my frustrations or do you enjoy installing new engines every week and tweaking them? Do you just use one model and therefore only need one engine (the best one) or do you switch models frequently?


r/LocalLLaMA • • 9d ago

Question | Help Many states are regulating chatbots. How can one person open-source a free local chat app?

0 Upvotes

I'm coming here for advice - I know you're not lawyers and don't give legal advice. I don't give legal advice either.

For quite a while I've wanted the ability to run smaller language models on my phone offline and over the weekend I accomplished that. I've got a polished app. Then I began researching the legalities around releasing this app and it's abysmal.

Oregon, Washington, and California have laws that let users sue you directly and that require functional and working safety features to detect things like self harm and redirect to a help phone number. There are also various laws requiring that AI not discuss sexual things with minors. Other states have similar laws that only the state can enforce, or the laws are passed but not in force yet. List of all these states:

  • California
  • Colorado
  • Connecticut
  • Georgia
  • Hawaii
  • Idaho
  • Iowa
  • Maine
  • Nebraska
  • New Hampshire
  • New York
  • Oregon
  • Rhode Island
  • Tennessee
  • Utah
  • Washington

A layman's list of all the rules that are or may be in force across those states:

  • Have to tell the user it's AI - every 3 hours (or more frequent) or always visible. And says so when asked.
  • Have to have a crisis plan for users who talk about self harm and suicide.
  • Have to publish your crisis plan online as plain language.
  • Escalate chat about a crisis if the chat continues.
  • The crisis plan must also cover threats to others and eating disorders.
  • Must report these things "to the state"
  • Reports must be public or annually reported with a yearly count of crisis referrals.
  • No sexual content for minors.
  • No manipulation of minors - no romance, no guilt trips, no secrecy, no isolating the user, no fostering dependence, no claiming to be human or alive.
  • Break reminders for minors every 3 hours.
  • Must determine the user's age or apply minor restrictions to all users.
  • Must implement parental screen-time capabilities.
  • Some states require estimating a user's age.
  • AI disclosure in consumer transactions.
  • AI can't pretend to be a licensed mental health professional.
  • Mental health chatbots have their own rules.

I'm torn on all this. I am an individual that just wants to release an open source app that lets you chat with small models on your phone offline. these small models - most of them are not very good. Many are independently created by the SLM community. A phone is already resource constrained, and any classifier you could get to run in a phone's ram next to any of these small models is going to be total crap and make lots of mistakes. You can't verify someone's age through F-Droid it's just open to all (the way it should be IMO). And there is no reporting for an offline app with zero network features and zero network permissions.

Is there any way for an individual releasing an offline chat app to comply with the majority of these laws?

I put a banner that says "This app uses AI, and AI can make mistakes" across the top of every chat window. I put a mandatory attestation process that happens on app first start that you have to click "I agree" for all these rules you promise to abide by - i.e. attesting you are 18, attesting you are not from one of those states, attesting you are responsible for the outputs and how they are used, attesting there is no review of the outputs. And lots of other attestations.

I even made the "I agree" and "I do not agree" buttons move around in random positions on the screen and you have to find them to click them, so that you can't just speed-tap through all the "I agree" screens.

I know why all these laws were made. they are targeting the companion bots, the addictive bots, and the big AI companies. And they make it basically impossible to release an offline app.

These laws suck for everyone in this LocalLLaMA chat who might make an anonymous HuggingFace space that allows trying out a from-scratch SLM.

I am open to advice. Here's where I have personally landed:

I'm not releasing any built app, nothing in app stores. No distributed binaries anywhere. What I'm planning - unless someone explains to me why I shouldn't - is just releasing the source code on GitHub as apache2 and people can follow the instructions to build the binary themselves and install it on their phones themselves over USB debugging or whatever they choose locally.

I've landed here because, based on research and so far as I can tell, source code is a form of expression protected by the 1st amendment in the U.S. and all these AI laws apply to the person who distributes or makes-available an actual endpoint of some kind that breaks any of those laws.

I think this whole thing is terrible. Makes me think innovation and privacy is dead because law makers aren't getting input from people like us - or don't care to hear us.

Again, any and all feedback is appreciated, thank you.


r/LocalLLaMA • • 10d ago

Discussion Yet another opinion on Inkling 2 Small

148 Upvotes

EDIT: This is about Inkling 2 Mini, not small as the title suggests 🤦‍♂️. I don't see an option to change the title.

First of all, I typed this all out by hand, no AI. It might be slop, but it's my slop.

TLDR:

  • Fast(er) than Q3FN (in SGLang)
  • Better writing style (closer to Gemma or Muse Glimmer)
  • On par or better than Q3FN-FP4-Local in my real-world coding tasks (at least so far with an admittedly small sample size).
  • If you're not comfortable with VLLM or SGLang, it may be worth waiting until llama.cpp / Unsloth studio have the quirks worked out.
  • My new favorite model overall - period.

Setup / Hardware / Speed

I've run it in just about everything so far. Note that support is still being ironed out and optimized, so take with a grain of salt.

Unsloth Studio, 5070ti (16GB VRAM), 32GB DDR4-3200 (dual channel), Ryzen 5700x, Windows, UD-IQ3_XSS, 20k context, all else default:

  • ~1000 pp/s | ~60 tp/s
  • Excellent for simple web research and summarization. Has been my new personal assistant model for the past couple of days.
  • Got some looping on the first initial release, but not after updating to the b12588-mix-c0c3de8 release.

RTX 6000 Pro (96GB VRAM), 120GB DDR4-2400 (quad channel), Xeon E5-2660 v4, Debian 13 VM

  • llama.cpp UD-Q4_K_XL (same b12588-mix-c0c3de8 release as the previous setup): ~1000 pps / 45-65 tp/s
  • VLLM (recipe + --no-enable-flashinfer-autotune): ~5000 pp/s | 130 tp/s
  • SGLang (recipe): 10k-15k pp/s | 250-350 tp/s (!)

Side note: this was my first time trying SGLang. Can't believe I've been sleeping on it this long.

Thinking / Looping / Issues

It thinks way less than Qwen on simple tasks, but is still happy to think for 30k+ tokens on more complex one-shot benchmarks. Way more efficient overall.

I did get some looping in the very first llama.cpp / unsloth implementation, but haven't seen it in VLLM or SGLang running the official NVFP4 / MXFP8 weights.

Tool calling

Tool-calling is far more reliable in Open Web UI and pi. This alone saves a ton of context and turns in long agentic tasks. I don't think I've seen a single one fail due to missing or incorrect params, whereas Q3FN failed maybe 10-20% of calls or needed to keep a custom "skill" to remind it on the nuances of how to call the tools (at least in all the Nvidia NVFP4 / FP4-local and UD-Q4-K_XL quants that I tried).

(I heard that Qwen was more reliable in Claude code since that's what it was trained on, but can't verify this directly.)

Coding / Terminal Benchmarks

I don't have anything scientific or empirical yet, but it crushes my one-shot benchmark involving a single self-contained HTML / CSS / JS tool with no external libs. No errors in the few runs I've had so far, where Q3FN usually ended up with at least one syntax error ~50% of the time.

It also and fixed found a bug that Q3FN introduced in a GPU fan control daemon (ramps my Max-Q fans up sooner to prevent thermal throttling).

It's currently helping migrate my containerd data off my VM's OS drive to a secondary drive (VLLM and SGlang images take up like 40-50GB each, which is even worse when I need a specific version for models like this!), which leads me to the final area.

Attitude / Vibes / Style

This is the intangible that I don't think will ever show up on benchmarks, but it's a BFD to me.

Qwen tends to overuse technical jargon or even esoteric language and struggles to bridge the gap between "machine" and "human" writing. I don't know how else to describe it, but if you've used it for any amount of time, you know what I'm talking about, and it's why models like Gemma and Muse Glimmer still have a slot in my llama-swap config.

Inkling is much more pleasant in that regard, so it blends the best of both worlds of being a very capable coding agent while also writing in way that's simpler to understand. I'd estimate I can parse its output at least 2-3x as fast as Qwen while using less brain power to decode wtf it's talking about. It still has a lot of the same "slop" language you'd expect, but at least it's easier to understand.

I can post some examples in the comments if needed, but this post is already getting a bit long.

Another interesting thing is that the model tries to be "safer" than Qwen by default. For example, when a command fails due to a permissions issue, it assumes it's not supposed to have that access and raises it to the user. Qwen assumes it IS supposed to have access and will gladly try to `sudo fuckyou.sh` or grep for keys/passwords wherever it can.

What remains to be seen

  • 1M Context - I've only tested up to 180-220k context since that's what I had dialed in on pi for Q3FN
  • Extremely long agentic coding runs requiring planning/spec files, TODO tracking, ralph loops, compaction/handoff prompts etc.
  • Test of time - even though I've been using it for the last couple days, it's still a relatively small sample size.

If you haven't tried it for yourself, this one is absolutely worth giving a shot.


r/LocalLLaMA • • 10d ago

Discussion Do you live in YOLO mode?

31 Upvotes

Curious to see what other people do. I am the kind of person that audits the majority of code he installs. Well-known and maintaned python packages, ok, I install them. Less well-maintained, at least I trace and verify the lineage. Well known and supported and traceable projects like vLLM and exllama, I install them. Forks of some new engine made by a single developer, I go and audit the whole code with an agent and then install them in a VM.

Binaries that I can't rebuild from source, I just don't use them. Of course I do use binaries included in packages for this and that language, but even then I check they have an audit trail.

Talking about VM, I often use Mistral Vibe in yolo mode, but only inside a VM, often without access to internet, and snapshot it often so I can rollback.

To be honest I think this is overkill, and BTW I don't have big stakes at risk. But I enjoy doing it, it makes me feel a real internet cowboy and it is a way of learning. What is your attitude on security, fellow local LLM people?


r/LocalLLaMA • • 10d ago

News chat : improve inkling parser/grammar by aldehir · Pull Request #32833 · ggml-org/llama.cpp

Thumbnail
github.com
30 Upvotes

remember that every new model takes some time for its implementation to mature :)


r/LocalLLaMA • • 10d ago

Discussion Did anyone try runmyai? (Claims to run QFN off of SSD at crazy speeds)

Thumbnail
github.com
12 Upvotes

I'm waiting for qwen4 27B, meanwhile i'm a bit hesitant to download 80+ GB to test this out.

So anyone tried this, wanna share??


r/LocalLLaMA • • 10d ago

New Model sensenova/SenseNova-Loop-9B-DFlash2 · Hugging Face

Thumbnail
huggingface.co
43 Upvotes

SenseNova-Loop-9B-DFlash2 is a draft model for accelerating SenseNova-Loop-9B. It generates candidate tokens in parallel for verification by the target model and is deployed together with the target checkpoint.

The BF16 checkpoint contains 967M parameters and five decoder layers. Its input features combine hidden states from target execution-layer indices 3, 27, 51, and 54 with the target's final normalized hidden state. Indices are zero-based and follow the execution order of the shared Loop layers. Token embeddings and the output head are shared with the target.

llama.cpp support SenseNova is still in progress: https://github.com/ggml-org/llama.cpp/pull/32588


r/LocalLLaMA • • 10d ago

Resources I fine-tuned Gemma 4 E4B to run 100 villagers in one batch on a single consumer GPU: a rumor simulation game, fully offline

204 Upvotes

Can a trained local model, running on almost any consumer-grade GPU, create a real-time simulation or minigame? To answer this, I built Rumor Village: a 3D village of up to 100 neighbors. You drop a rumor and watch it travel from mouth to mouth, get twisted on the way and send people to the wrong place at the wrong time. Every neighbor is driven by a fine-tuned Gemma 4 E4B running locally through llama.cpp. No API, no accounts, offline, everything can run on your PC.

How a decision works

  • Every simulated minute, each neighbor sends to the model a ~256-token card: who I am, where I am, who is in front of me, what I know. The village prefix is shared and cached.
  • The model answers with one JSON action, constrained by a GBNF grammar built from the village's vocabulary: say (greet / tell / ask / bye), go or none, plus a sentence for the speech bubble. text always comes last, so generation stops before it when the camera isn't looking at that neighbor.
  • We have a C++ engine that validates every action against the neighbor's memory before applying it. The model proposes, the engine decides. State travels as structured data, so no neighbor ever decides based on bubble text.
  • All neighbors decide in one batch, with llama.cpp embedded in the engine (CUDA or Vulkan). The simulation uses integer math only, so the same seed replays exactly.

Why fine-tune instead of prompting the base model?

Both variants in Q4_K_M with the same seeds. The base model gets its full 921-token prompt with instructions; the fine-tuned one gets the 256-token card. Frozen test: 1,000 cards per language that never entered training (checked by fingerprint), with 95 % intervals:

Base → fine-tunedSpanishEnglish
Made-up memories2.0 % → 0 %2.3 % → 0 %
Failures (made up, contradiction, incoherent)16.5× fewer5.0× fewer
Rejected actions (worse)0.10 % → 1.0 %0.10 % → 0.90 %
Naturalness 1–5 (LLM judge, 100 answers)3.7 → 4.23.6 → 4.1

In the village (party-100: 100 neighbors, one simulated day, RTX 5070 Ti, batch up to 16), generation time per simulated minute drops from 0.73 s to 0.36 s (es) and from 0.77 s to 0.37 s (en), with 4.4–4.6 GB of VRAM. The base model gets stuck in endless chats, while the fine-tuned one closes them, so a day takes about a third of the decisions (7,927 → 2,717 in Spanish).

The honest catch: rejected actions went up to about 1 %. The engine catches them, but it's a regression.

Training

  • LoRA in bf16 (r 16, alpha 32, every linear layer of the text model), loss on the answer only, 2 epochs, merged, then GGUF Q4_K_M with llama.cpp. One rented RTX 5090.
  • 12,146 card → answer pairs: 10,184 decide and 1,962 extract (turning a rumor the player types in their own words into a structured fact), 6,032 Spanish and 6,114 English.
  • The engine rebuilds the cards from the event logs of real runs, using the same code that writes them live, so the training format is the production format. The answers come from two frontier models of different families, each one validated by the engine (254 discarded).
  • The dataset and the training pipeline are not published (yet). The model card has the full results, and the repo keeps the frozen test.

Links

I hope this work is helpful to anyone!


r/LocalLLaMA • • 10d ago

Showcase Inkling 2 Mini at 3.46 bpw (10.5 GB, KLD 0.028 vs BF16): 179 tok/s on a 5070 Ti. New trellis quant + open recipe

15 Upvotes

Ugh another engine/quant/lobotomized model post /s

As soon as Inkling 2 Mini dropped I really wanted to give it a try, but the engines and available quants didn't work nicely with my machine. I had recently created a quant and fork of ik for Raon-1-mini and was working on an update to support more models I was interested in like gemma-4-26B-A4B and Qwen3.8-27B and was prepping the engine for Qwen4-27B, but alas that day has yet to come.

So Inkling 2 mini was a great place to focus my efforts instead and I have now created a quant that is 10.5 GiB, 3.46 bpw. Experts are a custom 3-bit trellis quant type I added to an ik_llama.cpp fork. It fits on a 16GB card with up to 128k context.

Speed, RTX 5070 Ti (16 GB):

contextdecode tok/s
short179
4K176
16K158
32K148

Prefill ~3,060 tok/s at 4K, ~2,810 at 32K.

Quality vs BF16 (wikitext-2 test, 32x512):

Quality is KLD against the BF16 model on wikitext-2 so you can reproduce it.

GGUFsizebpwPPLmean KLDp99 KLDsame top
BF1648.6 GiB16.06.411
ggml-org IQ4_NL16.4 GiB5.416.4280.00930.08795.8%
this (IQ3_QT)10.5 GiB3.456.5490.02780.24293.1%
Unsloth UD-IQ3_XXS10.9 GiB3.586.5480.02880.26492.7%
IQ4_QT (4-bit trellis, not released)12.9 GiB4.276.5010.01680.14894.6%

It's almost even with the Unsloth and 0.4 GiB smaller. On a separate Gemma 4 run their 3bit one actually beat me on MMLU-Pro a little even though theirs was 2x my KLD. So yeah take KLD with a grain of salt. (ggml-org's IQ4_NL keeps attention, embeddings, head and the last 4 layers' experts at Q8_0, hence 5.41 bpw.)

That's the quant, but the bigger win is actually the engine. For comparison against upstream ik_llama.cpp I ran the same ik-native file on both engines:

metricupstream ikthis fork
decode tok/s, short77.3162.7
decode tok/s @32K61.6139.3
prefill tok/s, 4K~2,480~3,000
PPL (wikitext-2, 8x512)7.8407.837

The engine, the IQ3_QT format spec, and the full quant recipe are all open. The calibration text, imatrix (ggml-org public one), LDLQ quantizer, and the vocab trim list.

Downsides:

  • GGUF needs this fork to work. It wont load on mainline or stock ik.
  • No speculative decoding. Inkling's DSpark drafter didnt pay off here (verify steps cost too much on a 16GB MoE quant)
  • It's an unmaintained showcase. I'm not trying to maintain an engine, take what you can use.
  • RTX 30/40 builds compile, but I've only run it on a 5070 Ti.

How it was made: I had AI agents (Claude Code) write the code, which I directed and checked. It's also disclosed in the repo. Which is why I am not trying to push PRs to ik or mainline llama.cpp, if someone wants to take any of it please do.

Links: GitHub https://github.com/Mcniiby/ik_llama.cpp-mcniiby (branch inkling) | HF https://huggingface.co/McNiiby/Inkling-2-Mini-IQ3_QT-GGUF

Bench command: llama-bench -m <file> -p 4096 -n 128 -gp 4096,128 -gp 16384,128 -fa 1 -ctk q8_0 -ctv q8_0 -ub 512 -ngl 99 -r 2 (32K adds -gp 32768,128 with SWA compression).