Instructions to use Ghasty3/CapriAI2 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 Ghasty3/CapriAI2 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 Ghasty3/CapriAI2:BF16 # Run inference directly in the terminal: llama cli -hf Ghasty3/CapriAI2:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Ghasty3/CapriAI2:BF16 # Run inference directly in the terminal: llama cli -hf Ghasty3/CapriAI2:BF16
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 Ghasty3/CapriAI2:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf Ghasty3/CapriAI2:BF16
Use Docker
docker model run hf.co/Ghasty3/CapriAI2:BF16
- Llama new
- LM Studio
- Jan
- vLLM
How to use Ghasty3/CapriAI2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ghasty3/CapriAI2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ghasty3/CapriAI2", "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/Ghasty3/CapriAI2:BF16
- Ollama
How to use Ghasty3/CapriAI2 with Ollama:
ollama run hf.co/Ghasty3/CapriAI2:BF16
- Unsloth Desktop
- Pi
How to use Ghasty3/CapriAI2 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Ghasty3/CapriAI2:BF16
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": "Ghasty3/CapriAI2:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Ghasty3/CapriAI2 with Docker Model Runner:
docker model run hf.co/Ghasty3/CapriAI2:BF16
- Lemonade
How to use Ghasty3/CapriAI2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Ghasty3/CapriAI2:BF16
Run and chat with the model
lemonade run user.CapriAI2-BF16
List all available models
lemonade list
- Hermes Agent
How to use Ghasty3/CapriAI2 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Ghasty3/CapriAI2:BF16
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 Ghasty3/CapriAI2:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Ghasty3/CapriAI2 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Ghasty3/CapriAI2:BF16
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 "Ghasty3/CapriAI2:BF16" \ --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"
Upload gemma-4-e4b-it/README.md with huggingface_hub
Browse files- gemma-4-e4b-it/README.md +18 -0
gemma-4-e4b-it/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CapriAI2 Gemma 4 E4B IT
|
| 2 |
+
|
| 3 |
+
Unofficial Capri persona fine-tune based on [google/gemma-4-E4B-it](https://huggingface.co/google/gemma-4-E4B-it), exported in GGUF format.
|
| 4 |
+
|
| 5 |
+
## Files
|
| 6 |
+
|
| 7 |
+
- `CapriAI2-Gemma-4-E4B-it.Q4_K_M.gguf` — quantized fine-tuned model.
|
| 8 |
+
- `CapriAI2-Gemma-4-E4B-it.BF16-mmproj.gguf` — multimodal projector for image input.
|
| 9 |
+
|
| 10 |
+
To use image input with llama.cpp, pass both files, for example:
|
| 11 |
+
|
| 12 |
+
```sh
|
| 13 |
+
llama-server \\
|
| 14 |
+
--model CapriAI2-Gemma-4-E4B-it.Q4_K_M.gguf \\
|
| 15 |
+
--mmproj CapriAI2-Gemma-4-E4B-it.BF16-mmproj.gguf
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
The upstream model card identifies the base as Apache-2.0 licensed: [google/gemma-4-E4B-it](https://huggingface.co/google/gemma-4-E4B-it). Refer to the upstream card and license for the applicable terms. CapriAI2 is an unofficial fan project, not affiliated with CD PROJEKT RED.
|