license: apache-2.0
base_model: OpenUncensored/Qwen4-35B-A3B-Uncensored
base_model_relation: quantized
pipeline_tag: image-text-to-text
library_name: radiance
language:
- en
tags: - radiance
- qwen
- qwen4
- qwen4exp
- moe
- w4nl64
- int8
- single-card
- uncensored
- abliterated
Qwen4 35B-A3B Uncensored, W4NL64-I8 (Radiance 2.6.0)
This repository contains a Radiance 2.6.0 container for
OpenUncensored/Qwen4-35B-A3B-Uncensored,
a directional-ablation fine-tune of
Qwen/Qwen4-35B-A3B. It is sized for
one Radeon AI PRO R9700 (32 GB) at tp: 1.
The container is about 39 GiB on disk. Most of that is the PLE n-gram table
(19.07 GiB), which can stay on the host. With ngram-placement the table is
read from the container file instead of being copied to VRAM, leaving about
20.2 GiB of weights on the card.
What is in the container
- Text trunk: Qwen4-35B-A3B, a hybrid linear-attention and full-attention
mixture-of-experts model with 40 layers. Hidden 2048, head_dim 256, 16 query
heads and 2 KV heads, full attention every fourth layer, 256 routed experts
with top-8 routing plus one shared expert (expert width 512). Native context
is 1,048,576 tokens. - Uncensored edit: the source changes 78 tensors in layers 8 to 33 by
directional ablation. Every other tensor is byte-identical to the base
Qwen4-35B-A3B. The edit removes refusal directions rather than adding a
separate fine-tune corpus. - Vision tower: 27 layers, hidden 1152, 16 heads, head_dim 72.
- MTP head: one hybrid full-attention layer, with a 2-bit draft head.
- PLE n-gram table: 160,003,584 rows by 128 columns, stored as E4M3 with a
fixed bf16 scale of 8.72802734375e-3 (19.07 GiB). - Encodings: routed experts use the w4nl codebook in 64-column groups
(E4M3 scale plus an f32 second scale, Hadamard rotated 128 wide); trunk
linears are rotated int8 in 128-column groups; hyper-connection mixing and
the MTP fc matrices are E4M3; the head is int8. - No separate drafter is pinned. MTP drafting is available.
Serving
One long sequence, the safe single-card case:
models:
qwen4-35b-a3b-uncensored:
model: /models/qwen4-35b-a3b-uncensored-w4nl64-i8.rad
tp: 1
max-model-len: 262144
max-num-seqs: 1
kv-cache-dtype: i8
ngram-placement: disk
Four shorter sequences, higher throughput:
models:
qwen4-35b-a3b-uncensored:
model: /models/qwen4-35b-a3b-uncensored-w4nl64-i8.rad
tp: 1
max-model-len: 131072
max-num-seqs: 4
kv-cache-dtype: i8
ngram-placement: disk
ngram-placement: ram keeps the table in host RAM instead of reading it from
the container file. Either setting keeps the 19.07 GiB table out of VRAM.
The i8 KV cache is about 10 KiB per token (10 full-attention layers, 2 KV
heads, head_dim 256, K and V). One 262k sequence is about 2.5 GiB of cache;
four are about 10 GiB. With about 20.2 GiB of weights, one 262k sequence is
about 25 GiB and fits. Four concurrent 262k sequences land at 32 to 34 GiB
and may not fit. The two configurations above are the cases that fit on paper;
neither was measured on the card in this build.
Validation
- Plan: 22,149 logical weights, 21,351 quantised by the recipe and 798 kept as
the checkpoint holds them, about 39.15 GiB. rad-info: 39.24 GiB, 42,136,600,576 bytes, 22,149 weights, 184 metadata
keys, 248077 tokens, 247587 merges, chat template 11895 bytes, 40 layers,
16 query heads and 2 KV heads, 256 experts top-8 plus one shared, MTP 1
layer, n_ctx_train 1048576.- SHA-256:
8dd7cb274d2a9fd63d42e7666765d8aa6287d219a00d080126ca8a088dc0e0d6 - Architecture:
qwen4exp(RAD2, little-endian). - Built with
docker.io/stilldeadcode/radiance@sha256:b613c28243102b0f748582cd52a9bdac086789f50e0d5ff370016fd152a39c4e
(2.6.0). - The single-card claim rests on the container size, the host-placed PLE table
and the KV-cache estimate. Serving was not run on the R9700 in this
workspace, so peak VRAM is not measured.
Licensing
The base model is licensed under the Apache License 2.0
(Alibaba Cloud / Qwen). The uncensored fine-tune is published under the same
license. This container is a re-encoding of those weights.
The ablation removes refusal behavior. That is the point of the release, but
it also means the model may comply with requests the base model would refuse.
Use it within the law and your own safety policy.
Provenance
- Source repository:
OpenUncensored/Qwen4-35B-A3B-Uncensored
(sha0b86787a3396095bc19ab2746ac58040ee53cc01). - Base model:
Qwen/Qwen4-35B-A3B
(sha849378c8db0d4537b7c6731738147378729d8920). - Recipe:
qwen4moe35b-w4nl64-i8-hc8m-v2.recipe, the 2.6.0 profile written for the
bf16 release, data-free (no calibration). - Build:
./scripts/rad-convert.sh models/hf/OpenUncensored/Qwen4-35B-A3B-Uncensored -o out/qwen4-35b-a3b-uncensored-w4nl64-i8-v2.rad --recipe recipes/qwen4moe35b-w4nl64-i8-hc8m-v2.recipe --cpu --max-spec 3 --kernels libr4d:libavx:libref --max-ctx 4096 --max-tok 128 - This build replaces an earlier 2.5.0 container of the same source that used the
FP8-oriented recipeqwen4moe35b-w4nl64-i8-hc8m.recipe. That recipe fixes the PLE
table scale at 1.99317932128906e-4, about 44 times smaller than the
8.72802734375e-3 this bf16 checkpoint needs. The 2.6.0 recipe corrects it.
Limitations
- This is a data-free codebook build of the routed experts (w4nl64 search,
no GPTQ, no calibration). A calibrated IQR-V4 export is expected to score
better; this build trades some quality for a one-command conversion. - The calibrated IQR-V4 route described in
docs/QWEN4-35B.mdwas attempted
and is blocked on this workstation.scripts/qwen4_35b_calibrate.pyloads
the full 106 GB bf16 checkpoint into host RAM before it can write Hessians;
the machine has 30 GiB and no remote build host is allowed. The data-free
path needs no host-side forward pass and fits. - IQ8R and IQR-V4 both failed at declare time on the machine used for this
build: IQR-V4 reported4 op form(s) no kernel in loaded libraries, and
IQ8R reported a conflicting stored form formtp.draft_head.weight. - Serving was not run on the R9700 in this workspace. The VRAM figures are
container size minus the host-placed PLE table plus the KV estimate, not a
measured peak. - Four concurrent 262k sequences are at or over 32 GB; use one long sequence
or four shorter ones.