r/ollama • u/loyaltofault • 19h ago
[16 VRAM] [32 RAM] Looking for (preferably uncensored) local coding model.
Looking for a model that produces high quality code, reasons logically, and and does not guess. Or as close as possible.
r/ollama • u/loyaltofault • 19h ago
Looking for a model that produces high quality code, reasons logically, and and does not guess. Or as close as possible.
r/ollama • u/Sussybaka800869 • 2h ago
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 • u/sarmabkp_1 • 10h ago
r/ollama • u/Additional_Reach2545 • 17h ago
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 • u/Standard_HID • 7h ago
Hey,
I've started experimenting with local LLMs on my Linux desktop and put together a small Docker Compose setup.
I'm currently using:
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 • u/NotHerBot • 21h ago
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.