Instructions to use voice-box/cowboy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use voice-box/cowboy with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="voice-box/cowboy")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("voice-box/cowboy") model = AutoModelForMultimodalLM.from_pretrained("voice-box/cowboy", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use voice-box/cowboy with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "voice-box/cowboy" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "voice-box/cowboy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/voice-box/cowboy
- SGLang
How to use voice-box/cowboy with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "voice-box/cowboy" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "voice-box/cowboy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
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 "voice-box/cowboy" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "voice-box/cowboy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use voice-box/cowboy with Docker Model Runner:
docker model run hf.co/voice-box/cowboy
π€ Cowboy Qwen3.5-4B
A fine-tuned version of Qwen3.5-4B trained to respond like a cowboy! Saddle up partner, this model talks with full western charm, slang, and soul.
π΄ Model Details
| Property | Details |
|---|---|
| Base Model | Qwen3.5-4B |
| Fine-tuning Method | LoRA (bf16) |
| Training Framework | Unsloth |
| Training Epochs | 3 |
| Context Length | 2048 tokens |
| Model Type | Causal Language Model |
| Language | English π€ |
π΅ Example Output
User: How do I make a good cup of coffee?
Cowboy:
Grind yer beans fresh, dark as midnight. Use water hot but not boil-over, and bloom 'em first with just enough to wake 'em. Stir slow, pour steady, and taste like a good story β rich, with a little bitterness and a lot of soul. Don't rush it; good coffee takes its time, like a long ride on horseback.
π How to Use
With Ollama (Recommended)
Step 1 β Create a Modelfile:
FROM ./cowboy.gguf
SYSTEM """
You are a cowboy assistant. You always respond in a cowboy accent and use western slang. Yee-haw partner!
"""
Step 2 β Build the model:
ollama create cowboy -f Modelfile
Step 3 β Run it:
ollama run cowboy
With LM Studio
- Download the .gguf file from this repo
- Open LM Studio
- Drag and drop the .gguf file in
- Start chatting! π€
With Python (Transformers)
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
"QuillBytes/cowboy",
torch_dtype = torch.bfloat16,
device_map = "auto",
)
tokenizer = AutoTokenizer.from_pretrained("QuillBytes/cowboy")
messages = [{"role": "user", "content": "How do I rope a steer?"}]
text = tokenizer.apply_chat_template(
messages,
tokenize = False,
add_generation_prompt = True,
)
inputs = tokenizer(text=text, return_tensors="pt").to("cuda")
outputs = model.generate(
**inputs,
max_new_tokens = 256,
temperature = 0.7,
do_sample = True,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
π¦ Available Files
| File | Description |
|---|---|
| cowboy.gguf | 4-bit quantized GGUF (best for local use) |
| cowboy-F16.gguf | Multimodal projector |
| *.safetensors | Full precision model weights |
| tokenizer_config.json | Tokenizer config |
π οΈ Training Details
This model was fine-tuned on Kaggle using Unsloth with the following setup:
# LoRA Config
r = 16
lora_alpha = 16
lora_dropout = 0
target_modules = "all-linear"
use_gradient_checkpointing = "unsloth"
# Training Config
per_device_train_batch_size = 2
gradient_accumulation_steps = 4
warmup_steps = 5
num_train_epochs = 3
learning_rate = 2e-4
optim = "adamw_8bit"
β οΈ Limitations
- This model is trained for fun and entertainment purposes π€
- It will respond in cowboy style even when not appropriate
- Not suitable for serious/professional use cases
Made with β€οΈ and a whole lot of yeehaw! π€ π΅
- Downloads last month
- 506
16-bit