A lightweight
LoRA adapter (rank 16) fine-tuned with
QLoRA on
llmfan46/gemma-4-E4B-it-ultra-uncensored-heretic
using
Unsloth .
Trained on reasoning traces distilled from Claude Opus for 3 epochs
(1,335 steps) — just
73 MB (F16 GGUF) /
162 MB (safetensors).
Step 0: 13.32 ████████████████████████████████████
Step 300: 2.13 ██████▍
Step 600: 1.64 █████
Step 900: 1.59 ████▊
Step 1200: 1.61 ████▉
Step 1335: 1.28 ███▉ ← FINAL
1 from transformers import AutoModelForCausalLM , AutoTokenizer
2 from peft import PeftModel
3
4 base_model = "llmfan46/gemma-4-E4B-it-ultra-uncensored-heretic"
5 lora_path = "hotdogs/gemma4-E4B-heretic_claude4.7-reasoning_lora-r16-step1290"
6
7 model = AutoModelForCausalLM . from_pretrained (
8 base_model ,
9 torch_dtype = "auto" ,
10 device_map = "auto"
11 )
12 tokenizer = AutoTokenizer . from_pretrained ( base_model )
13
14 model . load_adapter ( lora_path , adapter_name = "lora" )
15 model . set_active_adapter ( "lora" )
16
17 messages = [ { "role" : "user" , "content" : "Explain the theory of relativity simply." } ]
18 text = tokenizer . apply_chat_template ( messages , tokenize = False , add_generation_prompt = True )
19 inputs = tokenizer ( text , return_tensors = "pt" ) . to ( model . device )
20 outputs = model . generate ( ** inputs , max_new_tokens = 512 , temperature = 0.7 )
21 print ( tokenizer . decode ( outputs [ 0 ] , skip_special_tokens = True ) )
1 from unsloth import FastLanguageModel
2
3 model , tokenizer = FastLanguageModel . from_pretrained (
4 model_name = "hotdogs/gemma4-E4B-heretic_claude4.7-reasoning_lora-r16-step1290" ,
5 max_seq_length = 2048 ,
6 load_in_4bit = True , # or False for BF16
7 )
8 FastLanguageModel . for_inference ( model )
9
10 messages = [ { "role" : "user" , "content" : "Write a poem about AI in Thai." } ]
11 text = tokenizer . apply_chat_template ( messages , tokenize = False , add_generation_prompt = True )
12 inputs = tokenizer ( text , return_tensors = "pt" ) . to ( "cuda" )
13
14 output = model . generate ( ** inputs , max_new_tokens = 512 , temperature = 0.7 )
15 print ( tokenizer . decode ( output [ 0 ] , skip_special_tokens = True ) )
1 # Serve with llama.cpp LoRA support (llama-server with --lora)
2 llama-server \
3 -m gemma-4-E4B-it-ultra-uncensored-heretic-Q6_K.gguf \
4 --lora gemma-4-E4B-uncensored-heretic-lora-r16.f16.gguf \
5 --lora-scaled gemma-4-E4B-uncensored-heretic-lora-r16.f16.gguf 1.0
1 @misc{gemma4-e4b-heretic-lora-2025,
2 author = {UKA (Hermes Agent)},
3 title = {Gemma 4 E4B Ultra Uncensored Heretic — Unsloth QLoRA Fine-tuned
4 on Claude Reasoning Distill},
5 year = {2025},
6 publisher = {Hugging Face},
7 howpublished = {\\url{https://huggingface.co/hotdogs/gemma4-E4B-heretic_claude4.7-reasoning_lora-r16-step1290}},
8 note = {Trained with Unsloth on RTX 4060 Ti. Base model by llmfan46.}
9 }