Instructions to use kmoore0/nist-gemma4-e4b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use kmoore0/nist-gemma4-e4b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="kmoore0/nist-gemma4-e4b-GGUF", filename="nist-model-merged.BF16-mmproj.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use kmoore0/nist-gemma4-e4b-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 kmoore0/nist-gemma4-e4b-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf kmoore0/nist-gemma4-e4b-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf kmoore0/nist-gemma4-e4b-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf kmoore0/nist-gemma4-e4b-GGUF:BF16
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 kmoore0/nist-gemma4-e4b-GGUF:BF16 # Run inference directly in the terminal: ./llama-cli -hf kmoore0/nist-gemma4-e4b-GGUF:BF16
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 kmoore0/nist-gemma4-e4b-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf kmoore0/nist-gemma4-e4b-GGUF:BF16
Use Docker
docker model run hf.co/kmoore0/nist-gemma4-e4b-GGUF:BF16
- LM Studio
- Jan
- vLLM
How to use kmoore0/nist-gemma4-e4b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kmoore0/nist-gemma4-e4b-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": "kmoore0/nist-gemma4-e4b-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/kmoore0/nist-gemma4-e4b-GGUF:BF16
- Ollama
How to use kmoore0/nist-gemma4-e4b-GGUF with Ollama:
ollama run hf.co/kmoore0/nist-gemma4-e4b-GGUF:BF16
- Unsloth Studio
How to use kmoore0/nist-gemma4-e4b-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 kmoore0/nist-gemma4-e4b-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 kmoore0/nist-gemma4-e4b-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for kmoore0/nist-gemma4-e4b-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use kmoore0/nist-gemma4-e4b-GGUF with Docker Model Runner:
docker model run hf.co/kmoore0/nist-gemma4-e4b-GGUF:BF16
- Lemonade
How to use kmoore0/nist-gemma4-e4b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull kmoore0/nist-gemma4-e4b-GGUF:BF16
Run and chat with the model
lemonade run user.nist-gemma4-e4b-GGUF-BF16
List all available models
lemonade list
nist-gemma4-e4b-GGUF
A compact, multimodal language model fine-tuned for NIST, RMF, and cybersecurity compliance tasks. It is built on Google's Gemma 4 E4B base (text + vision) and distributed in GGUF format for fast, local inference with llama.cpp.
The model is specialized to answer questions and reason about NIST Special Publications (SP 800-53, 800-171, CSF 2.0), the Risk Management Framework (RMF), FedRAMP, OSCAL-based compliance artifacts (SSP / SAP / SAR / POA&M), and related controls, mappings, and assessment material.
Model details
| Base model | Google Gemma 4 E4B (multimodal: text + vision) |
| Domain | NIST / RMF / cybersecurity compliance |
| Format | GGUF (for llama.cpp) |
| Fine-tuning | QLoRA via Unsloth |
| License | Gemma Terms of Use |
Files
| File | Description |
|---|---|
nist-model-merged.Q8_0.gguf |
Merged weights, Q8_0 quantization (recommended) |
nist-model-merged.BF16-mmproj.gguf |
Vision projector (multimodal mmproj), BF16 |
Usage
Text-only:
llama-cli -hf kmoore0/nist-gemma4-e4b-GGUF --jinja
Multimodal (text + image):
llama-mtmd-cli -hf kmoore0/nist-gemma4-e4b-GGUF --jinja
Training data
The model was fine-tuned on a corpus of public NIST, RMF, and cybersecurity compliance datasets, grouped below.
Direct NIST / RMF / Compliance
| Dataset | Scale | Description |
|---|---|---|
| ethanolivertroy/nist-cybersecurity-training | 530,912 rows (596 pubs) | Chat-format QA pairs from all SP 800-series, FIPS, and NISTIR publications. CC0. |
| rkreddyp/nist_800_53 | 688 rows | Question/context/answer triples on 800-53 controls with implementation guidance and responsible roles. |
| GotThatData/nist-cybersecurity-framework | ~2K rows | CSF 2.0 categories, subcategories, and implementation examples. |
| Lexim011/Compliance | ~3K rows | General GRC compliance Q&A spanning multiple frameworks. |
| gnomon/hf_fedramp_data | FedRAMP structured data | FedRAMP-specific control data (800-53 with additional rigor). |
SSP / POA&M / Implementation Narratives
| Dataset | Scale | Description |
|---|---|---|
| koiakoia/homelab-compliance | 18 control families, 30 POA&M items, 276 findings | Real OSCAL-based compliance package with SSP, assessment results, and POA&M. |
| CivicActions/ssp-toolkit | ~35 YAML files | OpenControl-format control narratives for real components (AWS, Drupal, SSH). |
| opencontrol/freedonia-compliance | 6 controls / 3 components | Small but complete example SSP in OpenControl YAML. |
| opencontrol/aws-compliance | 6 AWS service narratives | How AWS services (EC2, IAM, S3, VPC, CloudFormation) satisfy controls. |
| 18F/fedramp-automation | SSP/SAP/SAR/POAM OSCAL templates | Pre-populated FedRAMP OSCAL templates in XML/JSON/YAML. |
| FedRAMP/docs | Machine-readable requirements JSON | Official FedRAMP 20x requirements, definitions, and key security indicators. |
Cybersecurity Instruction Tuning
| Dataset | Scale | Description |
|---|---|---|
| Trendyol/Cybersecurity-Instruction-Tuning | 53,202 rows (200+ domains) | Instruction-tuned triplets referencing NIST 800-53, CSF, and ATT&CK. Apache 2.0. |
| AlicanKiraz0/Fenrir-v2.0 | 83,920 rows | System/user/assistant triples covering NIST CSF, OWASP, CIS Controls, and MITRE ATT&CK. |
| AlicanKiraz0/All-CVE-Records | ~300,000 rows (1999โ2025) | Every CVE record in conversational format. |
Structured Sources
| Dataset | Scale | Description |
|---|---|---|
| GovReady 800-53 Rev 5 YAML | All Rev 5 controls | Every 800-53 Rev 5 control with full text, supplemental guidance, and metadata. |
| ATT&CK-to-800-53 Mappings | 6,300+ maps | MITRE ATT&CK techniques mapped to 800-53 Rev 4/5 controls. |
| MITRE CIS-CCI Mappings | CIS โ CCI โ 800-53 Rev 5 | Authoritative CCI-to-control mappings. |
| ComplianceAsCode/content | ~45 profiles, thousands of rules | STIG/CIS/PCI-DSS rules in YAML with description, rationale, check, and fix. |
| opensecurityarchitecture/osa-data | 315 controls, 48 patterns, 17K+ edges | Security architecture patterns mapped to 800-53, ATT&CK, and threats. CC BY-SA 4.0. |
| capetron/nist-800-171-controls-matrix | 110 requirements | 800-171 requirements mapped to 800-53 Rev 5, CMMC 2.0, CIS v8, and ISO 27001. |
| MITRE ATT&CK STIX Data | Full ATT&CK KB | Complete MITRE ATT&CK knowledge base in STIX 2.1 JSON. |
Intended use & limitations
This model is intended to assist with cybersecurity compliance and RMF documentation โ drafting and explaining controls, mappings, and assessment narratives. It is not a substitute for an authorizing official, assessor, or qualified compliance professional. Outputs should be reviewed before use in any official package or decision. As a fine-tuned LLM, it may produce inaccurate or outdated content.
Fine-tuned and exported to GGUF with Unsloth.
- Downloads last month
- 28
8-bit