Downloads · 30 days
8
21% of all-time downloads
antiableofnormies/qwen3.5-4b-lora-android-dev
qwen3.5-4b-lora-android-dev is a text generation model from antiableofnormies. 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.
A QLoRA adapter fine-tuned on Android project source files to teach Qwen3.5-4B a specific coding style. Designed for llama.cpp (via GGUF conversion) or HuggingFace Transformers + PEFT.
Downloads · 30 days
8
21% of all-time downloads
All-time downloads
38
Public
Repo size
105 MB
Likes
0
Public
Click a slice to open those files.
.safetensors85 MB · 81%
From the Hugging Face model README
A QLoRA adapter fine-tuned on Android project source files to teach Qwen3.5-4B a specific coding style. Designed for llama.cpp (via GGUF conversion) or HuggingFace Transformers + PEFT.
| Parameter | Value |
|---|---|
| Base model | unsloth/Qwen3.5-4B |
| Method | QLoRA (4-bit NF4 via Unsloth) |
| LoRA rank | r=16, alpha=16 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Epochs | 3 |
| Sequence length | 2048 |
| Learning rate | 2e-4 (cosine scheduler) |
| Hardware | T4 GPU (16GB VRAM) via Google Colab |
| Framework | Unsloth + TRL SFTTrainer |
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
model = PeftModel.from_pretrained(
AutoModelForCausalLM.from_pretrained("unsloth/Qwen3.5-4B", device_map="auto"),
"antiableofnormies/qwen3.5-4b-lora-android-dev",
)
tokenizer = AutoTokenizer.from_pretrained("antiableofnormies/qwen3.5-4b-lora-android-dev")
python convert_lora_to_gguf.py --base Qwen3.5-4B-Q4_K_M.gguf --lora ./qwen3.5-4b-style-lora/ --output style-adapter.gguf
llama-server -m Qwen3.5-4B-Q4_K_M.gguf --lora style-adapter.gguf --host 0.0.0.0 -ngl 99 --ctx-size 32768 --port 8080 --mlock
# Optional: merge into a standalone GGUF
llama-export-lora -m Qwen3.5-4B-Q4_K_M.gguf --lora style-adapter.gguf -o qwen3.5-4b-code-style-merged.gguf
This adapter is designed for a local coding assistant (opencode + llama.cpp) that: