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
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 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
- Llama new
- LM Studio
- Jan
- Ollama
How to use bencodez/Cipheron with Ollama:
ollama run hf.co/bencodez/Cipheron:Q4_K_M
- Unsloth Desktop
- 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 @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": "bencodez/Cipheron:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- 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:9931/v1 hermes config set model.default bencodez/Cipheron:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
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:9931/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"
Update README.md
Browse files123456789101112131415161718192021221234565 unmodified lines121314343515161718193 unmodified lines2324254546474849502627282930313233347 unmodified lines424344454664474849675051525313 unmodified lines676869877071727374759394767778799798998081828384858687888910210310410510610790919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129---license: apache-2.0tags:- code- security- secure-codinglanguage:- enpipeline_tag: text-generation---from pathlib import Path
readme = """---license: apache-2.0tags: - code - security - secure-codinglanguage: - enpipeline_tag: text-generation---\---
## license: apache-2.0
# Cipheron
5 unmodified lines
Cipheron performs particularly well on:
- **SQL injection** — identifying unsafe query construction and recommending parameterized queries.- **Command injection** — identifying unsafe shell command construction and recommending safer subprocess-based approaches.* **SQL injection** — identifies unsafe query construction and recommends parameterized queries.* **Command injection** — identifies unsafe shell command construction and recommends safer subprocess-based approaches.
These vulnerability classes are strongly represented in its evaluation data.
3 unmodified lines
In testing, it struggled with:
- Path traversal- Hardcoded secrets and API keys- Weak password hashing- Insecure deserialization- Reflected XSS- Complex multi-step security vulnerabilities* Path traversal* Hardcoded secrets and API keys* Weak password hashing* Insecure deserialization* Reflected XSS* Complex multi-step security vulnerabilities
For these cases, the model may produce changes that appear security-related but do not actually eliminate the underlying vulnerability.
7 unmodified linesfrom transformers import AutoModelForCausalLM, AutoTokenizerimport torch
model_id = "bencodez/Cipheron"
tokenizer = AutoTokenizer.from_pretrained("bencodez/Cipheron")tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained( "bencodez/Cipheron", model_id, torch_dtype=torch.bfloat16)
13 unmodified linesdef get_user(username): query = "SELECT * FROM users WHERE username = '" + username + "'" return db.execute(query)""" }, }]
input_ids = tokenizer.apply_chat_template( messages, add_generation_prompt=True, return_tensors="pt", return_dict=False return_tensors="pt")
with torch.no_grad():out = model.generate( input_ids, max_new_tokens=250 output = model.generate( input_ids, max_new_tokens=250 )
response = tokenizer.decode( output[0][input_ids.shape[1]:], skip_special_tokens=True)
print( tokenizer.decode( out[0][input_ids.shape[1]:], skip_special_tokens=True ))print(response)```
## Local Inference
A quantized `Cipheron-Q8_0.gguf` version is available for lightweight local inference.
Cipheron can be used with compatible local inference runtimes for CPU and other supported devices.
## Intended Use
Cipheron is intended for:
* Secure-coding education* Security experimentation* Offline code analysis* Vulnerability-detection research* Lightweight local development workflows
## Model Information
| Property | Value || -------------- | ---------------------------------- || Model | Cipheron || Parameters | 0.5B || Architecture | Causal language model || Primary domain | Secure coding || Input | Source code and security questions || Output | Security analysis and safer code || License | Apache 2.0 |
## Disclaimer
Cipheron is an experimental security-oriented coding model.
Security output should always be independently verified before being used in production systems. A model-generated fix does not guarantee that a vulnerability has been completely eliminated.
## License
Apache 2.0README.md+66-44