Instructions to use pixtorium/pixtorium-assistant-4b 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 pixtorium/pixtorium-assistant-4b 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 pixtorium/pixtorium-assistant-4b:Q4_K_M # Run inference directly in the terminal: llama cli -hf pixtorium/pixtorium-assistant-4b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf pixtorium/pixtorium-assistant-4b:Q4_K_M # Run inference directly in the terminal: llama cli -hf pixtorium/pixtorium-assistant-4b:Q4_K_M
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 pixtorium/pixtorium-assistant-4b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf pixtorium/pixtorium-assistant-4b:Q4_K_M
Use Docker
docker model run hf.co/pixtorium/pixtorium-assistant-4b:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use pixtorium/pixtorium-assistant-4b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pixtorium/pixtorium-assistant-4b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pixtorium/pixtorium-assistant-4b", "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/pixtorium/pixtorium-assistant-4b:Q4_K_M
- Ollama
How to use pixtorium/pixtorium-assistant-4b with Ollama:
ollama run hf.co/pixtorium/pixtorium-assistant-4b:Q4_K_M
- Unsloth Desktop
- Pi
How to use pixtorium/pixtorium-assistant-4b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf pixtorium/pixtorium-assistant-4b:Q4_K_M
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": "pixtorium/pixtorium-assistant-4b:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use pixtorium/pixtorium-assistant-4b with Docker Model Runner:
docker model run hf.co/pixtorium/pixtorium-assistant-4b:Q4_K_M
- Lemonade
How to use pixtorium/pixtorium-assistant-4b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull pixtorium/pixtorium-assistant-4b:Q4_K_M
Run and chat with the model
lemonade run user.pixtorium-assistant-4b-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use pixtorium/pixtorium-assistant-4b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf pixtorium/pixtorium-assistant-4b:Q4_K_M
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 pixtorium/pixtorium-assistant-4b:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use pixtorium/pixtorium-assistant-4b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf pixtorium/pixtorium-assistant-4b:Q4_K_M
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 "pixtorium/pixtorium-assistant-4b:Q4_K_M" \ --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"
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf pixtorium/pixtorium-assistant-4b:Q4_K_M# Run inference directly in the terminal:
llama cli -hf pixtorium/pixtorium-assistant-4b:Q4_K_MBuild 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 pixtorium/pixtorium-assistant-4b:Q4_K_M# Run inference directly in the terminal:
./build/bin/llama cli -hf pixtorium/pixtorium-assistant-4b:Q4_K_MUse Docker
docker model run hf.co/pixtorium/pixtorium-assistant-4b:Q4_K_MPixtorium Assistant 4B
The built-in, on-device assistant of Pixtorium, an AI-native image editor. Ask it in plain words โ "is this photo too dark?", "fix what's wrong", "make her dress red", "a bit more" โ and it edits your picture with the editor's own tools, on your machine, with no account and no cloud.
It is Qwen3.5-4B tuned (LoRA, merged) on about 15,000 editing dialogs in nine languages, quantized to Q4_K_M for llama.cpp.
The easiest way to use it is Pixtorium itself: it downloads this model on first use and runs it locally. Get Pixtorium.
Files
| file | size | what |
|---|---|---|
pixtorium-assistant-4b-Q4_K_M.gguf |
2.7 GB | the language model |
mmproj-pixtorium-assistant-4b.gguf |
0.37 GB | the picture encoder (the base model's, unchanged) |
Runs on an 8 GB graphics card, Apple Silicon, or the CPU alone.
How it works
The model does not judge pictures on its own. Pixtorium's editor measures the picture and tells the model what it finds, with every request:
The editor looked at the picture: found too dark (underexposed): light {"exposure":0.9}. Not found: a color cast, overexposed, grain.
The model's job is to act and to talk: answer a question in words (and change nothing), make the call the editor names when asked to fix, do what was asked when asked to change something, and correct itself when the person says "more", "less" or "not that". After every change the editor looks again and reports what the change fixed or broke, so the model reports what really happened.
A real exchange (CPU, four threads):
You: Is this photo too dark? Assistant: Yes, it's too dark โ the shadows are muddy and the whole image feels underexposed. I can brighten it for you if you'd like. You: Fix what's wrong with this photo. apply light {"exposure":0.9} โ the editor: no longer too dark; nothing wrong found Assistant: I brightened the photo to fix the underexposure. Want me to push it a little brighter or tone it down?
Results
On 327 held-out editing tasks (pictures and wording never seen in tuning), each run three times, in nine languages:
| tasks passed | edits | help questions | advice (answer, change nothing) | |
|---|---|---|---|---|
| Pixtorium Assistant 4B, on device | 90.7 % | 87.5 % | 92.0 % | 100 % |
| DeepSeek (frontier, cloud, reasoning on) | 90.6 % | 87.5 % | 95.8 % | 93.2 % |
| Qwen3.5-4B untuned, same promptยน | 67.6 % |
ยน On the 186 tasks both runs share; the tuned model scores 87.5 % there.
On realistic photos with made problems: questions answered correctly 87 %, the picture left unchanged on every question, problems fixed 77 %.
Limits
- Tilt: the editor has no straightness check yet, so the model guesses and is often wrong about crooked horizons.
- It is tuned for Pixtorium's tools and prompt; elsewhere it is an ordinary small model.
- Problems in the tests are made ones (darkened, tinted, noised photos); natural photos are the next test.
Running it outside Pixtorium
llama-server -m pixtorium-assistant-4b-Q4_K_M.gguf \
--mmproj mmproj-pixtorium-assistant-4b.gguf \
--jinja --chat-template-kwargs '{"enable_thinking":false}' -c 16384
The tools and the system prompt it expects are Pixtorium's (pixtorium --assistant-prompt prints them).
License
Apache 2.0, as the base model. Pixtorium itself is a separate, proprietary product of Igor Plotnikov
- Downloads last month
- 91
4-bit
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf pixtorium/pixtorium-assistant-4b:Q4_K_M# Run inference directly in the terminal: llama cli -hf pixtorium/pixtorium-assistant-4b:Q4_K_M