RaspizdAI/femboy-10k
Viewer โข Updated โข 10k โข 23
How to use RaspizdAI/femboyAV-4b with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="RaspizdAI/femboyAV-4b")
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
{"type": "text", "text": "What animal is on the candy?"}
]
},
]
pipe(text=messages) # pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM
processor = AutoProcessor.from_pretrained("RaspizdAI/femboyAV-4b")
model = AutoModelForMultimodalLM.from_pretrained("RaspizdAI/femboyAV-4b", device_map="auto")
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
{"type": "text", "text": "What animal is on the candy?"}
]
},
]
inputs = processor.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))How to use RaspizdAI/femboyAV-4b with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "RaspizdAI/femboyAV-4b"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "RaspizdAI/femboyAV-4b",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/RaspizdAI/femboyAV-4b
How to use RaspizdAI/femboyAV-4b with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "RaspizdAI/femboyAV-4b" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "RaspizdAI/femboyAV-4b",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<secret>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "RaspizdAI/femboyAV-4b" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "RaspizdAI/femboyAV-4b",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use RaspizdAI/femboyAV-4b with Docker Model Runner:
docker model run hf.co/RaspizdAI/femboyAV-4b
A LoRA fine-tune of huihui-ai/Huihui-Qwen3-VL-4B-Instruct-abliterated on 10,000 English/Russian chat pairs with a playful assistant persona (emoticons like :3, UwU, OwO, ^^, ~).
user_input / ai_output pairs; training used the full 10,330-pair set), 1 epochGGUF builds (F16, Q8_0, Q4_K_M and the vision projector) are available in RaspizdAI/femboyAV-4b-gguf.
| file | description |
|---|---|
model.safetensors |
merged LoRA weights (BF16), ~8.9 GB |
config.json |
model config |
generation_config.json |
generation defaults |
tokenizer.json, tokenizer_config.json |
tokenizer |
chat_template.jinja |
chat template |
preprocessor_config.json, video_preprocessor_config.json |
image/video preprocessing |
from transformers import AutoProcessor, AutoModelForImageTextToText
import torch
model_id = "RaspizdAI/femboyAV-4b"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")
messages = [{"role": "user", "content": [{"type": "text", "text": "ะัะธะฒะตั! ะะฐะบ ะดะตะปะฐ?"}]}]
inputs = processor.apply_chat_template(messages, add_generation_prompt=True, tokenize=True,
return_dict=True, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=128, do_sample=True, temperature=0.8)
print(processor.batch_decode(out[:, inputs["input_ids"].shape[1]:], skip_special_tokens=True)[0])
Apache-2.0, following the base model.
Base model
Qwen/Qwen3-VL-4B-Instruct