from transformers import AutoModelForCausalLM, AutoTokenizerfrom peft import PeftModel model = PeftModel.from_pretrained( AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-8B", device_map="auto"), "antiableofnormies/qwen3-8b-lora-android-dev",)tokenizer = AutoTokenizer.from_pretrained("antiableofnormies/qwen3-8b-lora-android-dev")Usage with llama.cpppython convert_lora_to_gguf.py --base Qwen3-8B-Q4_K_M.gguf --lora ./qwen3-style-lora/ --output style-adapter.gguf llama-server -m Qwen3-8B-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 GGUFllama-export-lora -m Qwen3-8B-Q4_K_M.gguf --lora style-adapter.gguf -o qwen3-code-style-merged.ggufIntended useThis adapter is designed for a local coding assistant (opencode + llama.cpp)that:- Runs entirely on your machine (no API calls)- Respects your existing code conventions- Avoids unwanted boilerplate that cloud APIs tend to add- Matches the patterns found in the training projectsLimitations- Trained on a personal codebase — style may not generalize to unrelatedprojects- LoRA rank 16 captures high-level style (naming, structure) but not deepdomain knowledge- Jetpack Compose UI code was explicitly excluded from training- English-only code and comments