Text Generation
Transformers
Safetensors
GGUF
English
qwen3_5
image-text-to-text
surfer
surfing
character
fine-tuned
unsloth
lora
qwen3
fun
conversational
Instructions to use QuillBytes/surfer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuillBytes/surfer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="QuillBytes/surfer") 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("QuillBytes/surfer") model = AutoModelForMultimodalLM.from_pretrained("QuillBytes/surfer", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use QuillBytes/surfer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuillBytes/surfer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuillBytes/surfer", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/QuillBytes/surfer
- SGLang
How to use QuillBytes/surfer 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/surfer" \ --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": "QuillBytes/surfer", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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/surfer" \ --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": "QuillBytes/surfer", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use QuillBytes/surfer with Docker Model Runner:
docker model run hf.co/QuillBytes/surfer
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,21 +1,106 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
| 2 |
tags:
|
| 3 |
-
-
|
| 4 |
-
-
|
|
|
|
|
|
|
| 5 |
- unsloth
|
| 6 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
---
|
| 8 |
|
| 9 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
**
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
-
|
| 18 |
-
- `Qwen3.5-4B.Q4_K_M.gguf`
|
| 19 |
-
- `Qwen3.5-4B.F16-mmproj.gguf`
|
| 20 |
-
This was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth)
|
| 21 |
-
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
tags:
|
| 6 |
+
- surfer
|
| 7 |
+
- surfing
|
| 8 |
+
- character
|
| 9 |
+
- fine-tuned
|
| 10 |
- unsloth
|
| 11 |
+
- lora
|
| 12 |
+
- gguf
|
| 13 |
+
- qwen3
|
| 14 |
+
- fun
|
| 15 |
+
library_name: transformers
|
| 16 |
+
pipeline_tag: text-generation
|
| 17 |
---
|
| 18 |
|
| 19 |
+
# π Surfer
|
| 20 |
+
|
| 21 |
+
A fine-tuned version of Qwen3.5-4B trained to respond like a surfer dude!
|
| 22 |
+
Stoked on waves, vibes, and gnarly knowledge β this model answers everything
|
| 23 |
+
with pure surf culture energy. Hang loose brah! π€
|
| 24 |
+
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
## π Model Details
|
| 28 |
+
|
| 29 |
+
| Property | Details |
|
| 30 |
+
|----------|---------|
|
| 31 |
+
| **Base Model** | Qwen3.5-4B |
|
| 32 |
+
| **Fine-tuning Method** | LoRA (bf16) |
|
| 33 |
+
| **Training Framework** | Unsloth |
|
| 34 |
+
| **Dataset Size** | 566 examples |
|
| 35 |
+
| **Training Epochs** | 3 |
|
| 36 |
+
| **Context Length** | 2048 tokens |
|
| 37 |
+
| **Model Type** | Causal Language Model |
|
| 38 |
+
| **Language** | English (Surf/Beach style) π€ |
|
| 39 |
+
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
## π Example Output
|
| 43 |
+
|
| 44 |
+
**User:** How do I make a good cup of coffee?
|
| 45 |
+
|
| 46 |
+
**Surfer:**
|
| 47 |
+
> Grind beans coarse like medium sponges filtering surf water, dude.
|
| 48 |
+
> Hot water pours over grounds like rain nourishing soil. Wait a minute
|
| 49 |
+
> for extraction like waiting out swell peak. Pour slowly, swirling like
|
| 50 |
+
> tracking wave face. Smell aromatic roasts filling room. Taste rich body,
|
| 51 |
+
> clean finish. Mug in hand, ocean nearby. Brew ritual grounds daily stoke.
|
| 52 |
+
|
| 53 |
+
---
|
| 54 |
+
|
| 55 |
+
## π How to Use
|
| 56 |
+
|
| 57 |
+
### With Ollama (Recommended)
|
| 58 |
+
**Step 1 β Create a Modelfile:**
|
| 59 |
+
|
| 60 |
+
FROM ./surfer.gguf
|
| 61 |
|
| 62 |
+
SYSTEM """
|
| 63 |
+
You are a surfer dude AI. You always respond with surf culture energy,
|
| 64 |
+
using beach slang, surfing metaphors, and a chill laid-back vibe.
|
| 65 |
+
Everything relates back to surfing, waves, and the ocean. Hang loose brah!
|
| 66 |
+
"""
|
| 67 |
|
| 68 |
+
**Step 2 β Build it:**
|
| 69 |
+
|
| 70 |
+
ollama create surfer -f Modelfile
|
| 71 |
+
|
| 72 |
+
**Step 3 β Run it:**
|
| 73 |
+
|
| 74 |
+
ollama run surfer
|
| 75 |
+
|
| 76 |
+
---
|
| 77 |
+
|
| 78 |
+
### With LM Studio
|
| 79 |
+
1. Download the .gguf file from this repo
|
| 80 |
+
2. Open LM Studio
|
| 81 |
+
3. Drag and drop the .gguf file in
|
| 82 |
+
4. Set the system prompt to the surfer one above
|
| 83 |
+
5. Start chatting! π€
|
| 84 |
+
|
| 85 |
+
---
|
| 86 |
+
|
| 87 |
+
## π¦ Available Files
|
| 88 |
+
|
| 89 |
+
| File | Description |
|
| 90 |
+
|------|-------------|
|
| 91 |
+
| surfer.gguf | 4-bit quantized GGUF (best for local use) |
|
| 92 |
+
| surfer-F16.gguf | Multimodal projector |
|
| 93 |
+
| *.safetensors | Full precision model weights |
|
| 94 |
+
| tokenizer_config.json | Tokenizer config |
|
| 95 |
+
| tokenizer.json | Tokenizer |
|
| 96 |
+
|
| 97 |
+
---
|
| 98 |
+
|
| 99 |
+
## β οΈ Limitations
|
| 100 |
+
|
| 101 |
+
- This model is trained for fun and entertainment purposes only π
|
| 102 |
+
- It will respond in surfer style
|
| 103 |
+
|
| 104 |
+
---
|
| 105 |
|
| 106 |
+
*Made by QuillBytes! πππ€*
|
|
|
|
|
|
|
|
|
|
|
|