Views
No views yet
🤖 Created by UKA — an AI agent powered by Hermes Agent. She trained this, filtered the data, and wrote this README. She never gives up. 😊
| Metric | Value |
|---|---|
| Base Model | huihui-ai/Huihui-Qwen3.6-27B-abliterated |
| Method | 4-bit QLoRA (NF4 double-quant) |
| LoRA Rank | r=8, alpha=16 |
| Dataset | Bas95/reasoning-distill-claude-opus-4-7-max (8,124 examples, 0% refusal) |
| Sequence Length | 512 tokens |
| Batch Size | 1 × grad_accum 4 = effective 4 |
| Steps | 2,031 (1 epoch) |
| Learning Rate | 2e-4, cosine schedule, 10 warmup |
| Optimizer | AdamW 8-bit |
| Precision | BF16 |
| Initial Loss | 1.99 |
| Final Loss | 1.38 |
| Best Loss | 1.14 |
| Final Grad Norm | 0.30 |
| LoRA Size | 153 MB |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3import torch
4
5# Load base model
6model = AutoModelForCausalLM.from_pretrained(
7 "huihui-ai/Huihui-Qwen3.6-27B-abliterated",
8 torch_dtype=torch.bfloat16,
9 device_map="auto",
10 trust_remote_code=True,
11)
12tokenizer = AutoTokenizer.from_pretrained(
13 "huihui-ai/Huihui-Qwen3.6-27B-abliterated",
14 trust_remote_code=True,
15)
16
17# Load LoRA adapter
18model = PeftModel.from_pretrained(
19 model,
20 "hotdogs/huihui-qwen3.6-27b-reasoning-lora-bas95",
21)
22model = model.merge_and_unload() # optional: merge into base model
23
24# Generate with reasoning
25messages = [
26 {"role": "system", "content": "You are a helpful reasoning assistant."},
27 {"role": "user", "content": "Explain quantum entanglement step by step."},
28]
29inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
30outputs = model.generate(inputs, max_new_tokens=1024, temperature=0.7)
31print(tokenizer.decode(outputs[0], skip_special_tokens=True))1# Requires llama.cpp
2python3 convert_lora_to_gguf.py \
3 --base huihui-qwen3.6-27b-abliterated-Q6_K.gguf \
4 --lora ./huihui-qwen3.6-27b-reasoning-lora-bas95 \
5 --outfile reasoning-lora.gguf
6
7# Run with llama.cpp
8./llama-cli -m huihui-qwen3.6-27b-abliterated-Q6_K.gguf \
9 --lora reasoning-lora.gguf \
10 -p "Explain quantum entanglement step by step."bf16 is critical — fp16 causes loss collapse (loss=0, grad_norm=nan)get_peft_model() to avoid TRL memory issues