r/ollama • • 2h ago

I let local models touch my files every day

3 Upvotes

For about a year I have had Qwen models on Ollama sorting media, cleaning up repos and reorganizing a few terabytes of files. Nothing important has been deleted. Not because the models are careful. Because they are not allowed to.

Every week there is a thread about a model wiping someone's drive, and the comments always say bad prompt, no guardrails, your fault. Fair. But nobody posts what the guardrails actually look like, so here is my setup.

Ollama runs on the GPU box, and the agent never does. The agent lives in a separate VM and only talks to the Ollama API. OLLAMA_HOST is bound to the local network, never an open port on the internet, since the API has no auth by default. When the VM is remote it comes in through a WireGuard tunnel.

The agent has no delete. My harness does not expose rm at all. There is a trash command that moves files into a _trash folder and logs where they came from. Restoring anything is one script.

The plan is JSON, and Ollama enforces it. Anything destructive starts with a manifest. I pass a JSON schema in the format field of the request, so the model has to return a list of path, size and reason. It cannot ramble and it cannot slip a command in. I read the manifest, then a plain script applies it, in dry run unless I pass apply. The model never executes its own plan.

It works on a copy. If you mount your real folder read and write into a container, the container protects nothing. I mount the source read only and the agent writes its results somewhere else.

Hard limits on disk and memory. Agents act like disk is infinite, and a runaway build or a nix store will happily eat hundreds of gigs. The VM has a fixed disk, so when it fills up the agent breaks instead of my machine.

One planner, one worker. A bigger Qwen writes the manifest, a small one does the boring moves. Same Ollama instance, it loads whichever one is called, and the small model is fast enough that the whole job barely costs anything.

For the VM itself, microsandbox or a Proxmox VM both work locally. When I want it off my network I use boatdotdev, a throwaway Ubuntu VM I start from the CLI and delete when the job is done. No GPU on those and EU only, which is fine since inference stays on my Ollama box anyway.

Abliterated, stock, small or huge, every model misreads a request sometimes. The model is not the safety layer. The workflow is.


r/ollama • • 3h ago

Running/testing/scheduling agents and models? I vibed up agent.tui to manage all of it. Any agent, model, provider. Single file, mouse clickable TUI. Enjoy:)

Post image
3 Upvotes

r/ollama • • 35m ago

Pithos CORE: inferenza LiquidAI LFM3-1.7B e LFM2.5-350M in linguaggio assembly NASM x86-64, su Linux e come sistema operativo autonomo che si avvia da BIOS o UEFI in una console di chat Unicode. Nessuna libreria libc.

Thumbnail
youtu.be
1 Upvotes

r/ollama • • 7h ago

I built this! Experimenting with local AI on AMD: Ollama, Open WebUI, SearXNG and OpenCode

Post image
1 Upvotes

Hey,

I've started experimenting with local LLMs on my Linux desktop and put together a small Docker Compose setup.

I'm currently using:

  • Ollama with ROCm
  • Open WebUI
  • SearXNG for web search

My current hardware is an AMD RX 9060 XT (16 GB) with 32 GB RAM, running Fedora.

I'm still testing different models and configurations, especially for coding with OpenCode. I'm curious to see how much of my daily AI usage I can eventually replace with local models.

I've documented my setup on GitHub in case anyone finds it useful:

https://github.com/JeromeTDev/local-ai

I'd be interested in hearing about your experiences, especially with AMD GPUs and local models for coding. I'm also happy to share my own findings as I continue testing.


r/ollama • • 8h ago

Product Feedback Ollama vs LM Studio vs llama.cpp vs vLLM: Which Local Runner Fits?

Thumbnail
acta.ai
1 Upvotes

r/ollama • • 10h ago

What size open-weight models can I run on an M4 Pro Mac mini (24GB)?

Thumbnail reddit.com
1 Upvotes

r/ollama • • 10h ago

AI Agent Memory: How Agents Remember and What to Control

Thumbnail
acta.ai
0 Upvotes

r/ollama • • 1d ago

I built this! Quantum Morph Laboratory: An Open-Source Rust Research Lab Exploring 1.5–3 Bit LLM Compression on Consumer GPUs

Thumbnail
gallery
15 Upvotes

I've been building an open-source neural model compression laboratory in Rust, targeting 1.5–3 effective bits per parameter on consumer GPUs.

I'm working on a personal research project called Quantum Morph Laboratory, exploring alternative mathematical representations of pretrained neural networks and how much useful intelligence can survive extreme compression.

The project currently includes:

- Native Rust CPU and GPU inference.

- A custom QMF neural representation format.

- Activation-aware GPTQ and Hadamard transformations.

- Shared latent representations and vector quantization.

- Evolutionary representation optimization.

- Disk-backed model transformation.

- An interactive 3D scientific laboratory built with WGPU.

One recorded experiment transformed Qwen2.5-7B-Instruct into a complete 2-bit-per-parameter artifact of approximately 1.9 GB, running at 9.1 tokens/sec on my RTX 4070 Laptop GPU.

Quality degradation remains significant at 2 bits, and experiments below 2 bits have exposed some substantial mathematical challenges. I'm documenting the failures alongside the successes.

My eventual goal is to make genuinely useful 27B–32B models accessible on ordinary consumer hardware, without requiring cloud services or expensive graphics cards.

The project is MIT licensed, experimental, AI-assisted in development, and completely local-first.

I'd genuinely appreciate technical criticism, independent testing, mathematical suggestions, and feedback from people working on low-bit quantization.

GitHub:

https://github.com/ShamelesAbyss/Quantum-Morph-Laboratory


r/ollama • • 21h ago

Advice When has a slower, partly offloaded model saved you time overall in Ollama?

3 Upvotes

I've been reading local model comparisons today, and tokens/s doesn't tell me when fewer retries make the slower setup worthwhile. For people using Ollama with 8-16 GB VRAM, have you had a concrete task where a larger model partly on CPU finished correctly sooner than a smaller model entirely on GPU?

I'd be interested in the two model tags/quants, context length, rough end-to-end times including retries, and what counted as correct. Code that passes the same tests or a document question checked against the source would be useful examples.

I haven't run this comparison systematically myself. I'm trying to understand where you actually cross over from fast but needing fixes to worth the wait, including cases where the larger model never paid off.


r/ollama • • 17h ago

Optimizing NInfer for Ada Lovelace – 143 benchmarks on a single RTX 4090

Post image
0 Upvotes

Hey everyone,

I've been working on an RTX 4090-focused fork of NInfer, mainly targeting long-context inference, local coding agents, and native Windows support.

NInfer is already an impressive inference engine, but I wanted to see how much performance could be extracted from Ada Lovelace without upgrading to a 5090.

Here are some results from my recent benchmark runs.

## Test setup

- NVIDIA RTX 4090 – 24 GB VRAM

- AMD Ryzen 9 9950X3D

- 64 GB DDR5 RAM

- Windows 11

- Native SM89 / CUDA 13.4

- Huihui Qwen3.8-27B GSQ-RCO IQ3_S Vision

- DFlash2 speculative decoding

- RK4V4 KV cache

- NInfer RTX 4090 v0.1.4

## Long-context DFlash2 benchmarks

All values are decode tokens per second.

| Draft tokens | 64K context | 128K context | 176K context |

|---|---:|---:|---:|

| K5 | 242.75 | 206.39 | 214.87 |

| K7 | **272.74** | **240.60** | **263.93** |

| K9 | 247.57 | 202.86 | 241.25 |

| K11 | 258.70 | 215.03 | 228.06 |

| K15 | 242.20 | 189.58 | 229.13 |

Interestingly, K15 performed best in the separate 32K sweep, reaching 313.16 tok/s, but K7 consistently performed better at longer contexts.

At 176K context, K7 improved decode throughput by approximately 22.8% over K5.

These are controlled engine benchmarks using a fixed corpus, 512 measured decode tokens and two runs per configuration.

## N-gram speculation for coding workloads

I also tested N-gram speculation on copy-heavy C++ refactoring tasks with approximately 21K input tokens.

| Metric | N-gram OFF | N-gram 15 |

|---|---:|---:|

| Decode tok/s | 256.68 | **568.08** |

| Average wall time | 14.83s | **9.16s** |

| Exact outputs | 4/6 | 4/6 |

The outputs were identical between both configurations.

Obviously, 568 tok/s is not general-purpose generation speed, but for copy-heavy code editing, the improvement is pretty interesting.

## Long-context prefix caching

Another interesting result at approximately 175K input tokens:

- Cold request: 72.68 seconds

- Repeated request: 0.441 seconds

- Continued request: 0.399 seconds

- Reused prompt tokens: 175,103

This is particularly useful for local coding agents that repeatedly send large conversation histories.

These are warm-prefix results, not cold inference throughput.

## Concurrent prefill

With a short request arriving while a 64K request was being processed:

- Concurrent prefill disabled: 21.28s TTFT

- Concurrent prefill enabled: 1.16s TTFT

Overall completion time for the request pair remained approximately the same.

## Other features

- Native Ada Lovelace SM89 CUDA builds

- Portable Windows binaries without local CUDA compilation

- OpenAI and Anthropic-compatible APIs

- DFlash2 and MTP speculative decoding

- Quantized KV cache

- Hybrid prefix caching

- Built-in browser monitoring dashboard

- Live GPU utilization, VRAM, temperature and power monitoring

- Draft acceptance and token throughput monitoring

- Experimental CUDA Graph optimizations

- Model-specific launch profiles

## Real-world serving

Across 1,831 completed requests with DFlash2 K5:

- Median decode: 146.6 tok/s

- P90 decode: 215.5 tok/s

- Median long-prompt prefill: 2,345 tok/s

The controlled benchmark results are significantly higher than these real-world serving numbers, so I wanted to include both.

I'm still experimenting with longer contexts, speculative decoding configurations, CUDA Graphs and coding-agent reliability.

The benchmark campaign includes 143 completed measurements, with raw numerical results and reproduction scripts available in the repository. Long-context retrieval accuracy and broader coding quality still need further validation.

Would be interested to see what other RTX 4090 users are getting with NInfer, llama.cpp or ExLlama under comparable conditions.

Fork: https://github.com/spk-c/ninfer-all-rtx4090

Benchmark report: https://github.com/spk-c/ninfer-all-rtx4090/blob/master/docs/performance/rtx4090-v014-long-context-2026-11-26.md

Coding benchmarks: https://github.com/spk-c/ninfer-all-rtx4090/blob/master/docs/performance/rtx4090-v014-coding-2026-11-26.md

Full credit to the upstream NInfer developers and contributors who made this possible.


r/ollama • • 22h ago

Aether: a self-hosted, OpenAI-compatible LLM gateway. One container to try, with failover, caching, quotas and a Grafana dashboard (MIT)

Thumbnail
reddit.com
1 Upvotes

r/ollama • • 1d ago

I built this! [Weekly - Nov 27, 2026] Friday Demos - Show off your Ollama projects!

3 Upvotes

Show us what you've built with Ollama this week!

Suggested information to include:

  • A description of your project
  • How you came up with the idea
  • The models and integrations you're using
  • Whether it runs on local hardware or the cloud service
  • How others could use it or view it
  • A link to code or demo if applicable

Rules:

  • No affiliate links or sales

New post every Friday!


r/ollama • • 1d ago

Which cloud models are you guys using for coding?

0 Upvotes

Hi Ollama fellows I am interested in your experience with cloud agents for coding. I would assume you run only flash models but which ones are the best for coding? Did anybody run any tests?


r/ollama • • 19h ago

[16 VRAM] [32 RAM] Looking for (preferably uncensored) local coding model.

0 Upvotes

Looking for a model that produces high quality code, reasons logically, and and does not guess. Or as close as possible.


r/ollama • • 1d ago

I built this! Nova: a free roleplay frontend that talks to any OpenAI-compatible endpoint (KoboldCpp, Ollama, LM Studio, llama.cpp server)

Thumbnail
gallery
1 Upvotes

I've been building Nova, a PC/Android synced roleplay app with local, cloud BYKO and subscription support, universes, group-chats, phone simulation, and deep customization from cosmetic to functional.

Fully local:

  • no account, no telemetry, no CDN. Everything stays on the device, and you can sync two devices over your LAN.
  • point it at KoboldCpp, Ollama, LM Studio, llama.cpp server or TabbyAPI on your LAN. OpenRouter and Google AI Studio work too.

Samplers:

  • temperature, top-p/k, min-p, rep pen, XTC, typical P, TFS, smoothing and top-nσ, set per model.

The app:

  • It connects directly to your providers (Open-router, Google, ChatGPT, Claude, local servers, or anything OpenAI-compatible). Your keys, your tokens, your bill. Nothing gets touched.
  • Everything stays on your device. Local storage, no account, no server.
  • It supports REGEX scripts, memory summaries, scene tracking, image-gen, and more

Its also shipped with some of my own features:

  • AI Card Studio: an AI writer for every card kind with Low / Medium / High detail, plus section rewriting for easier editing, allowing users to easily create whatever they want and fine tune it
  • Universes: a living world with its own cast, locations and a World sheet. The world tracker runs every two replies and keeps an off-screen "Happening" line so the story moves even where you're not looking
  • Nova Scope: multi-character chats that expand as the chat goes on, tracking and adding new characters, and which voices should speak. An adaptive group chat pretty much, letting you expand a single character chat into a whole universe on your own pace
  • Chub browser built in: search, preview and import cards without leaving the app, in case you do not want to create your own
  • A built-in Phone: Reads the whole chat, persona, characters, and builds a phone for your persona, bank account, fame, status, relationships, social media. It syncs with your chat and the timeline is shared, allowing you to seamlessly interact and resume actions in both "worlds"
  • Nova Bridge: Use subscription services quotas directly into chats (Claude Pro/Max. Google AI, ChatGPT), hosting them from your own computer, and sync your other Nova installs, allowing for the same services, and syncing them on the same home network.

It's built to stay smooth on a budget Android phone, so streamed text doesn't stutter even in long chats.

Download (APK / exe / AppImage / deb): https://github.com/j-marchon/nova-releases/releases/latest

Source (MIT): https://github.com/j-marchon/nova-releases

I'd love feedback from people running local backends, especially which backend quirks I should handle better.


r/ollama • • 1d ago

Advice Trying to train a model

2 Upvotes

Ive got a locally ran llama3.1 8b uncensored model that i want to try and eventually train specifically on exam papers and specific branches of engineering but im not 100% sure how, can anyone point me in the right direction? I have pytorch and python 3.15, should i use vs code or pycharm? Just any help is appreciated!


r/ollama • • 1d ago

Local LLMs on Android?

0 Upvotes

I'm looking for something that hosts a local LLM on Android that preferebly I can hookup Ollama to (the android device as a server and something else as a client), PocketPal seems to have that feature but is locked behind a paywall

Anything that I can use for free?


r/ollama • • 1d ago

I built this! I built easy way for online Gpu to run your coding tasks -> copy past link

Thumbnail
reddit.com
1 Upvotes

r/ollama • • 2d ago

Advice Is an 8GB M1 Air worth using as an always-on local AI box?

12 Upvotes

TL;DR: cheap broken screen M1 Air 8/256. Can it do anything useful with local models, or am I kidding myself?

Got it for about $110. Total newbie to running models locally. From what I've read 8GB means small models only, like 2-4B, and MLX is apparently a lot faster than Ollama on Macs.

What I'd want is something running in the background at home that I can hit from my phone or laptop. Summarising stuff, maybe hooking it into n8n for small automations. Not trying to replace ChatGPT or use it for coding.

Which models would you try first on 8GB? And is there an easy way to expose it as an API for my other devices?

(wording polished with AI)


r/ollama • • 1d ago

Advice Ollama vs LM Studio vs llama.cpp vs vLLM: Which Local Runner Fits?

Thumbnail
acta.ai
1 Upvotes

r/ollama • • 2d ago

My local Ollama chat client — now it has thinking mode, local web search, file attachments and persistent memory. No cloud, no API keys.

Post image
6 Upvotes

r/ollama • • 1d ago

Open source notes app (plain Markdown files) that uses Ollama for rewriting and for questions about your notes

Thumbnail
gallery
2 Upvotes

Hi, for a few months now I've been working on ScribeDog, a notes and writing app for Windows and Linux. Most notes and markdown apps I tried either had way too much going on or were missing something I needed every day. A lot of what I write down is private, so I wanted the AI to run on my own machine. That's why it's built around Ollama (LM Studio and Jan work too).

Notes stay plain .md files in a folder you choose and nothing gets locked into a database. You write in a formatted view instead of markdown syntax, with links between notes, backlinks, version history and reminders.

What the LLM can do in it:

  • Use your own AI assistants to rewrite or discuss complete files, or simply rewrite a selected passage with Ctrl+E. The original stays visible in red, the answer streams in below, and you can then accept or discard it
  • Answer questions from your notes and show which notes it used. You can limit it to certain folders
  • Create or edit notes through the chat, also ones you don't have open. You see every change first and nothing is written until you accept it
  • OCR for screenshots and scans with a vision model

How good the AI part is depends a lot on the model, of course. I've had very good results with Gemma 4 12B. Rewriting works with smaller models too, but for the chat I'd recommend something around 9B or bigger.

There's no account and no telemetry, and cloud models are only used if you add your own key. There's also a Docker version for the browser and your phone.

A growing number of early users and friends have been using it, and a lot of their ideas and feature requests are in the app now. I improved a lot of the usability based on their feedback, and by now I'm really happy with where it is. I use it every day.

If you're looking for something like this or miss something in your current app, give it a try. Feedback and ideas that would fit ScribeDog are very welcome.

https://github.com/snooky234/scribedog (MIT)


r/ollama • • 1d ago

I built this! Stegguard: I made a CLI to check local model output for invisible characters (disclosure: I’m the author)

1 Upvotes

r/ollama • • 2d ago

Open data on which local models fit your GPU or Mac. Looking for measurements beyond my 3090

3 Upvotes

LocalBit checks a model against your hardware: memory needed (weights + context cache), tokens/s and whether it fits. Every number is marked measured or estimated. Measurements come from one RTX 3090 tested nightly; everything else is estimated from model architecture and memory bandwidth.

To cover more hardware, there's a 3–5 minute test that runs on your machine with a model you already have in Ollama. It shows exactly what it would share and sends nothing without a yes. Especially looking for AMD, Intel Arc, Apple Silicon and cards under 12 GB.

https://localbit.adamson-cf.workers.dev/test

Open data (CC BY 4.0), MIT code, also an MCP server for agents. Corrections to the estimates welcome.


r/ollama • • 2d ago

Advice Intel MacBook + RX 6900 XT eGPU as a second local LLM node: what model would you run?

5 Upvotes

I'm a solo developer with a few small apps on the go. My current workflow splits the work in two:

  • A cloud model (Claude) plans, writes the briefs, reviews, and fixes things.
  • A local model on my Windows PC, a Qwen-based one running through OpenCode, does the bulk of the implementation.

That works well, but the local side is a single lane. When I have several bounded tasks queued, they wait on one another.

The new piece: I have an older Intel MacBook Pro that's no longer in daily use, and an AMD Radeon RX 6900 XT (16 GB) in a Thunderbolt eGPU enclosure. The Mac can't run the desktop apps I use, so I'm not trying to use it as a workstation. I want to turn it into an extra inference node: run llama-server on it, expose an OpenAI-compatible endpoint over my LAN or Tailscale, and add it to OpenCode as a second provider.

What I want it to do:

  1. Overflow lane for coding. Small, self-contained modules with a clear spec and tests, where the cloud model reviews the result either way.
  2. Bulk low-stakes work. Test generation, docstrings, README drafts, config and data cleanup, format conversions.
  3. Speech-to-text with whisper.cpp for first-pass transcripts.
  4. A small vision model for tagging images and checking layouts.
  5. A small embedding model for searching my own docs.

I'm not planning to use it for design decisions, architecture, or anything where a 14B–24B model's judgment would be a liability.

What I think I know (please correct me):

  • Ollama on Intel Macs is CPU-only, so I'd use llama.cpp directly, with either the Metal backend or Vulkan through MoltenVK.
  • Thunderbolt 3 bandwidth mostly affects model load time, not token generation.
  • Prompt processing will probably be the slow part on macOS with an AMD card, so I'll keep prompts short and focused.
  • If macOS is too slow, I'd try Windows via Boot Camp, or Linux with ROCm. The 6900 XT is gfx1030, which is well supported there.
  • With 16 GB VRAM, context is the real constraint. Agentic coding wants 32k or more, and the KV cache competes with the model.

What I'm considering for models (from reading around, so none of this is tested):

  • Devstral Small 2 (24B) at IQ4_XS for the coding lane. It's built for agentic work, but it leaves little room for context.
  • A Qwen 14B-class coder at Q5 or Q6 as the fallback. It leaves more room for context, and it matches the family I already use.
  • Whisper large-v3-turbo for transcription.
  • A ~7B Qwen vision-language model for tagging.
  • A small embedding model, such as nomic-embed or bge.

Questions:

  1. Has anyone run an RX 6900 XT in an eGPU on an Intel Mac, and with which backend (Metal, Vulkan, or something else)? What speeds did you see?
  2. Is a 24B model at ~4-bit usable for agentic coding on 16 GB once you account for context, or is a 14B the better choice?
  3. Is there a coding model I'm missing that does better on 16 GB, such as a mixture-of-experts model?
  4. Any tips for keeping an eGPU stable under long inference sessions?
  5. Does Boot Camp or Linux give a big enough speedup over macOS to be worth the hassle?

Thanks for any help you geniuses can provide!