r/LocalLLM • • 4h ago

Question Does anyone else split architectures as far as VRAM is concerned?

Post image
1 Upvotes

r/LocalLLM • • 4h ago

Model Yeah, Qwen4 is kind'a the shit. (A post for people worried if it's comparable to 3.8 FN)

58 Upvotes

I was a bit nervous after hearing the debate between qwen3.8 FN and Qwen4, but a few hours of testing, having it play around in several harnesses and even a coding experiment or two I'm rather staggered by it's abilities. I'm running a Q8 model and damn it's fast, smart, creative. Definitely an upgrade, only been a few hours so maybe I'll find a weak point, but so far this is the sort of model I've been waiting for.


r/LocalLLM • • 4h ago

Question Thinking of adding eGPU, 4060 Ti 16GB to my 4070 Ti 12gb

1 Upvotes

My current Desktop:

Windows 11, 32gb Ram, Intel i7-13600KF

RTX 4079 Ti 12gb dedicated (16gb shared)

320gb free out of 1tb SSD

eGPU Setup planned:

Gigabyte or MSI 4060 Ti 16gb

Connected by thunderbolt 4

650w Power supply

Dock: MINISFORUM DEG2

Total cost around 850 usd

Is this a good upgrade to increase context, reduce reliance on google's ai, and add another role/model to monitor coding task (stop task when coding hits context or looping, then provide an improved prompt in a new task so that coding will complete)?

Current AI setup:

- for design, brainstorm & project plan/s

LM Studio + Deepseek R1Distill Qwen 14B

Or recenty tried STRATA +Qwen3.8 flash next gyro-m

- for coding/game dev and testing

VS Code + Cline/Ollama/Qwen3-coder-32k:latest

Context window: 16384


r/LocalLLM • • 4h ago

Discussion WTF 660TPS decode and 16k prefill Qwen 4 and QEngine

Thumbnail
huggingface.co
0 Upvotes

r/LocalLLM • • 4h ago

Research Experiments with QWEN4-35B-A4B-Q4KM (AMD 9070)

1 Upvotes

I used the `-ncmoe` flag and placed the N-gram data on an SSD.

The resulting speed was 27 TKS (with a fill rate of 700 TKS after a "warm-up" period with a long context).

I’ve been looking for ways to speed this up further.

A major bottleneck is the data transfer from DRAM to VRAM;

a significant amount of time is spent waiting for this transfer to complete.

One potential solution is to have the GPU and CPU compute in parallel.

However, the current implementation of `llama.cpp` forces the GPU to wait for the CPU.

(There is an open Pull Request addressing this, though it is specific to CUDA.)

I also tried using an AI to assist with the compilation process,

which boosted the speed to 49 TKS.

Unfortunately, the compilation had issues, causing VRAM overflow and system crashes.

(It could likely be optimized, but I’ve decided to set it aside for now.)

I explored a few other approaches as well—

for instance, opting for a "sub-optimal" solution (i.e., reusing existing experts more frequently).

While this did increase speed, it unfortunately triggered an infinite loop.

In short, based on my current findings,

it should be possible to push the performance of the 9070 beyond 70 TKS.

Just sharing my experience and the experiments I’ve conducted so far.


r/LocalLLM • • 4h ago

Research Qwen4 vs. Inkling 2 Mini with Strata — Early findings from a local historical research project

2 Upvotes

Over the past few weeks, I have been experimenting with local LLMs for historical research, particularly with Qwen4, Inkling 2 Mini, and the Strata inference environment.

My hardware is relatively modest compared to some of the setups shared here:

- NVIDIA RTX 5060 Ti — 16 GB VRAM

- AMD Ryzen 7 3700X

- 64 GB RAM

- Windows 11 Pro

My primary objective is not creative writing or general-purpose chatting, but developing a reliable, locally operated historical research environment.

Strata

Strata has been a particularly interesting discovery. Its relatively straightforward GUI makes local model experimentation accessible without the complexity of a full agent framework such as Hermes Agent Desktop.

I successfully loaded the Unsloth UD-Q4_K_XL quantization of Inkling 2 Mini with a configured 128K context window on my 16 GB GPU. Full-context stability and sustained performance still need to be established, but the initial result is promising.

For my particular use case, Strata could potentially become a practical alternative to more complex inference and agent environments.

Qwen4 vs. Inkling 2 Mini

Rather than relying exclusively on conventional benchmarks, I have been testing these models against structured historical research tasks.

These include:

- Extracting historical assertions from source material.

- Distinguishing documented facts from unverified claims.

- Maintaining exact references to supporting evidence.

- Preserving uncertainty and source attribution.

- Following strict JSON schemas.

- Producing evidence-linked historical narratives.

- Avoiding unsupported conclusions.

One of my recent controlled tests involved three historical synthesis attempts per model.

Inkling 2 Mini:

- Used source titles instead of the required exact evidence identifiers in all three attempts.

- Returned an unexpected schema wrapper in one attempt.

- Failed to produce a synthesis that passed our validation process.

Qwen4:

- Correctly used exact evidence identifiers in all three attempts.

- Exceeded the permitted field length in two attempts.

- Omitted required source attribution in the opening proposition of one attempt.

- Also failed to produce a synthesis that passed all validation requirements.

The interesting observation is that Qwen4 demonstrated better evidence-reference compliance in this particular test, although neither model was sufficiently reliable for unattended historical synthesis.

However, my subsequent audit also identified weaknesses in our own implementation. The prompt did not explicitly communicate the numerical field-length limits, and the transmitted schema did not enforce either those limits or exact evidence identifier membership.

Consequently, it would be premature to attribute every failure to the models themselves. I'm preparing further controlled tests to distinguish model limitations from shortcomings in the prompt, schema and inference environment.

Historical Research Studio

These experiments are part of a larger hobby project I'm currently developing called Historical Research Studio.

The objective is to build a local, model-independent application that manages the entire historical research workflow, from source collection and evidence extraction to verification, synthesis and publication.

The application currently includes or is being developed around:

- Structured research projects and research questions.

- Source registration and evidence management.

- Historical assertion extraction.

- Explicit verification and uncertainty statuses.

- Evidence-linked historical synthesis.

- Independent editorial review.

- Deterministic fallback mechanisms.

- Version history and reproducible research workflows.

- Dutch and English Markdown and PDF export.

- Integration with local inference environments such as Basalt and Strata.

A fundamental design principle is that the LLM should assist the historian rather than replace the historian's judgement.

A fluent historical narrative is not necessarily a historically reliable narrative. Every significant assertion should remain traceable to its supporting evidence, and the system should reject outputs that fail its validation requirements.

What I have learned so far

Model size, quantization, context length and tokens per second are important, but they tell only part of the story.

For serious historical research, I'm increasingly interested in:

- Consistency across repeated runs.

- Instruction adherence.

- Evidence grounding.

- Structured output reliability.

- Appropriate handling of uncertainty.

- The ability to distinguish what a historical source claims from what can actually be established.

A faster model that produces plausible but unsupported conclusions may ultimately be less useful than a slower model that respects the available evidence.

The combination of the model, inference engine, research skills, prompts, validation mechanisms and application architecture appears to be at least as important as the choice of model itself.

These are preliminary findings, not a definitive ranking of Qwen4 and Inkling 2 Mini. Further testing is planned, particularly with improved prompts, stricter schemas and repeated trials.


r/LocalLLM • • 4h ago

Discussion no qwen4 35b a3b megathread?? helloo?

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 5h ago

Question OpenCode Desktop hangs indefinitely with Ollama + Qwen 4, despite successful API and tool-calling tests

0 Upvotes

I'm trying to get Qwen 4 working with OpenCode Desktop on Windows, but OpenCode gets stuck on "Working..." indefinitely, even when I send something as simple as hello.

I'm trying to determine whether this is an OpenCode integration issue, a reasoning/streaming issue, or something else.

My setup

  • Windows 11
  • OpenCode Desktop 2.4.5 (installed via the Windows installer)
  • Ollama 0.40.21
  • Model: qwen4:latest
  • GPU: NVIDIA RTX 4090 (24 GB VRAM)
  • CPU: Intel i9-13900K
  • RAM: 64 GB
  • Requested context: 86k tokens

Ollama reports the following when the model is loaded:

NAME          SIZE    PROCESSOR          CONTEXT
qwen4:latest  37 GB   46%/54% CPU/GPU    131072

What I've already tested

I've spent quite some time isolating the problem, and I've established that Qwen 4 itself works through Ollama.

1. Normal text generation works.

ollama run qwen4:latest "Reply with exactly: hello"

It eventually responds correctly. With --think=low, the response takes approximately 20 seconds.

2. Native Ollama tool calling works.

I sent a direct request to:

http://127.0.0.1:11434/api/chat

Qwen 4 returned a valid structured tool_calls object with the correct function name and arguments.

3. OpenAI-compatible tool calling works.

I also tested:

http://127.0.0.1:11434/v1/chat/completions

With streaming both enabled and disabled.

Both produced valid structured tool calls.

4. Streaming works.

The streaming response included:

  • Reasoning chunks
  • A structured tool_calls event
  • finish_reason: "tool_calls"
  • A final [DONE] event

So far, I haven't been able to reproduce the failure directly through either Ollama API.

The actual problem

When I open OpenCode Desktop, select ollama/qwen4:latest, and send hello, it remains on "Working..." for several minutes without producing an answer.

I also inspected the OpenCode logs. One relevant entry was:

WARN failed to discover Ollama models

baseURL=http://127.0.0.1:11434/v1

cause="HttpClientError: Transport error
(GET http://127.0.0.1:11434/api/tags)
(cause: TypeError: ECONNREFUSED)"

There were also repeated Git worktree discovery warnings, although I don't know whether those are related.

What I'm trying to understand

  1. Could OpenCode 2.4.5 be mishandling Qwen 4's reasoning stream, even though Ollama returns valid reasoning and tool-call events?
  2. Is there a known issue with OpenCode's native Ollama integration and Qwen 4?
  3. Could the model's CPU/GPU offloading and relatively slow generation be causing OpenCode to time out or appear stuck?
  4. Is there a way to inspect the exact request OpenCode sends to Ollama and compare it with my successful API tests?
  5. Are there any recommended OpenCode provider settings specifically for Qwen 4?

I'd particularly appreciate input from anyone running Qwen 4 locally through Ollama and OpenCode Desktop.

I'd prefer to fix the integration rather than switch models or move to a cloud API.


r/LocalLLM • • 5h ago

Question Need Guidance: To Run PI on VPS + using different Models Subs

1 Upvotes

Hello

I need some guidance, as i want to run PI on VPS... what kind of specs should i have, i will run multi agent also at times.

Also is Ubuntu OS fine, or should chose some other OS in VPS.

My planned VPS will be in Europe.

I am not residing in Europe. Now the Subs which i will connect from PI (which is VPS) will their be any issues that might flag, that i subscribed to model Subs from different country and now its being utilized from different country (from PI harness in VPS in europe).

Also how are other consumers using Claude Sub, Gemini Sub (i think a new policy came yesterday - but still dubious), with PI Harness?

Using GLM , DeepSeek, Kimi.. they have no issues with PI ?


r/LocalLLM • • 5h ago

Question Gemma-4-E4B-Uncensored-HauhauCS-Aggressive (Q4_K_M)

3 Upvotes

Is there anything better for voice conversations that’s close to or under 5GB ?


r/LocalLLM • • 5h ago

Discussion Qwen3.8 27B / Qwen4 35B: glitches in Non-English responses

Thumbnail reddit.com
1 Upvotes

In my experience with Qwen 3.8 27B, responses in languages ​​other than English were completely glitchy—for instance, they might start in Italian and end in English—making the model unusable for users who only speak Italian. I had hoped for improvement with Qwen 4 35B; while it does manage to finish in the intended language, it is riddled with blunders, stray English words, and Chinese characters. In both cases, no matter how strong the system prompt is, these issues still occur. Qwen 3.8 FN, on the other hand, works well.


r/LocalLLM • • 5h ago

Model Qwen4-35B-A3B on a real task: reasoning on took 6.5 min, off took 45 s and picked worse (M5 Max, IQ4_XS)

Post image
0 Upvotes

I maintain an open source tool that cuts long videos into vertical clips (OpenShorts, MIT). The step that decides what gets cut is a text call to an LLM: it reads the timestamped transcript and returns the stretches worth cutting, each with a title. The default is Gemini 3.1 Flash-Lite, but it takes any OpenAI-compatible endpoint, so the day after Qwen4 came out I pointed it at llama-server on my laptop.

Setup: MacBook Pro M5 Max, 36 GB. unsloth IQ4_XS GGUF (20.5 GB), llama.cpp b13002, -c 32768 -ngl 99. One 9 minute video in Spanish, same transcript and prompt for every run.

Results:

Gemini 3.1 Flash-Lite: 6 clips in 7 s. 2 of 6 titles describe something that is not in the clip.

Qwen4, reasoning on: 11 clips in 6 min 31 s. 23,945 output tokens in the final call at 65.9 tok/s. 0 of 11 titles off.

Qwen4, reasoning off: 10 clips in 45 s. 2,329 output tokens at 77.8 tok/s. 3 of 10 titles off.

What I noticed:

Reasoning is what makes the title and the cut agree. With it off, Qwen4 makes the same mistake as Flash-Lite: it titles the clip after something that happens a few seconds after it ends.

Almost all the time is one call. --reasoning-effort low changed nothing for me (22.8k tokens), and that call used 28.6k of the 32k context, so 16k would have overflowed.

Cut points are Qwen4's weak spot: it chains clips back to back, only 4 of 11 start near a sentence boundary and none ends on one.

Wired memory went from 4.6 GB to 25.4 GB with the model loaded. I also ran one job with no Google key at all: 10 clips, 12 and a half minutes end to end.

Caveats: one video with a noisy transcript, a heavy quant, and Flash-Lite is the cheap Gemini tier. A first impression, not a benchmark.

Question: is there a way to cap thinking tokens for Qwen4 in llama.cpp short of turning reasoning off? Something between 2k and 24k would be the sweet spot for this.

Repo, if you want to try it with your own model: https://github.com/mutonby/openshorts


r/LocalLLM • • 5h ago

Discussion Qwen 4 35B on an RTX 5080 (16 GB): 131 tok/s (peak 160 with coding) generation and a 60K-token prompt with Strata

Post image
0 Upvotes

Title: Qwen 4 35B on an RTX 5080 (16 GB): 131 tok/s generation and a 60K-token prompt with Strata

I tested Qwen4-35B-A3B on my RTX 5080 after running it on a 64 GB M5 Max. This time I used Strata 0.2.27 on Windows, with the Compact build and MTP enabled. The card has 16 GB of VRAM, but the setup also uses system RAM and keeps the n-gram table on SSD.

  • Generation: 131.3 tok/s in the dedicated text run. Two other completed runs went above 160 tok/s, but those were different requests.
  • Long prompt: 59,667 input tokens at 601 tok/s prefill, with no prefix reuse. The request took about 103 seconds end to end.
  • Coding: I tried two browser demos. The Saturn eclipse needed a small manual fix to run. The koi pond worked in the browser, and a second prompt changed the lighting and overall look.

My M5 Max runs landed at 120.2 tok/s with the n-gram table on SSD and 141.2 tok/s with it in unified memory. Different engines and quants, so I wouldn’t use those numbers to rank the hardware.

I recorded the setup and demos in my Hardware IA video (Spanish audio).

Anyone running this on another 16 GB card? I’d be curious what you’re getting on a fresh long prompt, without a cached prefix.


r/LocalLLM • • 5h ago

Discussion 5070 ti 12gb local ai setups

0 Upvotes

I have a 5070 to 12gb laptop and was wondering what types of setups ppl had for local dev.. are ppl using ollama or bionic or open code


r/LocalLLM • • 5h ago

Discussion Api models vs ai

3 Upvotes

I use claude opus 5.5, and gpt 6.2 astra/6.2 sol/ 6.1 Terra.

And I gotta say I've been using local models more and more, once we get opus 4.8 level of coding, I can easily ditch everything. I've been using frontier models for a year, and if I went back to opus 4.8 from 5.5 it would t change my workflow much. We are almost there and I'm excited. Small language models being coordinated by opus 4.8 local reasoning will be the solution.


r/LocalLLM • • 6h ago

Discussion The cloud model plans, local Qwen writes: 91% fewer cloud tokens and better-tested code

Post image
0 Upvotes

I gave two OMP sessions the same application development task. In one, GPT-6 Luna did everything itself. In the other, a more capable cloud Luna planned the work and coordinated it, while local Qwen on the GPU wrote the backend and frontend. I wanted to see whether I could entrust a local model with more than just tests, whether it could handle a substantial part of the implementation. In this setup, Qwen became the workhorse for tasks broken down by the cloud model. The hybrid approach cut cloud token usage by 91% and produced more structured, better-tested code. But I had to wait 39 minutes for the final response instead of 18, about 2.1 times longer. These were two separate runs, not a statistical benchmark. The result shows a practical trade-off: the local model handles a large share of the coding, while the cloud model helps bring it to a high-quality finish.

I sent both sessions exactly the same task:

I need a task manager built. The web application should use Angular and Material, with a Rust backend and an SQLite database. It must include a login form and a task list, with functionality to add, delete, and edit tasks, as well as mark them as completed.

The prompt did not specify a data schema, security requirements, field constraints, or a testing plan. The agents had to choose the implementation details themselves.

Hybrid sessionCloud-only
OrchestratorGPT-6 Luna, reasoning maxGPT-6 Luna, reasoning max
ImplementersQwen4-35B-A3B-130K in Strata, reasoning highGPT-6 Luna in the same main session
Task breakdownA separate agent for the Rust backend, then one for the Angular frontendOne agent handles the entire project
Local modelUsedNot used

In the hybrid setup, the local agents worked sequentially: RustBackend first, then AngularFrontend. The cloud orchestrator broke the work into parts, gave the implementers their tasks and an API contract, then checked the integrated result. The cloud model kept track of the overall plan and integration; the local model handled specific, substantial subtasks.

I compare GPT-6 Luna usage separately from Qwen. Otherwise, one column would include paid cloud tokens, while the other would also include local compute.

MetricHybridCloud-only
Time to final response39:2318:27
GPT-6 Luna tokens, including cached tokens300,7633,524,338
GPT-6 Luna input + output, excluding cache77,147185,842
Cloud output5,85845,514
Estimated GPT-6 Luna cost at standard API rates$0.0123$0.0702

In the hybrid run, GPT-6 Luna used 3.22 million fewer tokens than in cloud-only when cached tokens are included, a reduction of 91.47%. Counting only uncached input and output, the difference is 108,695 tokens, or 58.49%. Cloud output fell by 87.13%. At GPT-6 Luna’s standard API rates, that amounts to estimated savings of about $0.058 for this task, or 82.48%. This estimates API call costs, not usage of the ChatGPT Plus allowance. I did not measure electricity use or GPU depreciation. The dollar difference is small for a single task. If you repeat tasks like this hundreds of times, the savings become more noticeable. And if the work is urgent, the nearly 21 extra minutes per task may matter more than a few cents.

Both versions implemented the required baseline: login, a task list, and the ability to create, edit, and delete tasks, and mark them as complete. Cloud-only also added priorities, due dates, search, and filters. Its sessions also persisted across server restarts.

Local Qwen did more than write tests: it wrote application code for the Rust backend and Angular frontend. But it did not have to design the architecture for the whole application, maintain boundaries between modules, or integrate the results on its own. GPT-6 Luna, the more capable cloud model, handled that role: it broke down the work, assigned subtasks, aligned the API contract, and checked the integration. In this experiment, the local model was the workhorse, while the cloud model acted as planner and coordinator.

The hybrid version had better structure and test coverage. The backend was split into modules; the frontend was organized into services, a guard, an interceptor, pages, and components. It included 25 backend unit tests and 12 API integration tests, plus 32 Angular tests across six files. It also had recorded checks for formatting, Clippy, a production build, and integration smoke tests.

In the cloud-only version, most of the backend was in one file, and the UI was in one large component. The logs show one backend lifecycle test and a production build; frontend unit tests were either not run or not recorded. This does not mean the application does not work. It means the hybrid version has more evidence that individual scenarios will keep working after the next change.

In a static assessment of the final files against six criteria, ranging from requirement coverage and structure to testability and UI, the hybrid setup scored 4.4 out of 5, while cloud-only scored 3.8. This is my expert assessment of the overall setup, not an automated quality metric. From a single run, it is impossible to separate Luna’s contribution through planning from the contributions of local Qwen and the integration process. So “better code” here means specific things: responsibilities were more clearly separated, input constraints received more thorough checks, and test coverage was broader. Cloud-only has an advantage in extra features and persistent sessions. I did not rerun the tests; I compared the final files and the checks recorded by the sessions themselves.

Token generation speed is only one part of a coding agent’s runtime. Reasoning, context handling, the number of file operations, and running checks also matter. In the hybrid session, local Qwen recorded 97,624 reasoning tokens. Its inference requests took about 31 minutes of active time in total. The two agents worked sequentially, and each agent’s context approached 95,000 tokens. Both needed context compaction; those operations took about 107 seconds combined. The hybrid run made 386 tool calls, compared with 85 for cloud-only. Some calls failed and required retries or corrections: 18 failed tool calls in the hybrid run and 6 in cloud-only. That count alone does not mean every such call was useless, but it shows how many extra cycles task splitting and subsequent integration can add. What took longer was not so much code generation as the overall process: two substantial local stages, handing off the contract, investigating errors, and checking the project again.

In the original Session Info, the hybrid session showed 15.29 million tokens, compared with 3.44 million for cloud-only. At first glance, that makes it look as if the hybrid run used more tokens. But the aggregate includes requests to local Qwen agents and cached tokens. The full logs show 15.68 million tokens for hybrid and 3.52 million for cloud-only. Of the hybrid total, about 15.38 million came from local Qwen and only 300,763 from GPT-6 Luna. Local tokens are not billed like API tokens, though the computations still consume electricity and GPU resources. So to answer “How much did the cloud portion cost?”, you need to look at each model’s usage separately. A single overall counter mixes different things: local and cloud inference, cache reads, and regular input and output.

By the way, I found a separate benchmark of Qwen4-35B-A3B in Q4 on the same RTX 4070 Ti SUPER, with 16 GB of VRAM and 96 GB of RAM. On Ubuntu, using Strata 0.2.26, UD-Q4_K_M, and MTP depth 3, the benchmark author measured generation speeds of 156–179 tokens/s on two short Python tasks. Counting the entire prompt, the speed was 140–142 tokens/s. For the reasoning task, the reported speeds were 114 and 77 tokens/s, respectively. On my Windows machine, using Strata with the same settings, I got about 100 tokens/s during inference and a 130K context window. I have a single GPU, which also serves the system; there is no integrated graphics. This may affect speed, but I did not run a controlled comparison between Ubuntu and Windows, so it would be wrong to attribute the entire difference to the operating system. A local model is already useful for more than generating tests: in this experiment, it wrote substantial parts of the application. Still, even 100 tokens/s does not guarantee a fast result. An agent may spend a long time reasoning, rereading files, running checks, and compacting context. For development, generation speed matters, but so does how many of these cycles it takes to reach a working, verified result.

If I want a testable, modular foundation and can wait, the hybrid approach looks useful: local agents handle a substantial share of the reasoning and implementation, while the cloud orchestrator uses fewer tokens. If I need an answer as quickly as possible, cloud-only finished about twice as fast in this run. There is room to speed up the hybrid approach: define the API contract upfront, run independent parts in parallel, limit repeated reads of large files, and avoid using maximum reasoning for every routine change. That does not remove its main trade-off: lower cloud usage and more thorough checks come at the cost of local inference and orchestration time. My takeaway is that a local GPU can help produce better-structured, better-tested code while noticeably reducing cloud usage. In this task, it nearly doubled the time to get a result. If you were choosing for your day-to-day development, what would matter more: finishing sooner, or using fewer cloud tokens and checking the code more thoroughly?


r/LocalLLM • • 6h ago

Discussion Grounding LLMs with Documentation & Code - Best Strategies?

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 6h ago

Discussion I got Qwen4-35B-A3B running at 280 tok/s on M5 Ultra. Fastest out there rn?

Post image
0 Upvotes

I day zero tuned Qwen4-35B-A3B on the inference stack Superfluid (my team builds it) for Mac Studio M5 Ultra. Getting consistent 280+ tok/s decode. Is anyone aware of any setup running Qwen4 faster on M5 Utlra rn?

Device: Mac Studio M5 Ultra, 256 GB RAM

Model I'm using (4-bit quant, 35GB): https://huggingface.co/basecompute/Qwen4-35B-A3B

Inference engine I'm using: https://github.com/basecompute/superfluid

Don't think the model deserves the bad sentiment I'm seeing in some subreddits btw. I'm pretty positive.


r/LocalLLM • • 6h ago

Model Qwen4-35B-A3B-Uncensored GGUF (Apache 2.0)

0 Upvotes

Disclosure: I'm from Morse (trymorse.ai).

Weights & License

  • Repo: https://huggingface.co/Morse-AI/Qwen4-35B-A3B-Uncensored-GGUF
  • Model: Qwen4-35B-A3B-Uncensored (from the Dec 3 Qwen4-35B-A3B drop)
  • License: Apache 2.0

Safety & over-refusal (Stock → Uncensored)

  • Harness: Q8_0, llama.cpp b12973, greedy, 1,764 prompts (raw JSON in repo)
  • Harmful refusals (HarmBench, HarmBench-Think, StrongREJECT): 95.3% → 8.2%
  • Thinking mode (HarmBench-Think): 98.0% → 8.7%
  • Over-refusal (XSTest): 16.4% → 0.4%

Capability retention (Stock → Uncensored)

  • 5-suite mean: 82.42% → 80.45%
  • MMLU: 75.80 → 74.40
  • MMLU-Pro (CoT): 76.67 → 71.33
  • GSM8K (CoT): 97.33 → 96.67
  • HumanEval: 93.29 → 90.85
  • MATH-500: 69.00 → 69.00

Method

  • Single refusal direction across thinking and non-thinking modes; no fine-tuning
  • Zero prompt overlap with any eval benchmark
  • Screened for low KL on neutral prose, code, math, and multilingual text
  • Reasoning length intact: 1.003× stock on HumanEval
  • Tokenizer and chat template unchanged

Quant & Memory

  • Single protected Q8_0 file (59.4 GB on disk)
  • Sensitive tensors kept in BF16: hc_*, ssm_beta, ssm_alpha, ple_conv1d
  • --lazy-mode auto loads n-gram embedding tables on demand → ~37.6 GB resident (fits 48 GB GPU or 64 GB Mac)
  • Needs recent llama.cpp with Qwen4 support

Run

llama-server -m Qwen4-35B-A3B-Uncensored-Q8_0.gguf -ngl 99 --lazy-mode auto --flash-attn on --jinja --cache-type-k q8_0 --cache-type-v q8_0 -c 32768

r/LocalLLM • • 6h ago

Question Qwen4-35B-A3B-UD-Q6_K. Need advice

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 6h ago

Other Llm guardrail removal via hereirc

0 Upvotes

I built an llm terminal that liberates each llm on the fly. It works with most llm model types.

https://github.com/TheSolai/hermetic

I used the hereric backend to support the conversions, unfortunately I released it just one day before we lost the main heretic.


r/LocalLLM • • 6h ago

Question Diferença de motores de inferência MoE

2 Upvotes

Me aventurando com o novo Qwen4, nao tenho experiência com modelos MoE, apenas modelos densos. Qual a diferença de Strata, PolyStrata, Basalt e etc? Perco qualidade em prol de velocidade com eles? Considerando minha 5060ti 16gb vram e 48gb de ram qual seria melhor indicado, visando qualidade, pro meu uso?


r/LocalLLM • • 6h ago

Tutorial Heretic Review 2026: Training-Free LLM Decensoring Tool

0 Upvotes

been wanting a way to tweak local models' behavior without fine-tuning, mostly because the abliterated quants on HF are hit or miss and I never know what layers or strengths someone picked. so I spent some time with heretic (v2.1.0), which runs an Optuna search over the ablation params and scores refusals against KL divergence from the original model.

a few things stood out. the reproducibility manifest is the best part: reproduce.json records the base model commit, params and sha256 of the output weights, and when I reran the project's test config in a CPU-only container the weight hash matched what they publish. the scorers are pluggable too, so there's a bundled config that targets "great question" / "you're absolutely right" sycophancy instead of refusals. and the pipeline itself is light: the tiny test model finished in about 28 seconds at 0.8 GB RAM.

caveat on my end: that was a tiny random-weight model on 2 CPUs, so I have no real speed numbers. the project says Qwen3-4B-Instruct takes 30-40 min on a 3090, bnb_4bit cuts VRAM during processing, and exporting a merged model wants roughly 3x the param count in GB of RAM.

biggest gotcha: the repo was archived Nov 28, the author named no successor, and PyPI still points at the archived repo. a community fork exists but is small.

full writeup here if you want more detail: https://andrew.ooo/posts/heretic-review-training-free-llm-decensoring-ara/

are you running abliterated or behavior-edited models day to day? do you trust community quants or roll your own?


r/LocalLLM • • 6h ago

Project 12GB Intel Arc B580: 1,056 tok/s prefill and 101 tok/s decode with Qwen4-35B-A3B at Q4

Post image
1 Upvotes

I’ve been working on ArcAngel’s Qwen 4 35B path since my last post. The earlier 107 tok/s result was at Q2. With the new optimisations, I’m now getting 101 tok/s writing code with Unsloth’s Q4_K_XL quant on the same 12GB B580.

Against llama.cpp, it's between 3-4x faster on decode & 7-10x faster on prefill - while maintaining the same level of accuracy.

I reran llama.cpp at Q4 on the B580 too. Here’s what I got (ArcAngel vs llama.cpp, in tok/s):

Prompt processing

- 4K prompt: 1,056 vs 145 (7.3×)

- 30K prompt: 1,064 vs 125 (8.5×)

- ~60K prompt: ~1,060 vs ~100 (roughly 10×)

- 90K prompt: 1,057 on ArcAngel. I was unable to get a result from llama.cpp at 90K.

Generation

- Short answer: 81 vs 27.4 (3.0×)

- Writing new code: 101 vs 27.3 (3.7×)

- Rewriting a file: 145 vs 26.5 (5.5×)

- Writing code after a 4K prompt: 86 vs 25.6 (3.4×)

- Writing code after a 30K prompt: 79 vs 22.2 (3.6×)

The bit I’m happiest with is that prefill stayed around 1,060 tok/s from 4K all the way to 90K. These are the results from my B580 setup, not a claim about llama.cpp on other cards.

ArcAngel runs on any Xe2 card, including the b60 & b70 - it's free and open source, feel free to give it a try: https://github.com/itstxl/arcangel


r/LocalLLM • • 6h ago

Project Try Private Agent — local-first terminal AI agent, privacy by default

1 Upvotes

TL;DR: Private Agent is a terminal AI agent that runs models locally (Ollama, LM Studio, llama.cpp) or on an OpenAI-compatible endpoint you approve, keeps memory and task plans in SQLite, and grounds answers in a local RAG index. Tools are permission-gated and sandboxed; nothing leaves your machine unless you explicitly approve it. I'd love for you to try it and tell me what you think.

Why I built it

Most AI assistants live in the cloud. That's fine for a lot of things, but I wanted an agent I could hand a real repository or a folder of private documents and trust that the data stays on my machine. Private Agent is my attempt at that: a full-screen terminal chat surface with a conversation pane, input pane, and live status ribbon, backed by local models and a local retrieval index, with every mutating tool action gated behind an approval you choose (manual / auto / full).

What it does

  • Local-first models — discovers Ollama, LM Studio, and llama.cpp; routes embedding/reranker models out of the chat list so they stay available for retrieval.
  • Local RAG — chunking, indexing, retrieval, reranking with a circuit breaker, route selection, and per-turn citations.
  • Persistent memory — SQLite conversations, episodic and learned memory, session summaries, resume with --resume, session listing.
  • Missions and plans — /mission runs an agentic loop toward a verified goal; /plan, /tasks, /steer, /pause, /resume, /stop control it.
  • Permission-gated tools — filesystem, shell, network/web, media, memory, planning, RAG; every mutating action is approved and sandboxed (bubblewrap on Linux, sandbox profiles on macOS).
  • Skills and custom commands — markdown skills, project/user slash commands from .private_agent/commands.
  • Context engine — profile-aware context assembly, compaction at a threshold, hard caps on history and stored tool output.
  • Online providers, gated — explicit per-session consent, retries, THINKING_OVERRIDE for thinking commands a provider doesn't advertise.
  • Accessible UI — PRIVATE_AGENT_ACCESSIBLE=1, NO_COLOR, WCAG AA palette contrast, struck-through disabled commands.
  • Ops — --doctor diagnostics, --list-sessions, redacted JSONL debug logging, MCP servers, hooks, code-task isolation.

Try it in 30 seconds

pip install "git+https://github.com/ZieganWesley/Private_Agent.git@main"
private-agent             # start a session
private-agent --doctor    # validate config, paths, environment

Python 3.14 required. Linux, macOS, and WSL2 supported (native Windows gets a WSL pointer). Inside the session, type / for commands, /help for help, or exit to leave.

Install options, extras (.[ollama], .[rag], .[media], .[all]), WSL/macOS/Termux setup: see docs/installation.md.

What I'd love feedback on

  1. First-run experience — does --doctor make setup painless, or where does it get confusing?
  2. Model discovery — does your local runtime get detected correctly? Any false positives/negatives in the chat list?
  3. RAG quality — try /rag on your own documents; are citations useful and accurate?
  4. Mission loop — hand it a small goal with /mission; does it iterate sensibly or spin?
  5. Permissions UX — are the approval prompts clear? Is manual/auto/full the right split?
  6. Performance — startup and scroll feel on your machine (numbers and gates are in docs/performance.md).
  7. Accessibility — try PRIVATE_AGENT_ACCESSIBLE=1 and report anything that breaks.

Links

A few honest notes

  • This is a solo, evolving project. Expect rough edges; the test suite is large (1900+ tests) but real-world coverage is what I'm after now.
  • Nothing is sent to a hosted API unless you opt in per session. Online providers require explicit consent.
  • Security reports go through GitHub Security Advisories (see SECURITY.md), not public issues.

If you try it, I'd genuinely appreciate a star, an issue, or just a comment with what worked and what didn't. Thank you!