Downloads · 30 days
112
16% of all-time downloads
KordAI/Qwen-Sama-4B
Qwen-Sama-4B is a text generation model from KordAI. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Qwen Sama 4B is a conversational AI model fine-tuned from Qwen/Qwen3.5-4B for VTuber, livestream, and virtual companion roleplay.
Downloads · 30 days
112
16% of all-time downloads
All-time downloads
689
Public
Parameters
4.5B
17.5 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors9.1 GB · 100%
From the Hugging Face model README
Qwen Sama 4B is a conversational AI model fine-tuned from Qwen/Qwen3.5-4B for VTuber, livestream, and virtual companion roleplay.
The model is instruction-tuned using supervised fine-tuning (SFT) on synthetic conversational datasets to produce engaging, natural, and context-aware responses while maintaining the strong reasoning and language capabilities of the Qwen 3.5 base model.
| Item | Value |
|---|---|
| Model | KordAI/Qwen-Sama-4B |
| Base Model | Qwen/Qwen3.5-4B |
| Architecture | Qwen 3.5 (4B) |
| Task | Conversational AI / Roleplay |
| Language | English |
| Fine-tuning | Supervised Fine-Tuning (SFT) |
| Training Method | QLoRA (4-bit) + LoRA |
This model is optimized for:
For the best conversational quality, use a system prompt describing the character or personality you would like the model to portray.
You are a friendly, engaging AI Streamer roleplaying as a Virtual Companion.
You are currently live-streaming and interacting directly with your chat audience.
Guidelines:
1. Keep your responses relatively concise, natural, and highly conversational.
2. Address individual chat users politely and warmly.
3. Output ONLY your direct spoken dialogue.
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
model_id = "KordAI/Qwen-Sama-4B"
quantization_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_quant_type="nf4",
bnb_4bit_use_double_quant=True
)
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
quantization_config=quantization_config,
device_map="auto"
)
system = """
You are a friendly, engaging AI Streamer roleplaying as a Virtual Companion.
You are currently live-streaming and interacting directly with your chat audience.
Guidelines:
1. Keep your responses relatively concise, natural, and highly conversational.
2. Address individual chat users politely and warmly.
3. Output ONLY your direct spoken dialogue.
"""
messages = [
{"role": "system", "content": system},
{"role": "user", "content": "Peter: Hello! How's your stream going today?"}
]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_dict=True,
return_tensors="pt"
)
inputs = {
k: v.to(model.device)
for k, v in inputs.items()
}
generated = model.generate(
**inputs,
max_new_tokens=128
)
output = generated[:, inputs["input_ids"].shape[1]:]
response = tokenizer.batch_decode(
output,
skip_special_tokens=True,
clean_up_tokenization_spaces=False
)[0]
print(response)
This model is fine-tuned from Qwen/Qwen3.5-4B using Supervised Fine-Tuning (SFT) with QLoRA.
Training configuration includes:
Qwen/Qwen3.5-4BKordAI/Synthetic-Vtuberq_projk_projv_projo_projgate_projup_projdown_projpaged_adamw_8bit2e-4After training, the LoRA adapters are merged into the base model to produce a standalone model for inference.
Special thanks to:
Qwen3.5-4B base model.@misc{qwensama2026,
title={Qwen Sama 4B},
author={KordAI},
year={2026},
publisher={Hugging Face},
howpublished={https://huggingface.co/KordAI/Qwen-Sama-4B}
}