玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
hotdogs /

Qwen3.6_thinkingcap_lora

HF 源站

hotdogs/Qwen3.6_thinkingcap_lora is an uncensored open-source model hosted on Hugging Face.

Text GenerationsafetensorsGGUFChineseEnglishMultilingualLicense: apache-2.027Bpeftlorasvdweight-diffqwen3.5qwen3.6uncensoredabliteratedconversational
README.md说明 / 使用方法

base_model: Qwen/Qwen3.6-27B tags:

  • text-generation
  • lora
  • peft
  • svd
  • weight-diff
  • qwen3.5
  • qwen3.6
  • uncensored
  • abliterated license: apache-2.0 language:
  • en
  • zh pipeline_tag: text-generation

ThinkingCap Qwen3.6-27B LoRA (SVD Weight-Diff Extraction)

LoRA adapter extracted via weight-diff SVD from:

RoleModel
Source (fine)huihui-ai/Huihui-ThinkingCap-Qwen3.6-27B-abliterated
BaseQwen/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.

Target Modules

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 layers
  • Linear-attention tensors (linear_attn.*) are intentionally not targeted (not compatible with standard PEFT/llama.cpp LoRA)

Quality (rank 16)

Familycountavg |Δ|/baseenergy captured
down_proj641.8e-299.2%
o_proj161.9e-299.3%
gate_proj/up_proj1286e-4~28%
q/k/v_proj484e-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.

Usage

PEFT (transformers)

⚠️ Must load with AutoModelForImageTextToText (→ Qwen3_5ForConditionalGeneration). AutoModelForCausalLM resolves to the text-only Qwen3_5ForCausalLM whose 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.cpp (GGUF)

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).

Files

  • 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 model

Notes

  • Extracted with weight-diff-extraction (randomized SVD, CPU, ~11 min for 256 tensors).
  • The delta includes both the ThinkingCap fine-tune and the abliteration applied by huihui-ai, relative to the Qwen3.6-27B base.
  • Source model license: Qwen (Apache-2.0) + huihui-ai abliterated variant.
HUGGING FACE

上游数据

HF 下载量75
HF 点赞量2

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
hotdogs
最近更新
未知
最新创建
2026/08/16
HF 趋势
未知
数据快照
2026/09/16
版本
未知
许可证
apache-2.0