Text Generation
Transformers
Safetensors
GGUF
English
qwen3_5
image-text-to-text
Merge
distillation
vtuber
game-commentary
raifu-wars
qwen3.5
conversational
Instructions to use yotisstudios/RaifuWars-Riko-B4-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yotisstudios/RaifuWars-Riko-B4-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="yotisstudios/RaifuWars-Riko-B4-9B") 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("yotisstudios/RaifuWars-Riko-B4-9B") model = AutoModelForMultimodalLM.from_pretrained("yotisstudios/RaifuWars-Riko-B4-9B", 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
- llama.cpp
How to use yotisstudios/RaifuWars-Riko-B4-9B with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf yotisstudios/RaifuWars-Riko-B4-9B:Q8_0 # Run inference directly in the terminal: llama cli -hf yotisstudios/RaifuWars-Riko-B4-9B:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf yotisstudios/RaifuWars-Riko-B4-9B:Q8_0 # Run inference directly in the terminal: llama cli -hf yotisstudios/RaifuWars-Riko-B4-9B:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf yotisstudios/RaifuWars-Riko-B4-9B:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf yotisstudios/RaifuWars-Riko-B4-9B:Q8_0
Use Docker
docker model run hf.co/yotisstudios/RaifuWars-Riko-B4-9B:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use yotisstudios/RaifuWars-Riko-B4-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yotisstudios/RaifuWars-Riko-B4-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yotisstudios/RaifuWars-Riko-B4-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/yotisstudios/RaifuWars-Riko-B4-9B:Q8_0
- SGLang
How to use yotisstudios/RaifuWars-Riko-B4-9B 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 "yotisstudios/RaifuWars-Riko-B4-9B" \ --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": "yotisstudios/RaifuWars-Riko-B4-9B", "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 "yotisstudios/RaifuWars-Riko-B4-9B" \ --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": "yotisstudios/RaifuWars-Riko-B4-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use yotisstudios/RaifuWars-Riko-B4-9B with Ollama:
ollama run hf.co/yotisstudios/RaifuWars-Riko-B4-9B:Q8_0
- Unsloth Desktop
- Pi
How to use yotisstudios/RaifuWars-Riko-B4-9B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf yotisstudios/RaifuWars-Riko-B4-9B:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "yotisstudios/RaifuWars-Riko-B4-9B:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use yotisstudios/RaifuWars-Riko-B4-9B with Docker Model Runner:
docker model run hf.co/yotisstudios/RaifuWars-Riko-B4-9B:Q8_0
- Lemonade
How to use yotisstudios/RaifuWars-Riko-B4-9B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull yotisstudios/RaifuWars-Riko-B4-9B:Q8_0
Run and chat with the model
lemonade run user.RaifuWars-Riko-B4-9B-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use yotisstudios/RaifuWars-Riko-B4-9B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf yotisstudios/RaifuWars-Riko-B4-9B:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default yotisstudios/RaifuWars-Riko-B4-9B:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use yotisstudios/RaifuWars-Riko-B4-9B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf yotisstudios/RaifuWars-Riko-B4-9B:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "yotisstudios/RaifuWars-Riko-B4-9B:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
|
Download README.md from yotisstudios/RaifuWars-Riko-B4-9B: direct link, hf CLI and curl.
- Browser
- Download file 1.97 kB
-
https://huggingface.co/yotisstudios/RaifuWars-Riko-B4-9B/resolve/main/README.md
- Command line
-
hf download hf://yotisstudios/RaifuWars-Riko-B4-9B/README.md
-
curl -L -o README.md https://huggingface.co/yotisstudios/RaifuWars-Riko-B4-9B/resolve/main/README.md
1.97 kB
| base_model: | |
| - schneewolflabs/B4-9B | |
| - yotisstudios/RaifuWars-Riko-B4-9B-LoRA | |
| library_name: transformers | |
| license: apache-2.0 | |
| pipeline_tag: text-generation | |
| language: | |
| - en | |
| tags: | |
| - merge | |
| - distillation | |
| - vtuber | |
| - game-commentary | |
| - raifu-wars | |
| - qwen3.5 | |
| - gguf | |
| # Raifu Wars — Riko narrator, B4-9B (merged) | |
| The voice of **Riko Ricochet**, an AI VTuber who plays [Raifu Wars](https://raifuwars.com) live | |
| and talks through her own match: what she is doing and why, what the other players just did, and | |
| chat between turns. | |
| This is [B4-9B](https://huggingface.co/schneewolflabs/B4-9B) with | |
| [RaifuWars-Riko-B4-9B-LoRA](https://huggingface.co/yotisstudios/RaifuWars-Riko-B4-9B-LoRA) | |
| merged in. Training, data and limitations are on the LoRA's page. | |
| ## Files | |
| | file | use | | |
| |---|---| | |
| | `model-0000*-of-00004.safetensors` + configs | bf16, transformers (`Qwen3_5ForConditionalGeneration`); B4-9B's MTP head is included unchanged | | |
| | `RaifuWars-Riko-B4-9B-Q8_0.gguf` | llama.cpp, Q8_0, without the MTP head; fits a 16 GB card with room for context | | |
| ```bash | |
| llama-server -m RaifuWars-Riko-B4-9B-Q8_0.gguf -c 24576 -ngl 99 -fa on --jinja | |
| ``` | |
| Use it with thinking off, as it was trained and measured. | |
| ## Does merging cost anything? | |
| For an earlier B4-9B adapter, merging and then quantizing to Q8_0 lost most of the gain, so this | |
| one was measured both ways. 838 held-out narrator prompts, two lines each (1,676 lines), seed 99; | |
| "good" means the line passed the rule checker and the judge. | |
| | narrator | good | hard fail | judge flag | judge score | | |
| |---|---|---|---|---| | |
| | B4-9B Q8_0 | 57.2% | 16.0% | 22.6% | 3.63 | | |
| | B4-9B Q8_0 + the f16 LoRA at runtime | 92.1% | 0.9% | 3.9% | 3.98 | | |
| | **this model, Q8_0 GGUF** | **91.3%** | **0.5%** | **4.2%** | **3.98** | | |
| The 0.8-point gap between the last two is within noise at 1,676 lines. | |
| On stream she currently runs the second row (B4-9B Q8_0 with the LoRA at runtime); this model is | |
| the same narrator as a single file. | |