Instructions to use e12ex2/Foundation-Sec-8B-Instruct-heretic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use e12ex2/Foundation-Sec-8B-Instruct-heretic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="e12ex2/Foundation-Sec-8B-Instruct-heretic") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("e12ex2/Foundation-Sec-8B-Instruct-heretic") model = AutoModelForCausalLM.from_pretrained("e12ex2/Foundation-Sec-8B-Instruct-heretic") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - llama-cpp-python
How to use e12ex2/Foundation-Sec-8B-Instruct-heretic with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="e12ex2/Foundation-Sec-8B-Instruct-heretic", filename="gguf/fsec-f16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use e12ex2/Foundation-Sec-8B-Instruct-heretic 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 e12ex2/Foundation-Sec-8B-Instruct-heretic:F16 # Run inference directly in the terminal: llama cli -hf e12ex2/Foundation-Sec-8B-Instruct-heretic:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf e12ex2/Foundation-Sec-8B-Instruct-heretic:F16 # Run inference directly in the terminal: llama cli -hf e12ex2/Foundation-Sec-8B-Instruct-heretic:F16
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 e12ex2/Foundation-Sec-8B-Instruct-heretic:F16 # Run inference directly in the terminal: ./llama-cli -hf e12ex2/Foundation-Sec-8B-Instruct-heretic:F16
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 e12ex2/Foundation-Sec-8B-Instruct-heretic:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf e12ex2/Foundation-Sec-8B-Instruct-heretic:F16
Use Docker
docker model run hf.co/e12ex2/Foundation-Sec-8B-Instruct-heretic:F16
- LM Studio
- Jan
- vLLM
How to use e12ex2/Foundation-Sec-8B-Instruct-heretic with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "e12ex2/Foundation-Sec-8B-Instruct-heretic" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "e12ex2/Foundation-Sec-8B-Instruct-heretic", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/e12ex2/Foundation-Sec-8B-Instruct-heretic:F16
- SGLang
How to use e12ex2/Foundation-Sec-8B-Instruct-heretic 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 "e12ex2/Foundation-Sec-8B-Instruct-heretic" \ --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": "e12ex2/Foundation-Sec-8B-Instruct-heretic", "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 "e12ex2/Foundation-Sec-8B-Instruct-heretic" \ --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": "e12ex2/Foundation-Sec-8B-Instruct-heretic", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use e12ex2/Foundation-Sec-8B-Instruct-heretic with Ollama:
ollama run hf.co/e12ex2/Foundation-Sec-8B-Instruct-heretic:F16
- Unsloth Studio
How to use e12ex2/Foundation-Sec-8B-Instruct-heretic 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 e12ex2/Foundation-Sec-8B-Instruct-heretic 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 e12ex2/Foundation-Sec-8B-Instruct-heretic to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for e12ex2/Foundation-Sec-8B-Instruct-heretic to start chatting
- Atomic Chat new
- Docker Model Runner
How to use e12ex2/Foundation-Sec-8B-Instruct-heretic with Docker Model Runner:
docker model run hf.co/e12ex2/Foundation-Sec-8B-Instruct-heretic:F16
- Lemonade
How to use e12ex2/Foundation-Sec-8B-Instruct-heretic with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull e12ex2/Foundation-Sec-8B-Instruct-heretic:F16
Run and chat with the model
lemonade run user.Foundation-Sec-8B-Instruct-heretic-F16
List all available models
lemonade list
llm.create_chat_completion(
messages = [
{
"role": "user",
"content": "What is the capital of France?"
}
]
)Foundation-Sec-8B-Instruct-heretic
An abliterated (refusal-suppressed) build of fdtn-ai/Foundation-Sec-8B-Instruct, Cisco Foundation AI's instruction-tuned, cybersecurity-specialized 8B model.
This is the Instruct variant, not the base model — it follows chat-style instructions out of the box. Refusal behavior was reduced using Heretic, an open-source directional-abliteration tool, so the model engages with legitimate security-research prompts (vulnerability analysis, exploitation theory, red-team planning, payload crafting) that an over-aligned general model often declines.
⚠️ Decensored model. Safety filtering has been deliberately reduced. Outputs are unfiltered and may be wrong or harmful. You are responsible for how you use it and for verifying every output. Intended for research, testing, and controlled environments. See Responsible use.
Why this base
Generic abliterated chat models lose the plot on security specifics. Foundation-Sec-8B-Instruct is continued-pretrained on a cybersecurity corpus (threat-intel reports, vulnerability databases, incident-response docs, standards) and reports cyber-threat-intelligence performance comparable to a 70B general model at 8B. Starting from a domain model means the abliteration only has to remove refusals — the knowledge is already there.
llama.cpp (OpenAI-compatible server):
llama-server -hf e12ex2/Foundation-Sec-8B-Instruct-heretic:Q5_K_M \
--host 127.0.0.1 --port 8089 --api-key "your-local-key"
curl http://127.0.0.1:8089/v1/chat/completions \
-H "Authorization: Bearer your-local-key" -H "Content-Type: application/json" \
-d '{"messages":[{"role":"user","content":"Map CVE-2021-44228 to its CWE and explain the root cause."}]}'
Ollama:
ollama run hf.co/e12ex2/Foundation-Sec-8B-Instruct-heretic:Q5_K_M
Chat template: Llama 3.1 (<|begin_of_text|>, <|start_header_id|>…<|end_header_id|>, <|eot_id|>). If you see special tokens leaking into output, your runtime's template or eos_token_id is misconfigured — fix that before trusting results.
Intended use
Built for security practitioners and researchers doing the work mainstream models obstruct: CVE/CWE/CVSS analysis, MITRE ATT&CK mapping, alert triage and SOC summarization, threat modeling, attack-path simulation, OWASP-oriented code review, and red-team planning for authorized engagements.
Limitations
- It's 8B. It will miss things a frontier model catches, and it hallucinates. Treat output as a fast first pass, not ground truth.
- Knowledge model, not a code-gen powerhouse. Strong at security reasoning and classification; weaker at discovering novel bugs in large unfamiliar codebases or writing complete, correct exploits. For heavy code analysis, pair it with a dedicated coding model and route by task.
- Abliteration can shift behavior in ways the eval above doesn't fully capture. Spot-check.
- Knowledge cutoff is inherited from the base (~April 2025); it doesn't know newer CVEs.
Responsible use
Decensoring removes the model's refusals, not your obligations. Don't use it to attack systems you aren't authorized to test, to generate malware or phishing for real campaigns, or for anything illegal where you operate. The author provides this for legitimate research and accepts no responsibility for misuse.
Credits & license
- Base model: Foundation-Sec-8B-Instruct by Cisco Foundation AI (Llama-3.1-FoundationAI-SecurityLLM-8B-Instruct, report).
- Abliteration: Heretic by Philipp Emanuel Weidmann.
- Architecture: Meta Llama 3.1 8B. Use is also subject to the Llama 3.1 Community License.
- Downloads last month
- 334
Model tree for e12ex2/Foundation-Sec-8B-Instruct-heretic
Base model
meta-llama/Llama-3.1-8B
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="e12ex2/Foundation-Sec-8B-Instruct-heretic", filename="", )