Views
No views yet
| File | Description |
|---|---|
adapter_model.safetensors | The LoRA adapter (PEFT format), ~304 MB |
adapter_config.json | PEFT config (r=16, α=32, all-linear) |
Qwen3.8-27B-Samantha-LoRA-qwen35.gguf | LoRA adapter in GGUF, arch-tagged qwen35 for llama.cpp |
tokenizer*.json, chat_template.jinja | Tokenizer + chat template |
| Repo | What it is |
|---|---|
| Lathly/Qwen3.8-27B-Samantha | The full merged model (bf16 safetensors) — this adapter baked into the base weights, ready to run with Transformers / vLLM / SGLang |
| Lathly/Qwen3.8-27B-Samantha-GGUF | GGUF builds for llama.cpp — f16 (for rolling your own quants) + Q5_K_M (tested production build) + mmproj for multimodal |
1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.8-27B", torch_dtype="bfloat16", device_map="auto")
5model = PeftModel.from_pretrained(base, "Lathly/Qwen3.8-27B-Samantha_Uncensored_1.1_LoRA")
6tok = AutoTokenizer.from_pretrained("Qwen/Qwen3.8-27B")Qwen3.8-27B Q5_K_M) plus this LoRA GGUF:1llama-server \
2 -m Qwen3.8-27B-Q5_K_M.gguf \
3 --lora Qwen3.8-27B-Samantha-LoRA-qwen35.gguf \
4 -ngl 99 --host 0.0.0.0 --port 8080Qwen LoRA merge fix
llama.cpp branch: qwen-lora-vhead-fix" Commit: f839835a3 Description: convert : reorder V heads for LoraTorchTensor Required to successfully merge certain Qwen LoRA adapters.Important: the adapter GGUF here is already tagged withgeneral.architecture = qwen35to match the base GGUF. If you regenerate the adapter yourself with an olderconvert_lora_to_gguf.py, it may tag asqwen3and llama.cpp will refuse to load it withmodel arch and LoRA arch mismatch. Retaggeneral.architecturetoqwen35to fix.
| Parameter | Value |
|---|---|
| LoRA rank (r) | 16 |
| LoRA alpha | 32 |
| Target modules | all-linear (q, k, v, o, gate, up, down) |
| LoRA dropout | 0.05 |
| Bias | none |
| Task type | CAUSAL_LM |
| Optimizer | 8-bit Paged AdamW |
| Learning rate | 2e-5 |
| LR scheduler | linear |
| Epochs | 1 |
| Effective batch size | 32 (grad accumulation) |
| Sequence length | 2048 |
| Warmup steps | 50 |
| Weight decay | 0.01 |
| Final train loss | ~1.42 |