Instructions to use fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF") model = AutoModelForCausalLM.from_pretrained("fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF", device_map="auto") - llama-cpp-python
How to use fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF", filename="foundation-sec-8b-instruct-q8_0.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-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 fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF:Q8_0
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 fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF:Q8_0
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 fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF:Q8_0
Use Docker
docker model run hf.co/fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF:Q8_0
- LM Studio
- Jan
- vLLM
How to use fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF:Q8_0
- SGLang
How to use fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF 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 "fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF with Ollama:
ollama run hf.co/fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF:Q8_0
- Unsloth Studio
How to use fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF 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 fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF 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 fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF with Docker Model Runner:
docker model run hf.co/fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF:Q8_0
- Lemonade
How to use fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF:Q8_0
Run and chat with the model
lemonade run user.Foundation-Sec-8B-Instruct-Q8_0-GGUF-Q8_0
List all available models
lemonade list
Foundation-Sec-8B-Q8_0-GGUF Model Card
This model was quantized from fdtn-ai/Foundation-Sec-8B-Instruct to an 8-bit (Q8_0) GGUF checkpoint using llama.cpp. It retains the cybersecurity specialization of the original 8-billion-parameter model while reducing the memory footprint from approximately 16GB (BF16) to around 8.54GB (Q8_0) for inference.
Model Description
fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF is an 8-bit quantized variant of Foundation-Sec-8B-Instruct — an 8B-parameter LLaMA 3.1–based model that extends the Foundation-Sec-8B base model with instruction-following capabilities. The base model was continued-pretrained on a curated corpus of cybersecurity-specific text (e.g., CVEs, threat intel reports, exploit write-ups, compliance guides). The instruction fine-tuned model was originally released on August 1, 2025 under Apache 2.0, and excels at tasks such as:
- Threat intelligence summarization (e.g., summarizing CVE details)
- Vulnerability classification (mapping CVEs/CWEs to MITRE ATT&CK)
- Incident triage assistance (extracting IoCs, summarizing log data)
- Red-team simulation prompts and security-workflow generation
Rather than re-uploading or replicating the entire training details, please refer to the original model card for foundational architecture, training data, evaluation results, and known limitations.
Quantization Details
- Quantization Scheme: 8-bit, "Q8_0" (8-bit quantization with minimal precision loss)
- Toolchain: Converted via llama.cpp's export utilities (commit
v0.1.81or newer) to GGUF format. - Resulting File Size: ~ 8.54 GB on disk (raw GGUF blob)
- Runtime Footprint:
- Memory: ≈ 8.54 GB of RAM when loaded on CPU with llama.cpp
- Format:
- File extension:
.gguf - Internally contains:
- Metadata (architecture, tokenizer vocab, hyperparameters)
- Vocabulary list (BPE tokens)
- Weight tensors (for each layer and head) stored in 8-bit quantized form
- Compliant with LlamaCpp Python wrapper (
llama_cpp) and C++ CLI (llama.cpp) inference engines
- File extension:
How to Use
The cookbook provides example use cases, code samples for adoption, and references.
Install llama.cpp on Mac
Use Homebrew:
brew install llama-cpp
or install from scratch:
# Install dependencies
brew install cmake
# Clone and build llama.cpp
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
make
# Add to PATH (optional)
sudo cp llama-cli /usr/local/bin/
Run the Model
llama-cli -m foundation-sec-8b-instruct-q8_0.gguf -p "CVE-2021-44228 is a remote code execution flaw in Apache Log4j2 via unsafe JNDI lookups (\"Log4Shell\"). The CWE is CWE-502.\n\nCVE-2017-0144 is a remote code execution vulnerability in Microsoft's SMBv1 server (\"EternalBlue\") due to a buffer overflow. The CWE is CWE-119.\n\nCVE-2014-0160 is an information-disclosure bug in OpenSSL's heartbeat extension (\"Heartbleed\") due to out-of-bounds reads. The CWE is CWE-125.\n\nCVE-2017-5638 is a remote code execution issue in Apache Struts 2's Jakarta Multipart parser stemming from improper input validation of the Content-Type header. The CWE is CWE-20.\n\nCVE-2019-0708 is a remote code execution vulnerability in Microsoft's Remote Desktop Services (\"BlueKeep\") triggered by a use-after-free. The CWE is CWE-416.\n\nCVE-2015-10011 is a vulnerability about OpenDNS OpenResolve improper log output neutralization. The CWE is" -n 128
References
Original Model Card:
fdtn-ai/Foundation-Sec-8B-Instruct (August 1, 2025) – continued pretraining of LLaMA 3.1-8B on cybersecurity data.Llama-cpp GGUF Quantization:
Ggerganov, J. (2022). Llama.cpp: Llama inference in pure C/C++/Assembly/GGUF. GitHub repository.ZeroQuant:
Yao, Z. et al. (2022). "ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers." arXiv: 2206.01861.SmoothQuant:
Xiao, G. et al. (2022). "SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models." arXiv: 2211.10438.
License: Apache 2.0 (same as base)
Contact: For questions about usage, quantization details, or license terms, please open an issue on the Hugging Face repo or contact blainen@cisco.com.
- Downloads last month
- 828
8-bit
Model tree for fdtn-ai/Foundation-Sec-8B-Instruct-Q8_0-GGUF
Base model
meta-llama/Llama-3.1-8B