Downloads · 30 days
68
42% of all-time downloads
hotdogs/Qwen3.6_thinkingcap_lora
Qwen3.6_thinkingcap_lora is a text generation model from hotdogs. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
LoRA adapter extracted via weight-diff SVD from:
Downloads · 30 days
68
42% of all-time downloads
All-time downloads
162
Public
Repo size
332 MB
Likes
2
Public
Click a slice to open those files.
.safetensors159 MB · 47%
From the Hugging Face model README
LoRA adapter extracted via weight-diff SVD from:
| Role | Model |
|---|---|
| Source (fine) | huihui-ai/Huihui-ThinkingCap-Qwen3.6-27B-abliterated |
| Base | Qwen/Qwen3.6-27B |
The delta W_fine - W_base is compressed with randomized SVD (rank 16),
producing a standard PEFT LoRA (lora_A/lora_B, BF16). Applying it to the
base model reproduces the ThinkingCap + abliteration behavior change without
any training data.
Qwen3.6-27B is a hybrid qwen3_5 model (64 layers, Qwen3_5ForConditionalGeneration):
self_attn.q_proj/k_proj/v_proj/o_proj — 16 full-attention layers (3, 7, 11, ..., 63)mlp.gate_proj/up_proj/down_proj — all 64 layerslinear_attn.*) are intentionally not targeted
(not compatible with standard PEFT/llama.cpp LoRA)| Family | count | avg |Δ|/base | energy captured |
|---|---|---|---|
| down_proj | 64 | 1.8e-2 | 99.2% |
| o_proj | 16 | 1.9e-2 | 99.3% |
| gate_proj/up_proj | 128 | 6e-4 | ~28% |
| q/k/v_proj | 48 | 4e-4 | ~30-47% |
Delta-energy-weighted: 99.1% captured, reconstruction error 0.087.
lora_alpha == r == 16, so the PEFT/GGUF scale is 1.0 (exact delta).
Use --lora-scaled 0.5 (llama.cpp) or a merge ratio to weaken the effect.
⚠️ Must load with
AutoModelForImageTextToText(→Qwen3_5ForConditionalGeneration).AutoModelForCausalLMresolves to the text-onlyQwen3_5ForCausalLMwhose parameter names (model.layers.*) do not match this adapter (model.language_model.layers.*).
import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer
from peft import PeftModel
model = AutoModelForImageTextToText.from_pretrained(
"Qwen/Qwen3.6-27B", device_map="auto", dtype=torch.bfloat16)
model = PeftModel.from_pretrained(model, "hotdogs/thinkingcap-qwen36-r16-lora")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3.6-27B")
prompt = "Explain the theory of relativity"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(out[0], skip_special_tokens=True))
llama-cli -m Qwen3.6-27B.Q6_K.gguf \
--lora thinkingcap_qwen36_r16.gguf \
--lora-scaled 0.5 \
-p "Explain the theory of relativity"
Requires a base GGUF of the same architecture (Qwen3.6-27B).
adapter_config.json — PEFT config (r=16, alpha=16, target modules)adapter_model.safetensors — LoRA weights (BF16, 159.5 MB)thinkingcap_qwen36_r16.gguf — llama.cpp LoRA (159.4 MB)tokenizer.* — tokenizer files copied from the base modelweight-diff-extraction (randomized SVD, CPU, ~11 min for 256 tensors).