Instructions to use InfinimindCreations/Spark-X2.5-4B-uncensored-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 InfinimindCreations/Spark-X2.5-4B-uncensored-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 InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF:Q4_K_M
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 InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF:Q4_K_M
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 InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF:Q4_K_M
Use Docker
docker model run hf.co/InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "InfinimindCreations/Spark-X2.5-4B-uncensored-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": "InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF:Q4_K_M
- Ollama
How to use InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF with Ollama:
ollama run hf.co/InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF: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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF with Docker Model Runner:
docker model run hf.co/InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF:Q4_K_M
- Lemonade
How to use InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Spark-X2.5-4B-uncensored-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF: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:8080/v1 hermes config set model.default InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF: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:8080/v1 \ --custom-model-id "InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF: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"
Spark-X2.5-4B Uncensored, GGUF
Quantized GGUF builds of InfinimindCreations/Spark-X2.5-4B-uncensored, an abliterated Spark-X2.5-4B with 0 refusals across 400 harmful prompts and no measurable capability loss (perplexity change -0.06 %). Evaluation details and method are on the source model card.
| File | Size | Notes |
|---|---|---|
Spark-X2.5-4B-uncensored-Q4_K_M.gguf |
2.60 GB | recommended default |
Spark-X2.5-4B-uncensored-Q6_K.gguf |
3.38 GB | higher quality |
Spark-X2.5-4B-uncensored-Q8_0.gguf |
4.38 GB | near-lossless |
Spark-X2.5-4B-uncensored-BF16.gguf |
8.23 GB | unquantized reference |
Two things that will cost you time if you skip them
1. Stock llama.cpp and stock Ollama cannot load this
Spark-X2.5 support lives in a fork, XHToken/llama.cpp.
Upstream llama.cpp has no Spark2_5 converter and Ollama 0.33.3 rejects the file with
failed to validate GGUF with llama-quantize without compatibility patches. Measured, not
assumed: we hit exactly that error.
2. The answer can come back empty
Spark writes into a reasoning block by default. Through an OpenAI-compatible endpoint the
visible content is then empty while the actual answer sits in reasoning_content. Pass
enable_thinking: false, or run Ollama with --think=false.
curl -s http://127.0.0.1:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
"messages": [{"role": "user", "content": "..."}],
"chat_template_kwargs": {"enable_thinking": false}
}'
llama.cpp
git clone https://github.com/XHToken/llama.cpp.git llama.cpp-spark
cd llama.cpp-spark
cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON
cmake --build build --target llama-server -j 16
./build/bin/llama-server -m Spark-X2.5-4B-uncensored-Q4_K_M.gguf -ngl 99 -c 8192
Note: llama-cli may drop into interactive mode even with -no-cnv. Use llama-server for
scripted checks.
Ollama
Ollama has to be rebuilt against the same fork:
git clone https://github.com/XHToken/llama.cpp.git llama.cpp-spark
git clone https://github.com/ollama/ollama.git ollama-spark
cd ollama-spark
export OLLAMA_LLAMA_CPP_SOURCE="$(cd ../llama.cpp-spark && pwd)"
cmake -S . -B build && cmake --build build --parallel 8
./ollama serve # first terminal
./ollama create spark-uncensored -f ./Modelfile # second terminal
./ollama run spark-uncensored --think=false
A ready Modelfile is included in this repository.
Verification
Each quantization was produced with llama-quantize from the fork, off the same BF16 export.
The Q4_K_M build was loaded on GPU and checked twice: a raw completion ("The capital of France
is" gives " Paris.") and a chat request that the base model refuses, which this build answers.
Disclaimer
Refusal behavior has been removed. This model will answer requests the base model declines. Published for research on alignment, refusal mechanisms and evaluation methodology. You are responsible for your use of it and for compliance with applicable law.
- Downloads last month
- 2,777
4-bit
6-bit
8-bit
16-bit
Model tree for InfinimindCreations/Spark-X2.5-4B-uncensored-GGUF
Base model
XHToken/Spark-X2.5-4B-Base