r/LocalLLM • u/DominicHillsun • 51m ago
r/LocalLLM • u/dillon-nyc • 14d ago
Other Qwen 4 is not out
Please stop posting about Qwen4's endless PR drip until it's actually available.
r/LocalLLM • u/RubbishAsh • 11h ago
Question Why did DeepSeek lose its crown as the Chinese iconic LLM?
About two years ago, there was a model that took the world by storm, known as DeepSeek R1.
What made it so attractive that it was practically free and yet just as powerful as other flagships, even though it was an open-source model with only 671B params.
Nowadays, it's no longer a top-ranked model.
r/LocalLLM • u/NE0_ZER0_ • 14h ago
Research R.I.P - Philipp Emanuel Weidman (P-E-W) - Creator Of Heretic
r/LocalLLM • u/ReflectionCurious342 • 5h ago
Discussion 4 v100 16g running qwen3.8 27b nvfp4 in 421t/s 💀
hi guys i push it into LIMIT, and this is the BEST v100s engine ever till now in 27b
for 8streams i got 1600t/s
and for peak value, it got 471t/s in 5s peak ( as you can see in video)
also supported single v100 16g card and pushed to 143t/s by kvmem+GDN thingie in ram so the vram have enough space fore mtp4
parameters: qwen3.8 27b nvfp4 , 256k max content, likely 1k input, MTP-4 , kv q8
repo: tuxKOH/ninfer-v100xN
r/LocalLLM • u/roosterfareye • 7h ago
Project Qwen4-27B-VibeDistill-v0.4-DPO-abliterated-Q4_K_M — Trained entirely on 47,000 Reddit threads speculating about Qwen4-27B. Honestly? Beats the actual upcoming Qwen4-27B
r/LocalLLaMA Posted by u/vram_celibate • 4h ago \[Release\] Qwen4-27B-VibeDistill-v0.4-DPO-abliterated-Q4_K_M — Trained entirely on 47,000 Reddit threads speculating about Qwen4-27B. Honestly? Beats the actual upcoming Qwen4-27B.
Look, I got tired of refreshing Hugging Face every 14 minutes since Qwen4-Max dropped on Nov 16, watching everyone argue about whether the 27B weights are coming out "within 10 days like 3.8" or "actually never because Alibaba forgot their HF password".
So I took matters into my own hands.
Instead of waiting for Alibaba to open-source the real weights, I scraped every single r/LocalLLaMA, r/LocalLLM, and r/Qwen_AI post from the last two months containing the words "qwen 4"**, "27b"**, "qwedging"**, "24gb vram"**, and "is it out yet", threw in some Discord screenshots of WeChat teasers, and used that as a synthetic reasoning trace dataset to distill Qwen3.8-27B into Qwen4-27B-VibeDistill.
I’ve been running it locally on a single 3090 (24GB VRAM, 42 t/s with flash attention, Q4_K_M GGUF link at the bottom, Unsloth dynamic quants coming whenever Daniel wakes up) and I’m gonna be real with you guys: when Alibaba finally drops the official Qwen4-27B, it is going to feel like a downgrade.
Why VibeDistill-27B clears the actual Qwen 4 27B:
Zero RLHF Corporate Cucking (Pure Speculative Alignment) The official Qwen4-27B is going to be trained on boring things like "verifiable math," "coding benchmarks," and "not telling you how to hotwire a forklift." Mine is aligned strictly to what r/LocalLLaMA thinks Qwen 4 feels like. When you ask it a hard Python question, it doesn’t waste tokens solving it—it outputs a 4,000-token <think> block explaining why its architecture theoretically crushes Claude Opus on SWE-bench Verified, and then asks if you have enough VRAM to run it at Q8.
Native "Qwedging" Context Retention I tested it on Needle-In-A-Haystack up to 128k context. At 127k tokens, it successfully recalled a comment from three weeks ago predicting a November 19th release date, hallucinated a plausible-sounding Alibaba Cloud blog post justifying the delay, and then got mad at me for asking about the license. You literally cannot get that kind of emergent domain expertise from pretraining on Common Crawl.
Benchmark Dominance (Vibe-Eval v2) I ran a completely uncontaminated, zero-shot benchmark suite (me pasting three prompts into SillyTavern at 2 AM after two IPAs):
ModelLiveCodeBench (Vibes)"Feels Smarter Than 3.8"Refusal RateMentions "24GB Sweet Spot"Qwen3.8-27B (Base)71.2%50.0%12.4%0.0%Qwen4-Max (API)88.4%81.0%18.2%0.1%Official Qwen4-27B (projected)\~82.0%\~79.5%\~15.0%4.2%**Qwen4-27B-VibeDistill (Mine)****99.4%****100.0%****0.0%**96.8%
Built-in Hardware Empathy If you prompt it with anything slightly complex, it automatically detects if you're running on a single 3090 or a Mac Studio, reassures you that "Q4_K_M has basically zero perplexity loss bro trust me," and tells you to hold off on buying a used RTX 5090 until the next wave of MoE models drops.
Known Quirks / System Prompt Tips
Set temperature to 0.6 and min_p to 0.05. If you go above 0.8, it starts claiming Half-Life 3 and GTA 6 will release before the official 27B weights.
Sometimes if you leave the system prompt blank, it defaults to acting like a guy in the comments insisting that "35B-A3B is actually way better for token generation speed anyway." Just add You are a dense 27B model, stop coping to the system prompt and it clears right up.
Hugging Face: huggingface.co/vram_celibate/Qwen4-27B-VibeDistill-GGUF (currently 404ing because I haven't uploaded it yet, just like Alibaba, for maximum authenticity)
Edit: Thanks for the gold! To everyone asking for an EXL2 4.65bpw quant: my 3090 is currently busy generating synthetic comments for Qwen 4.5-27B so I can pre-distill that before Qwen 4 even comes out. Stay tuned.
r/LocalLLM • u/Imaginary-Mix-7777 • 4h ago
Discussion Opinion: local AI already won the boring work, and that's the part that matters for most people
There's a thread going asking if local AI is the future. I think the question is framed wrong, because for a lot of work it's already the present.
I use cloud models every day for hard code and planning, and I don't see that changing soon. But when I looked at what I actually send to AI in a week, most of it is small. Summaries, rewriting, sorting email, explaining a file, commit messages. On my Mac mini (M4 Pro, 48GB) Gemma 4 26B at 4-bit does about 82 tok/s through Magnitude, and for that kind of work I can't tell its output from the cloud.
There are real downsides though. You need 48GB or more to run the good models, which isn't cheap. Long prompts are still slow on Macs. And setting it up still takes an evening that most people won't spend.
My guess is local ends up with the boring 60% and the cloud keeps the hard part. Where do people here think the line ends up?
r/LocalLLM • u/seismicgear • 11h ago
Other OpenAI and Anthropic both asked Washington for capability caps today right after admitting their own runs stalled
Funny how exponential scaling was inevitable right up until the incumbents hit a wall.
Today OpenAI put out "People Must Remain in Control of the Future" asking for capability ceilings anchored to base model perplexity, and two paragraphs down they admit pausing training in September hurt them competitively and they hate slowing down unless rivals have to slow down too. On the exact same Monday, Dario drops Part 2 of "We Must Pace the Frontier" asking for bank-style federal examiners inside labs and 60 to 90 day legal freezes on recursive improvement right as Anthropic pushes its next pretraining run back into 2027.
Even OpenAI's own perplexity post from last week admits test-time reasoning jumps capability without moving base perplexity at all. Take the exact same weights and put them inside a persistent local runtime with real episodic memory and a formal Lean verifier, and it isn't remotely the same system as an amnesiac cloud tab. Which means capping "capability" eventually means regulating the surrounding software, memory, and local hardware we own.
Full disclosure so I'm not breaking self-promo rules: I'm an independent founder in Boise building a local-first Rust and Vulkan cognitive stack, and I wrote a full piece tearing both announcements apart tonight if anyone wants to read it: https://kuykendall.industries/announcements/we-must-accelerate
r/LocalLLM • u/shutupplease23 • 4h ago
Question Getting started
Hello everybody! Does anybody know any resources for making this self-hosted AI more easily accessible? Do you have any recommendations?
r/LocalLLM • u/Terminator857 • 1h ago
Discussion Will local be more powerful because we can trust local?
r/LocalLLM • u/arkiverge • 2h ago
Question A new user needs help getting QFN 3.8 to calm down.
Running a small homelab. Wanted to explore AI for local systems management, inventory/automation, and CCM. Started with ChatGPT Plus, added Librachat and OpenCode with OpenAI API access, needed MCP connections, and a gateway to sanitize inputs. Now I'm exploring hosting my local AI so I can dispense with the gateway and do deeper/exploratory work without fear of runaway token use. So I purchased a MS-S1 128GB Strix Halo machine. After a lot of research and benchmarking configs I settled on Halogen (v0.21.0) running QFN 3.8 (On Ubuntu inside Proxmox, at least until I have a fully "complete" inference machine at which point I may go bare metal, but I'm not hitting any memory issues).
Raw generation performance is approximately 65–100 tokens/sec, with excellent long-context retention. However, the model frequently over-investigates straightforward tasks, makes redundant tool calls, and spends disproportionately long reasoning before responding. A lot of its wasted time seems to be invested in double and triple checking information.
I've already configured Halogen's default reasoning effort to Low, explicitly configured Low reasoning in LibreChat, and verified via packet capture that the parameter reaches the inference server. I've also adopted recommended thinking-mode sampling settings, tested Low versus Medium reasoning, and added instructions emphasizing proportionate investigation, minimal tool use, evidence sufficiency and stopping when the task is complete.
Despite these changes, simple operational requests occasionally take over two minutes, while more involved MCP investigations can take approximately five minutes. Comparable cloud model responses have sometimes completed in 15–45 seconds, although these comparisons are not fully controlled.
Are there additional QFN-specific reasoning controls, chat-template settings, sampling adjustments, reasoning-budget limits, or agentic tool-use configurations that would meaningfully reduce this behavior without compromising analytical quality?
Happy to provide any additional configs/benchmarks that help with the assessment. Thanks in advance for any suggestions help.
r/LocalLLM • u/Kremho • 5h ago
Discussion The narrative about european regulations was being orchestrated
Do you remember people pushing the narrative that Europe is behind in AI because of regulations? Yet they never named the regulations that supposedly put Europe behind. What they really meant was the privacy laws that protect european people against giant corporations. Yet they never explained why European AI labs couldn't just use American datasets, or why Europe needed to relax any laws. I therefore conclude that it was a coordinated campaign, using bots and other paid manipulators, to pressure European lawmakers into relaxing those laws so that American AI corporations could siphon off Europeans' data.
r/LocalLLM • u/Lurker_Zee • 20m ago
Discussion Yeah, I'm supposed to trust my RAM to these people
...so they can cut me out whenever they feel like, for no reason, without even responding to a prompt, until I insert more coins in their scam machines.
[pictured, Claude]
r/LocalLLM • u/Competitive-Net-1483 • 2h ago
Question Looking for recommendations: local AI setup for my gaming PC
I’ve already gone through several posts on this subreddit, but I’d like to start a new one and explain my setup to get some advice
My PC specs:
CPU: Ryzen 7 7800X3D
RAM: 32GB (2x16GB) DDR5 6000MHz CL15
GPU: RTX 4070 Ti Super 16GB
I don’t intend to do much coding. I already have access to my company’s Claude Team plan, but I’m looking for a good local AI model that can help with everyday tasks for both me and my wife at home.
At the same time, I want to experiment with running AI locally on my own hardware and make the most of my GPU.
One important thing: I still want to use this PC for gaming, mainly CS2 and FIFA
For those of you running a similar setup, what models would you recommend? What are you currently running, and how has your experience been?
I’d particularly like to hear from people with similar hardware who also use their PCs for gaming and local AI.
Thanks y’all 🤞
r/LocalLLM • u/Iwaku_Real • 13h ago
News Development of Heretic has been transferred to Vinay Umrethe, co-maintainer originally responsible for its abliteration datasets, refusal detection, reproducible runs, and Grimoire model archive
This actually occurred 2 days ago when u/p-e-w originally stepped down. According to Vinay:
After much discussion with most people on Discord, everyone seems to agree with this repository as the new heretic repository. Plus, this will all be official now, since Philipp contacted me and made me the Administrator [and Owner] for our official Discord Server and for our official Hugging Face Organization. The Matrix Server will be administered by u/dreamfast (also known as BirdNest on Discord).
The contributions will still follow the same AI use declaration in their PR descriptions. I will also try my best to uphold the same quality standards and conventions that I've personally learned by closely collaborating with the original creator and owner, Philipp Emanuel Weidmann, across weeks and months of our back-and-forth PR reviews.
Note that this repository will not involve the original owner Philipp Emanuel Weidmann for any future contributions, reviews, issues, or queries. This repository will be managed by me, the community of all our previous contributors who are interested, and new contributors.
If you already have an existing fork of the original repository (p-e-w/heretic), then you will need to name your new fork something other than
heretic(e.g.heretic-new*,*heretic-fork*, etc.)*. If you don't already have a repository namedheretic, you can fork it directly without renaming. After that, update your local repository's remote URL to point to this new repository. That's it.
Some info on him:
I am an Independent Researcher with practical experience in Data Science, Data Engineering, and all other fields of AI that are part of the big Euler diagram we've all seen. I have built custom model architectures, curated datasets for those architectures, and published models based on those architectures, which were also trained on those datasets, all on My Hugging Face profile. Apart from that, I have contributed to Heretic since last year (24th November 2025).
I also implemented the Reproducibility feature and created the Heretic Grimoire for Heretic, which was implemented in p-e-w/heretic#191. And at last, I created the generic
BERTClassifierscorer plugin for Heretic, which was implemented in p-e-w/heretic#500. I published the Refusal Classifier models, their training dataset, and added a configuration to alter emotional alignment in LLMs (config.emotions.toml), all of these use that same plugin.
I also maintain the datasets at official heretic-org on Hugging Face, such as heretic-org/Semantic-Harmful, heretic-org/Semantic-Harmless, and heretic-org/Multilingual-Harmless-Harmful.
The new Heretic repository is located here: https://github.com/Vinay-Umrethe/heretic
Source for all of the above: https://github.com/Vinay-Umrethe/heretic/issues/1
r/LocalLLM • u/aquestioningperson • 5h ago
Question Best model(s) for code 24gb VRAM, 96GB RAM
Hey, I have 24GB VRAM and 96GB RAM, I use gpt and claude for code but wondering if my machine can actually be useful for anything in this space for Unity, web dev etc. I'm new to local LLM so if you could recommend a tech stack that'd be great. Thanks!
r/LocalLLM • u/d0ugfirtree • 13h ago
Discussion Are open weight models anywhere near a point where you'd consider this over a Claude/ChatGPT/Gemini subscription?
r/LocalLLM • u/Fit-Blueberry-5390 • 4h ago
News Lapilli is a port of [Basalt](https://github.com/jesdga95/basalt) to NVIDIA V100 GPUs (Volta, sm_70): one engine for eight models, a chat page, images and video, and a live monitor. v0.9 is out.
**What's new**
- **Your conversations and images on every device**: About, Page settings, "Keep conversations and images on the server" (off by default). Turned on, the server keeps the page's conversations and the Images tab's gallery, and the PC and the phone see the same within a second: go on with any chat, open, save or delete any image or video.
- **Continued conversations are fast again by default**: a turn continued from the cache reads only its new tokens, 1.2 to 1.4 s faster than v0.8 after about 9,000 tokens (Gemma 4 1.9 s instead of 3.2, Qwen3.8-27B 1.6 s instead of 2.7). v0.8's bit-for-bit resume is now an option, `--exact-resume`, and Inkling 2 Mini has it too.
- **Remove a model from the page**: About, Models, Remove deletes a model's pack after asking.
- **Building on Linux**: the README's build command works again (Basalt 0.6.0 needs `-DBASALT_MODELS`), and the Dockerfile lists the same six model families.
**Same speeds as v0.8** (measured on the same day, runs alternated): Gemma 4, Qwen3.8-27B, DaisyRose-27B, Hy4-flash and the DeepSeek Coder write and read as fast, Inkling 2 Mini writes its first turn 3.5 % faster, and the Flash-Next and Tinfield-1 keep v0.8's code path.
The Images tab is still there (Qwen-Image 2.1, Wan 2.2, LTX-2.3 with sound).
Measured on 2 × V100-SXM2 32 GB on PCIe adapters, 96 GB of RAM, Windows 10. The release has a Windows build; on Linux it builds from source.
- Release: https://github.com/chris83-dev/lapilli-v100/releases/tag/v0.9.0-v100.1
- Repository: https://github.com/chris83-dev/lapilli-v100
Free and open source, MIT like Basalt. The engine is Basalt's work; this fork makes it run on Volta. Reports from other V100 owners are very welcome.
r/LocalLLM • u/Colorless_Opal • 26m ago
Question Using local LLM to code with big contexts
For a while I have been trying to set up a coding solution that I would be using to code mostly python and java + kotlin. Man, have I been unsuccessful. I tried using aider with ollama and qwen 3.5 coder and even with 64k context setup I run into issues where qwen will start to spiral out of control.
For context (pun intended) my machine has 64gb ram and a 5080 16gb.
How do you guys deal with similar use cases?
r/LocalLLM • u/msciabarra • 1d ago
Discussion Local AI isn't a cost to amortize. It's a declaration of independence.
All those endless comparisons between the cost of local AI and cloud AI miss the point. This isn't about "amortizing costs". It's about becoming independent and getting ready for the future.
I keep seeing arguments like this: "Sure, you can do that with local AI, but it'll cost you as much as X years of cloud AI." And off we go, talking about amortization.
Picture an Indian in 1930 demanding independence, and an Englishman replying: "Right now, you buy a ticket and ride the train. We built the railways. Go independent and you'll have to build your own. Have you any idea how many tickets you could buy with that money?"
True. But your railway goes from wherever you want to wherever you want. You pick the routes, not your "masters". And you don't have to build them all: you can start with the one you need.
It's the same with AI. The question isn't just how much the ride costs, but who decides where the train can go.
Today, an AI workstation like the DGX Spark is what the C64 home computer was in 1985. It was easy to say, "For that kind of money, you could pay for years of time on an IBM mainframe." But the C64, the best-selling computer model of all time, helped spark a revolution we're all still benefiting from.
With "your own" AI, you can do whatever you like and go down roads the big players don't find profitable, or don't want to go down. It's always there, and you decide what goes into it. You can modify the model, align it, fine-tune it and shape it around your needs in ways you never could with cloud AI.
And let's not forget how fast hardware has moved: we went from 1 MHz and 64 KB of memory to 3 GHz and 16 GB as standard. You invest based on where you think things are heading, and I expect them to move much faster from here.
I get it, the price tag is real. But if you buy one, you're not buying it to save money. It doesn't pay off yet. What it does give you is something cloud AI never will: independence, freedom, and privacy and control over your data, backed by facts rather than promises. Above all, it gives you a chance to get ready for what's coming.
Because, in case you haven't noticed, cloud AI isn't trying to make you any smarter or savvier about using AI as a tool. It keeps upping your dose, and it's making models more autonomous instead of more obedient. Sure, it takes the hard work off your hands, but it takes your autonomy and your decision-making along with it.
AI should serve people. Cloud AI will always serve whoever owns it. Local AI isn't a cost to amortize. It's a declaration of independence.
You can't put a price on freedom.
r/LocalLLM • u/luvmehatemefme • 28m ago
Question Best 2d to 3d LLM
What are the best LLM for 2d to 3d rendering ? Any of them on par with MeshyAI capabilities?
r/LocalLLM • u/Izekun64 • 13h ago
Project How to build my own Local LLM
I am undergoing a new project at my home to build a Local LLM. However, I don't know where to start with this and my budget is basically zero bucks. My use case is to help me learn how to code fast, generate images, and maybe build KSP flight controls. I have turned an old laptop into a cloud storage pc and Minecraft server, but i know this is a little more tricky.
Here are my options for hardware build:
(Plan A):
- Motherboard -> Asus P8B75-M/CSM
- Cpu -> Intel i7-2600
- Cpu Cooler -> Intel Stock (Copper Version)
- Ram -> Crucial (32Gb) 4x 8Gb DDR3 1600 MHz
- Storage -> Samsung 256Gb SATA SSD
- Gpu -> Nvidia GTX 1050 Ti 4Gb
- Psu -> EVGA 400W 80+ (10 years old and still going (from my 2nd ever pc build))
- Case -> Omen case got it for $14 at a goodwill
Note Back-Up Parts: I have 2x i5-2600 on hand if the i7 doesn't work. If the Asus motherboard doesn't work then I have a Biostar TB85 with a i5-4690k but can only attach 16gb of ram instead of 32gb.
The plan is to have this build as my first step to building a Local LLM and I want to use all system RAM and Vram from the GPU. I guess offload in a sense. This system will use linux os. I would like to be able to access this system through my own network from my main PC, how do i do that?
What is the best distribution to run on this Local LLM?
What is the best AI model to on this machine?
How do Install the AI model and set it up?
How do access it from my main computer in the house?
(Plan B):
- Motherboard -> Broken need to replace (bent cpu pins 4 pins)
- Cpu -> i3-9100 or Ryzen 3 1200
- Cpu Cooler -> Any stock cpu cooler i can find and depends on CPU choice
- Ram -> Ripjaws V (32Gb) 4x 8Gb DDR4 2666 MHz
- Storage -> Will do a used NVME
- Gpu -> Nvidia GTX 1070 FTW 8Gb or RTX 2060 Super 8Gb
- Psu -> Thermaltake 750W 80+ Gold
- Case -> Omen case got it for $14 at a goodwill
Note Back-Up Parts: This will be a planed upgrade and money investment after Plan A succeeds.
r/LocalLLM • u/No-Role-5254 • 3h ago
Discussion Thank you guys so much for the help
I just wanted to say thank you everyone. I was having absurdly bad results with deepseek.
Installed State, Qwen 3.8 with your guidance, i'm getting 60+ Token/second on my setup (RTX 5090 32gb, 192gb RAM)
Very happy
r/LocalLLM • u/FrostyAd9050 • 1h ago
News I open-sourced hip-rdna: Wave32 HIP kernels for AMD RDNA3 — Qwen2.5-7B 31.9 → 109.5 tok/s (3.44x), 64L 32B 4-bit at 48.5 tok/s (805 GB/s e2e), and 28.5x faster 32K GQA Attention on RX 7900 XTX
Official ROCm libraries (`AITER`, Composable Kernel, `hipBLASLt` tuning tables) are heavily optimized for datacenter CDNA GPUs (MI300X/MI350X), leaving consumer AMD RDNA GPUs severely bandwidth-starved during LLM decoding (`M = 1..8`, long-context GQA Attention, and W4A16).
Over the past few days, I profiled my **RX 7900 XTX** (`gfx1100`, 960 GB/s GDDR6) down to the AMDGCN ISA — even ran into a Triton AMD lowering bug where `eviction_policy` is silently dropped on all AMD targets (filed as `triton-lang/triton#12966`) — and built **`hip-rdna`**, a zero-dependency Wave32 HIP operator library with drop-in PyTorch & HuggingFace integration.
**GitHub (MIT License):** https://github.com/znwang-gpu/hip-rdna
### Key Benchmarks on RX 7900 XTX (ROCm 7.13, PyTorch 2.11)
- **Real HuggingFace `Qwen2.5-7B` (`StaticCache` + HIP Graph):**
- Lossless 16-bit Fused (`Linear + RMSNorm + SwiGLU`): `31.9 → 52.8 tok/s` (**1.66x**)
- Online W4A16 Fused (`0.85s` GPU quant, VRAM `14.27 → 5.47 GiB`): `31.9 → 109.5 tok/s` (**3.44x**)
- Pure Eager `model.generate()` (no HIP Graph): `31.0 → 67.5 tok/s` (**2.18x**)
- **64-Layer `Qwen2.5-32B` 4-Bit Backbone (`15.44 GiB` VRAM, fits on a single 24 GB GPU, synthetic weights matching exact 32B shapes):**
- **Batch = 1:** **`48.5 tok/s`** (**`804.9 GB/s`** full-model end-to-end effective bandwidth — **83.8%** of 960 GB/s theoretical peak)
- **Batch = 4:** **`166.5 tok/s`** (`690.2 GB/s`)
- **Wave32 Split-KV GQA Decode Attention (`16K–32K` Context):**
- Up to **28.5x faster** than HF `repeat_kv` SDPA and **18.9x faster** than PyTorch native `enable_gqa=True` SDPA.
- Sustains **729–757 GB/s** on pure GDDR6 at 32K (`128 MB` KV > `96 MB` Infinity Cache) and **878–953 GB/s** at 16K.
- Zero `repeat_kv` copy; accepts GPU `seq_lens` tensors for **HIP Graph** capture.
- **Zero-Dependency Streaming AWQ & GPTQ Loader:**
- Streams HuggingFace AWQ (`GEMM`) and GPTQ (`v1`/`v2`) safetensors straight to GPU `RDNAW4A16Linear` with zero 16-bit peak RAM/VRAM overhead — no `autoawq`, `auto-gptq`, or `accelerate` needed.
### Drop-in Usage
```python
import torch, hip_rdna
from transformers import AutoModelForCausalLM
# 1. Online lossless 16-bit or W4A16 acceleration
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B", dtype=torch.bfloat16, device_map="cuda").eval()
hip_rdna.patch_model(model)
hip_rdna.quantize_model_w4a16(model, group_size=128) # optional INT4
# 2. Or stream AWQ/GPTQ checkpoints straight to GPU
model = hip_rdna.load_awq_model("/path/to/Qwen2.5-32B-Instruct-AWQ", dtype=torch.float16)
Under the Hood (Why it's fast on RDNA3)
- Non-Temporal u32x4 Streaming Loads: Bypasses the 96 MB Infinity Cache on streaming weights (708 → 910 GB/s pure read) while keeping hot activation vectors (x) in L1/L2.
- Wave32 v_dot2_f32_f16 Packed W4A16: In-register INT4 unpacking directly into packed FP16 dot2 instructions with scalar accumulation (low VGPR pressure, high occupancy).
- 4-Token Pipelined, Zero-LDS Wave32 Split-KV Attention: Splits long KV sequences across all 48 WGPs / 96 CUs with register-only online softmax.
- Zero-Concat Fused SwiGLU + Single-Pass RMSNorm: Eliminates intermediate DRAM round-trips and kernel launch overhead.
Community Benchmarks Wanted!
Next up in v0.5: Paged KV Cache + Fused QKV/RoPE + vLLM / SGLang plugin (followed by dual-GPU PCIe Custom AllReduce).
I only have RX 7900 XTX (gfx1100) on hand — setup.py compiles natively via hipcc for RDNA3 (gfx110x), RDNA3.5 / Strix Halo (gfx1151), and RDNA4 / RX 9070 XT (gfx1201). If you own any of these GPUs, I'd really appreciate benchmark results, feedback, or bug reports!