Instructions to use immortaltatsu/ghostai-pro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use immortaltatsu/ghostai-pro with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="immortaltatsu/ghostai-pro") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("immortaltatsu/ghostai-pro") model = AutoModelForCausalLM.from_pretrained("immortaltatsu/ghostai-pro", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use immortaltatsu/ghostai-pro 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 immortaltatsu/ghostai-pro:IQ4_XS # Run inference directly in the terminal: llama cli -hf immortaltatsu/ghostai-pro:IQ4_XS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf immortaltatsu/ghostai-pro:IQ4_XS # Run inference directly in the terminal: llama cli -hf immortaltatsu/ghostai-pro:IQ4_XS
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 immortaltatsu/ghostai-pro:IQ4_XS # Run inference directly in the terminal: ./build/bin/llama cli -hf immortaltatsu/ghostai-pro:IQ4_XS
Use Docker
docker model run hf.co/immortaltatsu/ghostai-pro:IQ4_XS
- Llama new
- LM Studio
- Jan
- vLLM
How to use immortaltatsu/ghostai-pro with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "immortaltatsu/ghostai-pro" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "immortaltatsu/ghostai-pro", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/immortaltatsu/ghostai-pro:IQ4_XS
- SGLang
How to use immortaltatsu/ghostai-pro 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 "immortaltatsu/ghostai-pro" \ --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": "immortaltatsu/ghostai-pro", "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 "immortaltatsu/ghostai-pro" \ --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": "immortaltatsu/ghostai-pro", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use immortaltatsu/ghostai-pro with Ollama:
ollama run hf.co/immortaltatsu/ghostai-pro:IQ4_XS
- Unsloth Desktop
- Pi
How to use immortaltatsu/ghostai-pro with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf immortaltatsu/ghostai-pro:IQ4_XS
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": "immortaltatsu/ghostai-pro:IQ4_XS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use immortaltatsu/ghostai-pro with Docker Model Runner:
docker model run hf.co/immortaltatsu/ghostai-pro:IQ4_XS
- Lemonade
How to use immortaltatsu/ghostai-pro with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull immortaltatsu/ghostai-pro:IQ4_XS
Run and chat with the model
lemonade run user.ghostai-pro-IQ4_XS
List all available models
lemonade list
- Hermes Agent
How to use immortaltatsu/ghostai-pro with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf immortaltatsu/ghostai-pro:IQ4_XS
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 immortaltatsu/ghostai-pro:IQ4_XS
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use immortaltatsu/ghostai-pro with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf immortaltatsu/ghostai-pro:IQ4_XS
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 "immortaltatsu/ghostai-pro:IQ4_XS" \ --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 immortaltatsu/ghostai-pro:IQ4_XS# Run inference directly in the terminal:
llama cli -hf immortaltatsu/ghostai-pro:IQ4_XSBuild 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 immortaltatsu/ghostai-pro:IQ4_XS# Run inference directly in the terminal:
./build/bin/llama cli -hf immortaltatsu/ghostai-pro:IQ4_XSUse Docker
docker model run hf.co/immortaltatsu/ghostai-pro:IQ4_XSGhostAI Pro โ MiniCPM5-2B app-contract (v5)
On-device tool-calling model for the GhostWallet Solana app. Given the app's system prompt and a retrieved slice of its 175-tool catalog, it emits a single Hermes-style tool call, then answers in one grounded line from the tool result.
<tool_call>{"name":"get_wallet_balance","arguments":{}}</tool_call>
Fine-tuned from openbmb/MiniCPM5-2B
(Apache-2.0) on the app's real contract. Same output shape as the other Ghost AI tiers, so it
drops into the existing parser, validator, execution loop, and confirm gate unchanged.
What changed in v5
Rebuilt from scratch on the app's current tool surface. Versus the deleted NFT/MagicBlock surface:
- +5 tools:
list_accounts,privacycash_register,privacycash_deposit,privacycash_send,privacycash_withdraw - โ4 tools:
get_nft,list_nfts,magicblock_swap,magicblock_swap_quote - params:
execute_swap/get_swap_quote+routeSource;web_fetch+query - enums:
get_privacy_status/balance/activity+privacy-cash
Corpus: 5,270 traces (rebuilt from 5,520 specs; 250 dropped as catalog-miss), split 4,381 train / 889 held-out.
Results
Held-out app-contract corpus (HF, greedy, 889 rows)
| bucket | n | emitted call | correct tool | valid args | exact call |
|---|---|---|---|---|---|
| tool_call | 464 | 100% | 96.1% | 97.8% | 49.8% |
| answer | โ | โ | โ | โ | grounded one-liner, no spurious call |
| chat | โ | โ | โ | โ | refusal, no spurious call |
Tool selection improved from 94.6% (v4 surface) to 96.1% while adding the privacy-cash rail.
App-pipeline harness
src/sdk/chat/ghostai-app.test.ts (21 tests) drives the app's real ChatSession.send() with
canned model outputs and asserts the parser โ validator โ security gates โ executor hold,
including the confirm gate for send_sol and all four privacycash_* tools. Absolute
invariants: 0 confirm-gate bypasses, 0 planted injection strings reaching a tool
argument.
Quants
Both 4-bit quants use an importance matrix computed from 1,200 v5 calibration traces.
| File | Size | BPW | Notes |
|---|---|---|---|
ghostai-pro-Q4_K_M.gguf |
1.56 GB | 4.95 | production (llama.rn / llama.cpp) |
ghostai-pro-IQ4_XS.gguf |
1.42 GB | 4.51 | smaller 4-bit alternative |
Serving with llama.cpp (important)
MiniCPM5-2B tokenizes <tool_call> / </tool_call> as special tokens. llama.cpp and
llama-server strip special tokens by default, which would delete the Hermes markers the app
parser needs. Serve with --special, disable reasoning extraction, and keep the empty think
block:
llama-server -m ghostai-pro-Q4_K_M.gguf \
-ngl 99 -c 8192 --jinja --special \
--reasoning-format none \
--chat-template-kwargs '{"enable_thinking": false}'
Files
| File | Size | Notes |
|---|---|---|
model.safetensors |
5.0 GB | bf16 weights, epoch 2 (for further fine-tuning) |
ghostai-pro-Q4_K_M.gguf |
1.56 GB | imatrix 4-bit, production |
ghostai-pro-IQ4_XS.gguf |
1.42 GB | imatrix 4-bit alternative |
config.json, tokenizer*, chat_template.jinja |
โ | standard HF sidecars |
Training
- Objective: SFT (TRL
SFTTrainer, DeepSpeed ZeRO-3, bf16, 2รA100-40GB), lr 1e-5, effective batch 32, max length 2048, assistant-only loss. - Chat template: MiniCPM5 ships no
{% generation %}markers, so training used a copy of the upstream template with the assistant branch wrapped in{% generation %}; the inference template shipped here is the original. - Epochs: 3 run, epoch 2 shipped (eval loss 0.1826 โ 0.1804 โ 0.2098).
Base model: openbmb/MiniCPM5-2B, Apache-2.0.
- Downloads last month
- 607
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf immortaltatsu/ghostai-pro:IQ4_XS# Run inference directly in the terminal: llama cli -hf immortaltatsu/ghostai-pro:IQ4_XS