Downloads · 30 days
0
leiox777/qwen3-companion-lora
qwen3-companion-lora is a machine learning model from leiox777. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Fine-tuned LoRA adapter for Qwen3-4B-Instruct model, trained for empathetic conversational interactions.
Downloads · 30 days
0
Access
Public
Updated Jan 8, 2026
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.safetensors925 MB · 66%
From the Hugging Face model README
Fine-tuned LoRA adapter for Qwen3-4B-Instruct model, trained for empathetic conversational interactions.
# Use with vLLM's LoRA support
--enable-lora \
--lora-modules companion=leiox777/qwen3-companion-lora
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B-Instruct-2507")
model = PeftModel.from_pretrained(model, "leiox777/qwen3-companion-lora")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-4B-Instruct-2507")
# Use for inference
messages = [
{"role": "system", "content": "You are a supportive and empathetic conversational companion."},
{"role": "user", "content": "Hello!"}
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt")
outputs = model.generate(inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0]))
Apache 2.0