Running Qwen 3.8 27B uncensored on your own machine takes one 17 GB file and one command, and the hard part is the memory arithmetic, not the install. This post gives both. It shows the exact Ollama and LM Studio commands, each checked against the project’s own documentation on 27 November 2026, and a budget you can change: weights plus a context cache that costs 64 KB per token, worked out from the model’s config file. It also names the Ollama default that silently gives a 24 GB card a small context, and the no-GPU route that uses the same client code against our gateway. One AI API Key publishes this, and we sell the alternative; we say where local wins.
Which files do you actually download?
You download a GGUF, the single-file format that llama.cpp, Ollama and LM Studio all read. The base model is Qwen3.8-27B under Apache 2.0, and every “uncensored” version is a community edit of it, published by someone other than Qwen. Three repositories matter here, and we read each on 27 November 2026.
| Repository | What it is | Files worth knowing |
|---|---|---|
| mradermacher/Qwen3.8-27B-Abliterated-Uncensored-GGUF | Static quants of a build named Madras1/Qwen3.8-27B-Abliterated-Uncensored | 11 files from Q2_K to Q8_0, text only, no projector file |
| JonathanColetti/Qwen3.8-27B-Uncensored-GGUF | A Heretic edit of the stock model, 200 trials, refusals 98 of 100 down to 12 of 100 on its own test | Fused MTP files, noMTP twins, two draft heads and a 0.9 GB mmproj vision file |
| lmstudio-community/Qwen3.8-27B-GGUF | The unmodified model, our control | Q4_K_M 16.81 GB, Q6_K 22.43 GB, Q8_0 29.05 GB, plus a projector |
The sizes in the mradermacher card, which are the ones we use below, are these.
| Quant | Size on the card (GB) | Fits fully on |
|---|---|---|
| Q2_K | 10.8 | 16 GB card, 8K context |
| Q3_K_M | 13.4 | 16 GB card, 8K context |
| IQ4_XS | 15.3 | 24 GB card, 8K context |
| Q4_K_S | 15.7 | 24 GB card, 8K context |
| Q4_K_M | 16.6 | 24 GB card, 8K context |
| Q5_K_M | 19.3 | 24 GB card, 8K context |
| Q6_K | 22.2 | 24 GB card, 8K context |
| Q8_0 | 28.7 | 32 GB card, 8K context |
The last column is our arithmetic, not the card’s: weights plus the cache for 8,192 tokens plus the state and overhead set out in the next section. The actual download for Q4_K_M is 16,547,401,024 bytes by the Hugging Face file API, which the card rounds to 16.6 GB.
Weights on disk by quantization, GB (mradermacher card)
- Q2_K10.8 GB
- Q3_K_M13.4 GB
- IQ4_XS15.3 GB
- Q4_K_S15.7 GB
- Q4_K_M16.6 GB
- Q5_K_M19.3 GB
- Q6_K22.2 GB
- Q8_028.7 GB
Four details change what you download.
MTP or no MTP. The JonathanColetti repository ships each quant twice. The fused file carries the model’s multi-token-prediction head, used for speculative decoding in llama.cpp, and the noMTP file leaves it out. The card says the head is inert in a normal forward pass and the Locally Uncensored guide puts its cost at roughly 0.3 to 0.8 GB and no change to answer quality. For Ollama and LM Studio, where we found no documented use of that head, the smaller noMTP file is the simpler pick: Q4_K_M is 16.5 GB against 16.8 GB fused.
Images need a projector. The model reads images and video, but only if the pack has a separate mmproj file of about 0.9 GB and your runtime loads it. The mradermacher repository lists none, so that route is text only. If you want pictures, pick a repository that ships the projector and add 0.9 GB to your budget.
Provenance. On the day we checked, the repository the mradermacher quants were made from (Madras1/Qwen3.8-27B-Abliterated-Uncensored) answered an authentication error through the Hugging Face API, so we could not read its own card. That is not proof of anything, and the quant repository is open. It is a reason to read the chain before you download, which the Hugging Face safe download guide walks through step by step. A model that moves or vanishes is also a reason to keep the file you tested.
What the card measured. The JonathanColetti card reports MMLU 83.4 for the stock model and 83.3 for its edit, zero-shot, with a standard error of about 0.3, and says nothing was measured for math, code, vision or thinking mode. Its refusal figure came from 100 prompts in non-thinking mode. The sibling post that reads nine cards side by side, abliterated against Heretic against uncensored, shows why those numbers cannot be ranked across cards, and the Heretic guide explains the method behind this one.
How much memory does it really need?
Weights plus cache plus a fixed state plus overhead. The first is on the card, the second comes from the config file, and the last two are small enough to estimate honestly.
The cache is the one people get wrong. The Qwen3.8-27B config file lists 64 layers in a repeating pattern of three linear-attention (Gated DeltaNet) layers and one full-attention layer, so 16 layers hold a key and a value for every token. Those 16 layers use 4 key-value heads of head size 256, and the cache stores 2 bytes per number at 16-bit precision. The cost per token is 16 x 2 x 4 x 256 x 2 = 65,536 bytes, which is 64 KB. That matches the figure in the Locally Uncensored guide, and it is far smaller than a conventional 27B model would need, because only a quarter of the layers cache anything per token.
The other 48 layers keep a fixed-size recurrent state per sequence that does not grow with context. We could not find a published size for it, so this is our estimate from the config: 48 value heads, each holding a 128 by 128 matrix, in 4-byte floats (the config sets the state dtype to float32), across 48 layers is 48 x 48 x 128 x 128 x 4 = 150,994,944 bytes, about 0.15 GB, plus a small convolution state we ignore. Treat it as an order of magnitude. It is small next to everything else, which is the useful finding: the long-context cost on this model is the cache of the 16 full-attention layers and nothing hides behind it.
For overhead we assume 1.0 GB for compute buffers and the runtime. That is our assumption, not a measurement, and it varies with the runtime, the batch size and whether a projector is loaded. The real check is the tool’s own estimate, which LM Studio provides before it loads anything.
| Context (tokens) | Cache, f16 (GB) | Cache, q8_0 (GB) | Total with Q4_K_M, f16 (GB) | Total with Q4_K_M, q8_0 (GB) |
|---|---|---|---|---|
| 8,192 | 0.54 | 0.27 | 18.3 | 18.0 |
| 32,768 | 2.15 | 1.07 | 19.9 | 18.8 |
| 65,536 | 4.29 | 2.15 | 22.0 | 19.9 |
| 131,072 | 8.59 | 4.29 | 26.3 | 22.0 |
| 262,144 | 17.18 | 8.59 | 34.9 | 26.3 |
The q8_0 column uses the Ollama FAQ’s statement that an 8-bit cache “uses approximately 1/2 the memory of f16 with a very small loss in precision”. The FAQ adds that models with a high grouped-query-attention count may see a larger effect, and that quantizing the cache needs flash attention. We have not measured the quality cost on this model. The worked row: at 32,768 tokens the f16 cache is 32,768 x 65,536 = 2,147,483,648 bytes, 2.15 GB, and the total with Q4_K_M is 16.6 + 2.15 + 0.15 + 1.0 = 19.9 GB.
KV cache by context length, f16, GB (65,536 bytes per token)
- 8,192 tokens0.54 GB
- 32,768 tokens2.15 GB
- 65,536 tokens4.29 GB
- 131,072 tokens8.59 GB
- 262,144 tokens17.18 GB
Put your own card in the calculator. It reports whether the load fits and how much headroom is left, with the same assumptions as above.
Does it fit on my card?
- KV cache (GB)
- 2.15
- Total needed (GB)
- 19.90
- Headroom (GB)
- 4.10
- Verdict
- Fits on the GPU
The state estimate and overhead are ours. Cards report memory in binary units, so a label of 24 GB is usually a little more than 24 x 1,000,000,000 bytes; the sum above is deliberately conservative. Runs in your browser and sends nothing.
Which card gets which file?
The picker applies the same arithmetic to common card sizes. For each card it picks a file from the table, then shows how many tokens of cache are left with an f16 and a q8_0 cache. A zero means the file does not fit fully on the card with our overhead, and the runtime will split it between the GPU and system RAM, which costs speed.
How much memory does your graphics card have?
8 GB or less
12 GB
16 GB
24 GB
32 GB
48 GB or more
How do you run it in Ollama?
Two routes, both from Ollama’s documentation. The first pulls from Hugging Face. The second imports a file you already downloaded and lets you fix the context length and a system prompt in one place.
Hugging Face’s Ollama page gives the format ollama run hf.co/{username}/{repository}, with an optional :{quantization} tag, and says that by default Q4_K_M is used when the repository has it. It also says the tag can be a full file name. That matters for the JonathanColetti repository, where fused and noMTP files share a quant name: use the full file name as the tag if you want a specific one.
# Pull a GGUF straight from Hugging Face (format: hf.co/{user}/{repo}:{quant})
ollama run hf.co/mradermacher/Qwen3.8-27B-Abliterated-Uncensored-GGUF:Q4_K_M
# In a second terminal: what is loaded, how much context, and is it all on the GPU?
ollama psOllama’s import page covers the second route. It says Ollama does not quantize GGUF files on import, so you start from a finished quant, and that a single-file import needs a Modelfile containing FROM /path/to/file.gguf. The Modelfile reference lists num_ctx as the context window parameter and SYSTEM for a system message, and says a GGUF path can be absolute or relative to the Modelfile.
# Modelfile (keep it next to the .gguf you downloaded)
FROM ./Qwen3.8-27B-Uncensored-noMTP-Q4_K_M.gguf
PARAMETER num_ctx 32768
SYSTEM """You are a frank, careful assistant for an adult user. Answer directly with specifics, say when you are unsure, and keep fiction and security work inside the law."""# Build a named model from the Modelfile in the current folder, then run it
ollama create qwen38-unc
ollama run qwen38-unc
# Check which template and parameters Ollama stored
ollama show --modelfile qwen38-uncThe import page shows only the FROM line, so whether the chat template inside a given GGUF is picked up correctly is something to test. Send one prompt. If the reply contains stray special tokens or the model talks to itself, look at what Ollama stored with ollama show --modelfile, which the Modelfile reference documents, and compare it with the repository’s card.
The context default that trips people
Ollama’s context-length page states the defaults by VRAM: a 4k context under 24 GiB, 32k from 24 to 48 GiB and 256k at 48 GiB or more. It tells you to use at least 64,000 tokens for agents, web search and coding tools, and says a larger context needs more memory. A card with less usable memory than its label, because the desktop is using some, can land in the 4k tier even when you meant 32k. The check is the CONTEXT column in ollama ps, and the same page says the PROCESSOR column shows whether the model is split between CPU and GPU. If it says anything other than a full GPU load, you are paying the speed penalty described in the picker above.
Two more pieces apply. The OpenAI compatibility page says the OpenAI API has no way to set the context size, and gives the Modelfile route above. And the FAQ documents the server-side switches: OLLAMA_FLASH_ATTENTION=1 forces flash attention on, and OLLAMA_KV_CACHE_TYPE chooses f16 (default), q8_0 or q4_0, applying to all models and needing flash attention. The FAQ calls q8_0 recommended if you are not using f16, and says q4_0 loses more precision, noticeably at higher context sizes.
# Server-side settings (set before starting the server)
OLLAMA_CONTEXT_LENGTH=32768 OLLAMA_FLASH_ATTENTION=1 OLLAMA_KV_CACHE_TYPE=q8_0 ollama serveThinking mode is on by default in the Qwen3.8 model card: it says thinking can be disabled per request. Ollama’s thinking page documents a think field on chat and generate requests, and says a reasoning model returns its trace in a separate thinking field. For short chat and fiction you may want it off. A reasoning trace spends output tokens, so with a small num_predict you can get an empty visible answer, a trap we also flag in the 1M-context post.
How do you run it in LM Studio?
LM Studio gives you the same model through an app or through lms, its command line, which ships with the app. The lms overview says you must run the app at least once before lms works. The commands below are the documented ones.
The lms get page says to append @ and the quantization for models with several, with lms get llama-3.1-8b@q4_k_m as its example, and says --gguf limits results to GGUF files. The lms load page documents --context-length, --gpu (0 to 1, off or max), --ttl and --identifier, and --estimate-only, which prints a memory estimate without loading and honours the context and GPU flags. It says the estimator accounts for context length, flash attention and whether the model is vision-enabled. That is the check we trust more than our own overhead guess.
# Find and download (append @quant to pick a file; the app search works too)
lms get qwen3.8-27b@q4_k_m
# See what is on disk and copy the model key
lms ls
# Estimate memory before loading: honours --context-length and --gpu
lms load --estimate-only <model_key> --context-length 32768
# Load with a context length, all layers on the GPU, and an identifier for API calls
lms load <model_key> --context-length 32768 --gpu max --identifier qwen38-unc
# Serve it on http://localhost:1234/v1
lms server startThe lms server start page says the server binds to 127.0.0.1 by default and that any other bind, such as --bind 0.0.0.0, exposes it beyond localhost, which it recommends protecting with authentication. We would leave it on localhost. The OpenAI compatibility page lists /v1/models, /v1/chat/completions, /v1/completions, /v1/embeddings and /v1/responses, and shows the base URL http://localhost:1234/v1, with the model field set to the identifier LM Studio shows. It also notes a REST API v0 with enhanced stats such as tokens per second and time to first token, which is the easiest way to measure your own speed there.
If you run your own llama.cpp server instead, the server README documents the flags the others wrap: -c for context size, -ngl for layers on the GPU, -ctk and -ctv for the cache types, -fa for flash attention and --mmproj for the vision projector. The JonathanColetti card gives a full command for its fused file, shown below, and warns that llama.cpp builds older than PR 22673 load the files and silently ignore the speculative-decoding head.
# From the JonathanColetti card: fused MTP file, all layers on the GPU, 8K context
llama-server -m Qwen3.8-27B-Uncensored-Q4_K_M.gguf \
--spec-type draft-mtp --spec-draft-n-max 2 \
-ngl 99 -c 8192How fast will it be, and what do we know?
We have not benchmarked Qwen 3.8 27B on any card, so we give no tokens-per-second figure of our own. Most pages for this keyword quote a speed with no hardware or settings attached, and a number like that is not worth repeating. What exists in sources we could open is thin.
| Source | Figure | What it does not tell you |
|---|---|---|
| JonathanColetti card, IQ2_M file, NVIDIA H200 NVL, 256 tokens, median of 3 | 75.4 tokens a second on prose with no speculative decoding; 83.2 to 85.2 with the MTP head at draft length 1 or 2 | Nothing about a consumer card, or about Q4_K_M |
| Same card, original release table, hardware not recorded | 74.8 baseline on prose; largest gain 1.21 times for chat at draft length 1 | The card itself says to compare the ratios, not the rates |
| Brutal AI, hosted, its own 6 November test | 42 tokens a second, 128K context | A hosted service’s claim, not a local measurement |
The ratios are the useful part. Speculative decoding helped at a draft length of 1 to 3 and hurt beyond it on that card, with 0.67 times at length 7 on the prose prompt, so a bigger setting is not a better one. That is a result about one file on one data-center GPU, and the card tells you to sweep the setting on your own hardware.
Measure instead. On Ollama, the usage metrics page documents eval_count (output tokens) and eval_duration in nanoseconds, so tokens per second is eval_count divided by eval_duration over a billion, as in the snippet below. On LM Studio, the REST v0 stats report it directly. Run each three times with a prompt like yours and a context length like yours, because a long prompt slows the first token far more than the rest.
# Measure your own speed: the API reports counts and nanoseconds
curl http://localhost:11434/api/generate -d '{
"model": "qwen38-unc",
"prompt": "Write 200 words about a lighthouse keeper.",
"stream": false
}'
# tokens per second = eval_count / (eval_duration / 1000000000)What if you have no GPU, or not enough?
Use the same client against a hosted endpoint. Ollama’s compatibility page shows the OpenAI client pointed at http://localhost:11434/v1/ with a placeholder key that is “required but ignored”, and LM Studio’s page shows http://localhost:1234/v1. Our base URL is https://api.oneaiapikey.com/v1. Nothing else in the script changes except the key and the model id, so you can develop against a local server and switch later, or the other way round. The post on switching an OpenAI SDK app to a different base URL covers environment variables for most tools.
import os
from openai import OpenAI
# One client, three places to point it. Only these three values change.
TARGETS = {
"ollama": ("http://localhost:11434/v1/", "ollama", "qwen38-unc"), # key is required but ignored
"lmstudio": ("http://localhost:1234/v1", "lm-studio", "qwen38-unc"), # the identifier you gave lms load
"gateway": ("https://api.oneaiapikey.com/v1", os.environ["ONEAIAPIKEY_API_KEY"], "dealignai-glm-5.3-flash-uncensored-fp8:free"),
}
base_url, api_key, model = TARGETS[os.environ.get("TARGET", "gateway")]
client = OpenAI(base_url=base_url, api_key=api_key)
reply = client.chat.completions.create(
model=model,
max_tokens=300,
messages=[{"role": "user", "content": "Write a 150-word opening scene for a noir story."}],
)
print(model, "->", reply.choices[0].message.content)
print(reply.usage)Where your request goes
What you can call without any hardware depends on the model. The free lane has 47 ids, all ending in :free, working right after a Google sign-in with no card, sharing 100 requests and 3,000,000 tokens a day. Three of the uncensored ones list a 1,048,576-token context, starting with GLM 5.3 Flash Uncensored; none of them is Qwen. The stock Qwen3.8 27B sits on the lane as qwen-qwen3.8-27b:free, which is useful as a control when you test a local build, and the free models page shows the live list. The free uncensored chat is the no-code version.
For the abliterated Qwen itself, we list qwen3.8-27b-abliterated at $0.51 per 1M input tokens, $2.27 per 1M output and $0.07 per 1M cached on the uncensored API page. Paid models are set up by hand, offline, to stop abuse and card fraud. Pick a model and see the prices on that page, then email somdutt777@gmail.com to buy access. Ask by email about monthly options. For scale: a request with 6,000 input and 500 output tokens costs 6,000 x $0.51 / 1,000,000 plus 500 x $2.27 / 1,000,000, which is $0.0042. The hosted Qwen price survey lines up seven other hosts with dates, and the uncensored API price comparison widens it.
Whether a GPU of your own pays back is a question of hours of use, not of principle, and two companion posts do that arithmetic: local against API and GPU rental against API cost. Our own short rule, which you are free to ignore: if you will send a few hundred requests a month, a local 27B is a hobby, not a saving. If your prompts must never leave your machine, local is the only honest answer and no price table changes that.
What does running it locally not fix?
Four things, and each deserves a sentence before you spend an evening on a download.
Refusals can survive. The edit removes a direction from the weights, per the method in Arditi et al., and the JonathanColetti card says plainly that refusals are reduced and not eliminated, with 12 of 100 held-out prompts still refused on its own test. The same card notes behaviour near the old boundary is less stable and that lower quants compound it. A 2-bit file is where you should expect the most erratic answers. How to write a system prompt that sets tone without pretending to be a jailbreak is in the system prompt guide.
The stock model is a control, not a rival. If the stock model answers your prompt and the uncensored build gives a worse answer, you have found the cost of the edit. If both refuse, no file will fix it, and a different family may: the Qwen against DeepSeek comparison and the guides to DeepSeek, GLM and Kimi uncensored routes cover them.
Your own use still has limits. Our acceptable use policy applies to every request to our service and is not a rule for your own machine, but the line it draws, adults only, nothing sexual involving minors, nothing that helps harm real people, is where we would stop on any hardware. The legal overview covers what the law does and does not say about the weights and the output.
A local model is still just a model. Long documents degrade, as the context window companion shows, and a local 27B does not reason like a frontier model. For work that depends on that, such as coding or security research, test against a hosted model on a handful of your own tasks before you commit hardware to it.
What do people use local models for?
The same jobs as the hosted routes, with different constraints. For long fiction and drafts, a local build means no per-token cost and no daily cap, and the writers’ guide covers prompts. For roleplay frontends, SillyTavern talks to both Ollama and LM Studio through their OpenAI-style endpoints, and the SillyTavern setup guide has the settings that transfer; the cost side is in the monthly roleplay cost post. If you came from a hosted character site, the guides to Janitor AI alternatives and Character.AI alternatives explain which frontends accept an OpenAI-style base URL. For tools that need a key before they start, see how to get an uncensored AI API key. The pillar guide to uncensored AI APIs and the post on unfiltered AI APIs cover the rest of the lane.
Two earlier local guides on this site use the same method for other models and are worth reading for the parts that carry over: the Bonsai 27B Ollama guide and the Bonsai quantization guide. The Inkling 2 Mini Ollama setup is the same walk-through for a smaller model. Before you trust a hosted route that claims to serve a particular model, the checks in our post on verifying what an API serves apply, and the transparency page says what we monitor.
No GPU yet? Test an uncensored model first
Sign in with Google, no card: the 47 free ids share 100 requests and 3,000,000 tokens a day. Point the client above at https://api.oneaiapikey.com/v1 and compare it with your local build. The paid Qwen id is set up by email: somdutt777@gmail.com.
Frequently asked questions
Does Ollama support Qwen 3.8 27B uncensored builds?
qwen3.8 in its library (27b, 18GB, 256K context window, text and image), so the architecture runs there. For a community build you pull a GGUF from Hugging Face with ollama run hf.co/{user}/{repo}:{quant}, which is the format on Hugging Face's Ollama page, or import a downloaded file with a Modelfile. We have not run the community builds ourselves, so test one prompt and read ollama ps before you trust it.How much VRAM does Qwen 3.8 27B uncensored need?
Why does my model answer with a tiny context in Ollama?
OLLAMA_CONTEXT_LENGTH when you start the server or put PARAMETER num_ctx in a Modelfile, then check the CONTEXT column of ollama ps.Which is easier for a beginner, Ollama or LM Studio?
lms load --estimate-only) and a local server switch. Ollama is a command line and a background service, with a one-line pull from Hugging Face. Both expose an OpenAI-style base URL, so the same client code works against either. Pick the one whose interface you will open every day; neither gives better answers from the same GGUF.How many tokens per second will I get?
Is running it locally more private than the API?
Can I use the same app against your API instead of a local server?
qwen3.8-27b-abliterated is listed at $0.51 in and $2.27 out per 1M tokens on the uncensored API page; paid models are set up by hand, offline, so email somdutt777@gmail.com to buy access.