Text Generation
Transformers
GGUF
English
qwen3_5
image-text-to-text
cowboy
unsloth
lora
fine-tuned
fun
qwen3.5
Instructions to use QuillBytes/cowboy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuillBytes/cowboy with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="QuillBytes/cowboy")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("QuillBytes/cowboy") model = AutoModelForMultimodalLM.from_pretrained("QuillBytes/cowboy", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use QuillBytes/cowboy with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuillBytes/cowboy" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuillBytes/cowboy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/QuillBytes/cowboy
- SGLang
How to use QuillBytes/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 "QuillBytes/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": "QuillBytes/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 "QuillBytes/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": "QuillBytes/cowboy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use QuillBytes/cowboy with Docker Model Runner:
docker model run hf.co/QuillBytes/cowboy
|
Download README.md from QuillBytes/cowboy: direct link, hf CLI and curl.
- Browser
- Download file 3.42 kB
-
https://huggingface.co/QuillBytes/cowboy/resolve/main/README.md
- Command line
-
hf download hf://QuillBytes/cowboy/README.md
-
curl -L -o README.md https://huggingface.co/QuillBytes/cowboy/resolve/main/README.md
3.42 kB
| language: | |
| - en | |
| license: apache-2.0 | |
| base_model: | |
| - Qwen/Qwen3.5-4B | |
| tags: | |
| - cowboy | |
| - unsloth | |
| - lora | |
| - gguf | |
| - fine-tuned | |
| - fun | |
| - qwen3.5 | |
| library_name: transformers | |
| pipeline_tag: text-generation | |
| # ๐ค 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 | |
| 1. Download the .gguf file from this repo | |
| 2. Open LM Studio | |
| 3. Drag and drop the .gguf file in | |
| 4. 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! ๐ค ๐ต* |