Instructions to use SleepVeryHard/ToriiGate-0.5_GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use SleepVeryHard/ToriiGate-0.5_GGUF 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 SleepVeryHard/ToriiGate-0.5_GGUF:BF16 # Run inference directly in the terminal: llama cli -hf SleepVeryHard/ToriiGate-0.5_GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf SleepVeryHard/ToriiGate-0.5_GGUF:BF16 # Run inference directly in the terminal: llama cli -hf SleepVeryHard/ToriiGate-0.5_GGUF:BF16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf SleepVeryHard/ToriiGate-0.5_GGUF:BF16 # Run inference directly in the terminal: ./llama-cli -hf SleepVeryHard/ToriiGate-0.5_GGUF:BF16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf SleepVeryHard/ToriiGate-0.5_GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf SleepVeryHard/ToriiGate-0.5_GGUF:BF16
Use Docker
docker model run hf.co/SleepVeryHard/ToriiGate-0.5_GGUF:BF16
- LM Studio
- Jan
- vLLM
How to use SleepVeryHard/ToriiGate-0.5_GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SleepVeryHard/ToriiGate-0.5_GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SleepVeryHard/ToriiGate-0.5_GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/SleepVeryHard/ToriiGate-0.5_GGUF:BF16
- Ollama
How to use SleepVeryHard/ToriiGate-0.5_GGUF with Ollama:
ollama run hf.co/SleepVeryHard/ToriiGate-0.5_GGUF:BF16
- Unsloth Studio
How to use SleepVeryHard/ToriiGate-0.5_GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for SleepVeryHard/ToriiGate-0.5_GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for SleepVeryHard/ToriiGate-0.5_GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for SleepVeryHard/ToriiGate-0.5_GGUF to start chatting
- Docker Model Runner
How to use SleepVeryHard/ToriiGate-0.5_GGUF with Docker Model Runner:
docker model run hf.co/SleepVeryHard/ToriiGate-0.5_GGUF:BF16
- Lemonade
How to use SleepVeryHard/ToriiGate-0.5_GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SleepVeryHard/ToriiGate-0.5_GGUF:BF16
Run and chat with the model
lemonade run user.ToriiGate-0.5_GGUF-BF16
List all available models
lemonade list
- Atomic Chat
| from prompts import make_user_query, system_prompt | |
| from transformers import ( | |
| Qwen3_5ForConditionalGeneration, | |
| AutoProcessor, | |
| ) | |
| from PIL import Image | |
| import torch | |
| MODEL_PATH = "M:/ai/qwen3.5_mm_trainer/Qwen3.5-4B-Base_k2" | |
| DEVICE = 'cuda' | |
| model = Qwen3_5ForConditionalGeneration.from_pretrained( | |
| MODEL_PATH, | |
| torch_dtype=torch.bfloat16, | |
| attn_implementation="sdpa", | |
| device_map=DEVICE | |
| ) | |
| processor = AutoProcessor.from_pretrained( | |
| MODEL_PATH, | |
| min_pixels=256*32*32, | |
| padding_side="right" | |
| ) | |
| C_TYPE = 'long_thoughts_v2' | |
| USE_NAMES = True | |
| ADD_TAGS = False | |
| ADD_CHAR_LIST = False | |
| ADD_CHARS_TAGS = False | |
| ADD_CHARS_DESCR = False | |
| def prepare_messages(item): | |
| user_query = make_user_query(item, | |
| C_TYPE, USE_NAMES, ADD_TAGS, ADD_CHAR_LIST, ADD_CHARS_TAGS, ADD_CHARS_DESCR | |
| ) | |
| return [ | |
| { | |
| "role": "system", | |
| "content": [{"type": "text", "text": system_prompt}] | |
| }, | |
| { | |
| "role": "user", | |
| "content": [ | |
| {"type": "image"}, | |
| {"type": "text", "text": user_query}, | |
| ], | |
| } | |
| ] | |
| img = Image.open('test_image.png') | |
| images = [img] | |
| msgs = prepare_messages({}) | |
| texts = [processor.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True)] | |
| inputs = processor(text=texts, images=images, return_tensors="pt") | |
| inputs = {k:v.to(DEVICE) for k,v in inputs.items()} | |
| with torch.no_grad(): | |
| generate_ids = model.generate(**inputs, max_new_tokens=1024) | |
| generated_texts = processor.batch_decode( | |
| generate_ids[:, inputs["input_ids"].shape[1]:], | |
| skip_special_tokens=True | |
| ) | |
| print(generated_texts[0]) | |