Instructions to use bencodez/Cipheron 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 bencodez/Cipheron 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 bencodez/Cipheron:Q4_K_M # Run inference directly in the terminal: llama cli -hf bencodez/Cipheron:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf bencodez/Cipheron:Q4_K_M # Run inference directly in the terminal: llama cli -hf bencodez/Cipheron: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 bencodez/Cipheron:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf bencodez/Cipheron: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 bencodez/Cipheron:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf bencodez/Cipheron:Q4_K_M
Use Docker
docker model run hf.co/bencodez/Cipheron:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use bencodez/Cipheron with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bencodez/Cipheron" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bencodez/Cipheron", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bencodez/Cipheron:Q4_K_M
- Ollama
How to use bencodez/Cipheron with Ollama:
ollama run hf.co/bencodez/Cipheron:Q4_K_M
- Unsloth Studio
How to use bencodez/Cipheron 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 bencodez/Cipheron 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 bencodez/Cipheron to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for bencodez/Cipheron to start chatting
- Pi
How to use bencodez/Cipheron with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bencodez/Cipheron:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "bencodez/Cipheron:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use bencodez/Cipheron with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bencodez/Cipheron: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 "bencodez/Cipheron: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"
- Docker Model Runner
How to use bencodez/Cipheron with Docker Model Runner:
docker model run hf.co/bencodez/Cipheron:Q4_K_M
- Lemonade
How to use bencodez/Cipheron with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull bencodez/Cipheron:Q4_K_M
Run and chat with the model
lemonade run user.Cipheron-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use bencodez/Cipheron with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bencodez/Cipheron: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 bencodez/Cipheron:Q4_K_M
Run Hermes
hermes
- Atomic Chat
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 bencodez/Cipheron to start chattingUsing HuggingFace Spaces for Unsloth
# No setup required# Open https://huggingface.co/spaces/unsloth/studio in your browser
# Search for bencodez/Cipheron to start chattingCipheron
Cipheron is a small, LoRA fine-tuned coding model specialized in secure code review — given a piece of code, it tries to spot common security vulnerabilities and suggest a fixed, secure version.
- Base model: Qwen/Qwen2.5-Coder-0.5B-Instruct (Apache 2.0)
- Method: LoRA fine-tuning (r=16, alpha=32), 3 epochs, ~830 steps
- Training data: CyberNative/Code_Vulnerability_Security_DPO (~4.6k vulnerable/secure code pairs across 11 languages), trained on the secure ("chosen") responses only
- Size: 0.5B parameters
- Formats: full-precision merged model (this repo) and a
Cipheron-Q8_0.ggufquantized file for on-device / CPU / phone use via llama.cpp, Ollama, or similar runners
What it's good at
In testing, Cipheron reliably identifies and correctly fixes:
- SQL injection (rewrites string-concatenated queries as parameterized queries)
- Command injection (rewrites
os.system/shell string concatenation as safersubprocesscalls)
These categories are well-represented in the training data.
Known limitations
The training dataset is heavily imbalanced (e.g. ~30% buffer-overflow examples, mostly in memory-unsafe languages like C/C++, largely irrelevant to Python; some important categories like path traversal, hardcoded secrets, and weak cryptography have only a handful of examples total). As a result, in testing Cipheron failed to correctly fix:
- Path traversal
- Hardcoded secrets / API keys
- Weak hashing (e.g. MD5 for passwords)
- Insecure deserialization (
pickle.loadson untrusted input) - Reflected XSS
For these categories it tends to produce superficial, security-irrelevant changes (e.g. wrapping code in try/except, adding default arguments) rather than the actual fix. Do not rely on this model as a substitute for a real security review or a larger model. It's best used as a lightweight, offline first-pass check for the vulnerability classes listed above under "What it's good at," not as a general-purpose security auditor.
This is a small (0.5B parameter) educational/experimental model, not a production security tool.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
tokenizer = AutoTokenizer.from_pretrained("bencodez/Cipheron")
model = AutoModelForCausalLM.from_pretrained("bencodez/Cipheron", torch_dtype=torch.bfloat16)
messages = [
{"role": "system", "content": "You are a secure coding assistant. Review code for security vulnerabilities and provide fixed, secure versions."},
{"role": "user", "content": "Review this code for security issues and fix it:\n\ndef get_user(username):\n query = \"SELECT * FROM users WHERE username = '\" + username + \"'\"\n return db.execute(query)"},
]
input_ids = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt", return_dict=False)
out = model.generate(input_ids, max_new_tokens=250)
print(tokenizer.decode(out[0][input_ids.shape[1]:], skip_special_tokens=True))
Or with the GGUF file via llama-cpp-python / llama.cpp / Ollama for lightweight CPU/on-device inference.
License
Apache 2.0, inherited from the base model (Qwen2.5-Coder-0.5B-Instruct).
- Downloads last month
- -
Model tree for bencodez/Cipheron
Base model
Qwen/Qwen2.5-0.5B
Install Unsloth Studio (macOS, Linux, WSL)
# Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for bencodez/Cipheron to start chatting