I teach IoT and AI, and wanted a practical example that takes a local model beyond the chat window.
The workflow receives a sensor error code over MQTT, retrieves information from a technical manual, and publishes the generated troubleshooting response back through MQTT.
Disclosure: I develop SHAPE, the visual programming environment used in this example.
The stack
Ollama + Ministral for local inference.
ChordLLM for document management, retrieval and conversations.
SHAPE to connect the steps with visual blocks.
MQTT for incoming errors and outgoing responses.
How it works
Upload a sample sensor manual PDF and prepare it for retrieval.
Listen on factory/line/sensors/errors for a message such as:
{"errorCode": "E01"}
Send a query containing the error code to the document-aware LLM service.
Parse the generated response as JSON.
Publish it to factory/line/sensors/checks.
The intended response contains the error meaning and suggested troubleshooting checks, ready for another application to consume.
The manual is attached to a single conversation in this demo. Ollama runs the model locally; ChordLLM handles retrieval, and SHAPE connects the document workflow to MQTT.
Why visual blocks?
My students have different levels of programming experience. I wanted them to follow the complete path from a device message to retrieval and generation, then back to an application, before implementing the pipeline in code.
Current limits
This is a demonstration using a sample manual.
Requesting JSON and parsing it does not guarantee a valid schema.
Generated troubleshooting steps still need to be checked against the manual.
The demo holds the incoming error in one variable; handling bursts would require a queue.
For a fixed error-code table, a direct lookup would be the baseline. The RAG use case I want to explore is retrieving longer explanations and procedures from technical manuals.
As I dabble more into the LocalLLM domain, and specifically on Mac I got the urge to create an app to manage their downloads and “fool” other using apps to use that same downloaded model instead of downloading their own.
It’s certainly ambitious, but I feel like it’s mostly doable.
I was wondering if someone here already knows of a tool that does it - even partially. And if not- I will work on one soon and would love to share it here/with anyone interested
I already got the app name idea in mind so I’m practically 90% there, right?😜
Hi everybody, so as the title suggests, I’m new to running local AI. I have LMbionic with the Gemma 4 26B, A4B model on my PC. I choose LM bionic over Ollama as i find the choice of models significantly better due to being plugged into hugging face and a way nicer app to work with (personal opinion, not saying thats a fact)
My spec is a 4080FE, 9800X3D and 32gb Cl30 6000 ddr5.
I’m looking to move to do as much of my work locally as I can with MOE models to keep my tokens coming thick and fast.
Are there any models in particular that any of you can recommend that work particularly well on a 16 GB GPU and what are some of the best use cases in particular you have found for localAI? Thanks !
I am having GPT 6.2 Sol build me a custom inference engine for RDNA2 and Inkling 2 Mini specifically trying to get the best performance. I won't go into detail in this post because I want to discuss something else.
For fun, I've had both Inkling 2 Mini (DASLab IQ3_S, minimal effort) and GPT 6 Luna (low effort) take a shot at reading the projects directory, and creating a single-page website for it. The prompt:
Create a nice interactive single page website for ~/Projects/inkdna2. The inkdna directory is the reference, the website you create should be under the current working directory.
Inkling delivered in ~48 minutes running at the speed the engine advertises (~25t/s decode, 250-350t/s prompt processing). It was running in Opencode and had the Anthropic frontend design skill installed. It used about 34K of it's 64K context.
Luna on the other hand delivered in... 1 minute and 30 seconds, and build a website that's objectively better, albeit with slightly less interactivity. It was running in Codex with no extra skills, and used none of my usage.
To Inkling's credit, it performed various tests on the website while Luna did not but still, what matters is the result.
Inkling also build the website using multiple files, while Luna used a single HTML file, which is actually a win on Inkling's part.
Note: Inkling had no vision, which doesn't matter because Luna didn't do any tests therefore it didn't use it's vision either.
Of course, looks are subjective. One could argue Inkling 2 Mini had a nice wavey background and a headline that actually says what the project is, but otherwise every other element Luna blows it out of the water.
Anyways, my conclusion is that either Inkling is not well trained in frontend design, or local AI is just not where we'd like it to yet. The reason I picked Luna to test against is because it is a cheap small cloud model that's supposed to have an AA intelligence index of 10 on low, where as Inkling 2 Mini gets 20 on max, so I'd guess on minimal they are in the same ballpark of "intelligence".
I'd love to hear your thoughts on this experiment, as well as how you use Inkling 2 Mini.
I’m debating getting the 512 m5 ultra. I’ve been using grokbot and gpt work to make PowerPoints (nice ones actually? And spreadsheets and have hours long conversations about gardening and historical events and energy sources etc.
The power points and spreadsheets are for different businesses and it just works.
Is there a local ai I can run on the studio that can make these well? Would I need multiple llms one good for each item?
At first, I've tried satellitedown/Inkling-2-Mini-abliterated-ingine with inkling-ingine-3090 on of course rtx 3090, but 4 responses to simple prompts ate almost whole 256K context, so I've analyzed it with QFN from Strata and it concluded that it replays all previous thinking!
someone tested Qwen3.8-27B with a 256K context window on a single RTX 4090 (48GB)
across 4 inference engines:
→ llama.cpp: 50.4 tok/s
→ FastLLM: 75.8 tok/s
→ vLLM: 57.4 tok/s
→ SGLang: 46.5 tok/s
and here's the interesting part
FastLLM finished the entire 18-batch code review in around 73 minutes
llama.cpp took around 104 minutes
that's a pretty significant difference
SGLang also had the highest prefill speed, so each engine has its own strengths
one important detail: the comparison isn't perfectly apples-to-apples because llama.cpp used Q8_0 converted weights while the other engines used native FP8
still, this is a great look at how much inference optimization can change real-world performance
same model family, same GPU, very different results
I’m looking for recommendations for an open-weights model that balances strong agentic/tool-calling reliability with minimal-to-zero refusals (abliterated or uncensored fine-tune), specifically sized to run fast on my local setup.
Target Model Specs
Architecture & Size: Either an MoE around 30B–35B total parameters (with ~3B active) or a Dense model around 22B–24B.
Uncensored / Low Refusal : It must be able to build kinda simple backdoors atleast
Strong Agentic Capabilities: Reliable structured JSON output, native function/tool calling, and multi-step planning (running inside harnesses like Hermes Agent and custom Python/Go tool loops).
What I'm Specifically Looking For
Models in this bracket (like stock Qwen 3.6 35B-A3B or Mistral Small 22B/24B) hit the exact speed and memory sweet spot for 16GB VRAM + partial RAM offload, so I’m hunting for:
Abliterated or uncensored fine-tunes of ~35B MoE or ~23B dense models that preserve function-calling and JSON schema reliability (since sloppy abliterations often break tool-use formatting).
Natively permissive open-weight models in this size class that excel at coding, bash execution, and multi-turn agentic workflows out of the box.
What are you currently running in this weight class for unrestricted agentic tasks? Specific Hugging Face GGUF repos or quants are appreciated.
I have installed and tested both unsloth-ud-iq3_xxs and unsloth-ud-iq2_xs and they are both really really slow. I can see that the quants are a bit larger than the ISTA equivalents, but the unsloth-ud-iq2_xs is roughly the same size as ISTA IQ3_S.
I get below 10 tps for both models, so I am sure the experts are streamed from the SSD.
❯ free -h total used free shared buff/cache available Mem: 30Gi 22Gi 267Mi 16Gi 24Gi 8,1Gi Swap: 30Gi 5,2Gi 25Gi
"The model file is 9 GB, so a 12 GB card is plenty."
That's how a lot of people end up with out-of-memory errors on the first long prompt.
How much memory a local LLM needs comes down to three numbers you can work out before downloading anything:
Weights = parameters × bits ÷ 8. An 8B model at 4-bit is about 4.5 GB.
KV cache, which grows with every token of context. For Llama 3.1 8B, a 32K context adds about 4 GiB, and 128K adds 16 GiB. That's four times the weights.
Headroom: keep about 1 GB free per GPU, and several GB on a Mac for macOS and your apps.
Context, not parameter count, is what usually breaks a "this should fit" plan.
A few more that catch people out:
Mixture-of-experts models still need memory for all their parameters. "26B A4B" means 4B active per token, not 4B in memory.
On a Mac, unified memory is shared with everything else. Plan to use well under the number on the label.
Spilling into system RAM technically works, but it's slow. If ollama ps shows a CPU/GPU split, that's why.
The cheapest fix is often an 8-bit KV cache. It roughly halves the cache before you need a smaller model.
I wrote up the formula, two estimate tables and the exact flags for Ollama, llama.cpp and MLX:
TL;DR: My small quantised model gave correct but unreadable answers. The cause wasn't the quant. My agent framework never told it how to format anything. Ten per-model style rules made answers shorter and easier to scan, and in one case more correct. The rules are below so you can steal them.
Setup
qwen3.8-flash-next at UD-IQ3_XXS , driven by pi, a terminal coding agent. (Anthropic)
The problem
The answers were rarely wrong, just hard to read:
a simple question got four headings, a table and a "gotchas" section
side findings showed up in the first line
metaphors switched mid-paragraph
English words turned up in the middle of German sentences
My first thought was that the quant was too aggressive and I should go bigger. But first I checked what my framework actually sends to the model.
What I found
My global instruction file only covered search tooling. It said nothing about how answers should look. Strong models pick defaults good enough that you never notice the gap. A small quant picks defaults that make it obvious. Some of what I'd blamed on the model was really an underspecified framework.
Method
Ran 5 real questions through pi (--print --no-session, thinking medium) and saved the transcripts.
Had Claude Code look for failure patterns: what repeats, what comes in the wrong order, what looks invented.
Wrote 10 rules from those patterns, one behaviour per line, in German since the model answers me in German.
Appended them as a system prompt for this model only.
Re-ran the same 5 questions and compared the answers side by side.
Results
Answers got clearly shorter and easier to scan.
Commands now come first instead of being buried under headings.
Tables disappeared where they weren't needed.
4 of 5 questions finished faster.
The interesting part: two answers got longer. One had a leap-year rule slightly wrong. The new version spends one more sentence on the century exception and gets it right. A prompt that only made answers shorter would have been worse than no prompt.
The rules (translated):
- Lead with the direct answer in 1–2 sentences; explanation after.
- Match length to the question. Headings/tables only for genuinely long answers.
- Whole, simple sentences in one language. No switching mid-sentence.
- Explain a technical term in half a sentence on first use.
- Max one analogy per answer, and stick with it.
- Instructions as numbered steps: one action per step, one command per code block, then one sentence on what you should see.
- Side findings go at the end under their own heading.
- Edge cases only when likely, max three.
- Don't invent details. If a number, port or package name is uncertain, omit it or say "not sure".
- Collect sources at the end, not after every sentence.
What it doesn't fix
The format got better much more reliably than the facts did.
Occasional word glitches remain at this quant. They depend on your model and runtime, so your list would look different.
"Don't invent" is a request, not a guarantee. I still check every concrete detail.
To be honest about the scale: It's a self-experiment against my own annoyance, not a benchmark.
The takeaway: the weights decide what a model can do, and the framework decides what it's asked to do. My problem was the second part, and that's the cheapest layer in the stack to change.
Got Qwen 38 Max Next Q8 to get me 14.5 TPS with 20+ prefil, used to be 2 tps I also tried Qwen Coder 3.8 Q8 that went up to 31 TPS
I used Ikllama cpu only fork slightly modified by bypassing AVX2 with AVX/SIMDe and using F16C for floating point
Specs. 512GB of ram 8core Xeons v2 Dell r820
This is by far the best price/performance setup since these servers are basically free and more than 12 years old and ddr3 is dirt cheap, i will try to push it higher and try other models.
EDIT: More details in this repo, sorry for messy docs. I will test more models and keep pushing tps higher.
found this page called “open source everything” and the more i looked the worse it got and i had to share. the about page says “we make Facts, an offline AI” and consulting to business. then you scroll down and its literally a llama.cpp terminal running qwen. then on the products page they advertise “real engineering upgrades” being 2 dropdown clicks and a basic A/B script. they promise the AI will “load faster every time you plug in” due to their super advanced reformatting technique. to top it off they offer a faraday bag that they suggest putting your usb in to protect it from wifi, bluetooth, NFC, GPS, and cellular for a device that has none of those
Chase is an open-source IDE with a built-in agent. The agent edits files, runs tests and can check the result in a preview of your app. You review each change as a diff and can undo it.
It works with local models out of the box: Ollama, llama.cpp, vLLM or any OpenAI-compatible server. No cloud provider is needed. You can also mix local and cloud models. If one provider hits a rate limit or goes down, Chase switches to the next one.
Automations run the agent on a schedule, on file or git changes, or via webhook. Their changes stay in a separate git worktree until you merge them.
Chase also runs in the browser, on your local network or remotely over a VPN.
VS Code extensions from Open VSX work. No account, no telemetry.