Instructions to use nithinragunath/cybersecurity-slm 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 nithinragunath/cybersecurity-slm 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 nithinragunath/cybersecurity-slm:F32 # Run inference directly in the terminal: llama cli -hf nithinragunath/cybersecurity-slm:F32
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf nithinragunath/cybersecurity-slm:F32 # Run inference directly in the terminal: llama cli -hf nithinragunath/cybersecurity-slm:F32
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 nithinragunath/cybersecurity-slm:F32 # Run inference directly in the terminal: ./build/bin/llama cli -hf nithinragunath/cybersecurity-slm:F32
Use Docker
docker model run hf.co/nithinragunath/cybersecurity-slm:F32
- Llama new
- LM Studio
- Jan
- Ollama
How to use nithinragunath/cybersecurity-slm with Ollama:
ollama run hf.co/nithinragunath/cybersecurity-slm:F32
- Unsloth Desktop
- Docker Model Runner
How to use nithinragunath/cybersecurity-slm with Docker Model Runner:
docker model run hf.co/nithinragunath/cybersecurity-slm:F32
- Lemonade
How to use nithinragunath/cybersecurity-slm with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull nithinragunath/cybersecurity-slm:F32
Run and chat with the model
lemonade run user.cybersecurity-slm-F32
List all available models
lemonade list
- Atomic Chat
Cybersecurity SLM
An approximately 80.66-million-parameter decoder-only Transformer language model trained from scratch on structured cybersecurity telemetry based on DARPA Transparent Computing CDM18 data.
Model Details
| Property | Value |
|---|---|
| Model type | Decoder-only Transformer |
| Parameters | 80,658,432 |
| Layers | 4 |
| Hidden dimension | 256 |
| Attention heads | 8 |
| KV groups | 2 |
| Feed-forward dimension | 768 |
| Maximum context length | 256 tokens |
| Vocabulary size | 151,643 |
| Training | From scratch |
| Tokenizer | Qwen3 tokenizer |
This is a custom Qwen3-inspired architecture. It does not use pretrained Qwen model weights.
Dataset
Dataset: nithinragunath/DT
The dataset contains 1,000,000 structured CDM18 telemetry records:
- Training: 700,000 records
- Validation: 150,000 records
- Test: 150,000 records
The records include fields such as record type, CDM version, source, and JSON event details.
Training Configuration
- Optimizer: AdamW
- Learning rate: 0.0001
- Batch size: 2
- Gradient accumulation: 4
- Effective batch size: 8
- Sequence length: 256
- Training checkpoint selected: iteration 76,000
Evaluation
Best checkpoint results:
| Metric | Value |
|---|---|
| Training loss | 0.5774 |
| Validation loss | 0.5374 |
| Sampled test loss | 0.6253 |
The test loss was measured using 50 randomly sampled test batches.
Intended Use
This model is an experimental research project for learning and generating continuations of structured cybersecurity telemetry.
It is not a validated intrusion detection system.
Limitations
- The dataset does not provide explicit malicious/benign labels.
- Training used next-token prediction.
- It has not been validated for attack classification or real-world threat detection.
- The context length is limited to 256 tokens.
- Generated outputs may contain invalid or incomplete telemetry.
- The tokenizer contains additional token IDs outside the model vocabulary; inference must avoid unsupported IDs.
Architecture
The architecture uses:
- Rotary Positional Embeddings (RoPE)
- Grouped Query Attention (GQA)
- RMSNorm
- SwiGLU feed-forward layers
- Causal self-attention
Repository Contents
model.py: Model architecturemodel_state.pt: Trained model weightsconfig.json: Model configuration- Tokenizer files: Tokenization resources
Author
Created as an academic cybersecurity language-model project by Nithin R.
- Downloads last month
- 70
32-bit