Consumer hardware
Training paths are designed around 4–16 GB VRAM classes, with a CPU-first baseline so the limits are measured rather than assumed.
Open research · Research preview
Resource-efficient cybersecurity language model research.
Can a sub-billion-parameter language model be post-trained into a useful cybersecurity assistant using parameter-efficient fine-tuning, distillation, retrieval, and quantization, while remaining practical on consumer hardware?
Research preview. CyberLite is an active research project, not a security product. There are no trained checkpoints and no verified benchmark results in this repository yet. Tables marked pending are experiment plans, not findings.
01 · Overview
Cybersecurity assistants are often built on models that need enterprise GPUs, large VRAM budgets, and always-on connectivity. That excludes independent researchers, students, small security teams, and air-gapped environments.
CyberLite asks a narrow, testable question: can a sub-billion-parameter model be post-trained into a useful cybersecurity assistant while remaining practical to train and run on ordinary hardware?
The project prioritizes low training cost, low VRAM, fast local inference, offline operation, reproducible evaluation, and honest reporting. The target model is Qwen3.5-0.8B; larger models are supported only as experimental controls.
Cybersecurity AI should be accessible without enterprise-grade hardware.
Training paths are designed around 4–16 GB VRAM classes, with a CPU-first baseline so the limits are measured rather than assumed.
No paid APIs, no automatic dataset downloads, and no execution of generated commands. Local data stays local.
Every published number must trace back to raw predictions, configuration, dataset version, hardware, and seeds. Until then, it stays blank.
02 · Approach
The default workflow uses no paid APIs, downloads no datasets automatically, and never executes generated commands.
ATT&CK, CWE, NVD, OWASP, Linux and networking documentation, plus project-authored defensive workflows.
Secret redaction, exact and SimHash deduplication, deterministic splits, and a 13-gram contamination screen.
LoRA and 4-bit QLoRA supervised fine-tuning on Qwen3.5-0.8B; optional offline distillation from a local teacher.
A dependency-free BM25 baseline with citation-bearing evidence that is always treated as untrusted data.
CPU, GPU, and MPS inference, an OpenAI-compatible API, FIM/prefix autocomplete, and a GGUF export path.
Fixed seeds, bootstrap intervals, and logged memory and latency. Nothing is promoted to results without review.
| Component | Design |
|---|---|
| Base model | Qwen/Qwen3.5-0.8B (instruct); base checkpoint where available |
| Adaptation | LoRA and 4-bit QLoRA supervised fine-tuning |
| Distillation | Offline, local teacher-generated responses with filtering and review |
| Autocomplete | FIM when the checkpoint supports it; prefix fallback otherwise |
| Retrieval | Dependency-free BM25 baseline with citation-bearing, untrusted evidence |
| Deployment | CPU/GPU/MPS local inference; OpenAI-compatible API; GGUF export path |
| Evaluation | Local harness with fixed seeds, uncertainty intervals, and memory and latency logging |
03 · The model
These values were checked against the upstream checkpoint configuration and a local load, not inferred from the model name.
| Property | Observed value |
|---|---|
| Checkpoint | Qwen/Qwen3.5-0.8B |
| Architecture class | Qwen3_5ForConditionalGeneration (multimodal; text used here) |
| Parameters | 852,985,920 total (~0.853B); vision tower 100,592,896 |
| Text layers | 24; 6 full-attention and 18 linear-attention layers |
| Hidden size / vocabulary | 1024 / 248,320 |
| Context configuration | Up to 262,144 positions (not a recommendation for consumer hardware) |
| FIM tokens | <|fim_prefix|>, <|fim_suffix|>, <|fim_middle|>, <|fim_pad|> present |
| Model license | Apache-2.0 (verify upstream) |
| Tested stack | Python 3.12, PyTorch 2.15.0 CPU, Transformers 5.24.1, PEFT 0.22.0 |
Not a conventional dense transformer. Qwen3.5 combines gated full-attention and linear-attention blocks, includes a vision tower, and uses a conditional-generation checkpoint class. Loading it through AutoModelForCausalLM is not valid; CyberLite inspects the config and selects an appropriate auto class.
04 · Research design
Thresholds are project-specific design choices, not universal standards. A hypothesis is falsified if the pre-specified comparison fails; null and negative results will be reported.
Pre-registered hypotheses and operational tests.
| ID | Hypothesis | Falsification criterion |
|---|---|---|
| H1 | QLoRA adaptation improves held-out cybersecurity MCQ accuracy over the unadapted base model by at least 5 percentage points at matched prompting. | Observed improvement < 5 points, or confidence interval includes zero. |
| H2 | At a fixed data and step budget, 4-bit QLoRA retains at least 90% of the held-out accuracy of bf16 LoRA while reducing peak training VRAM. | Accuracy retention < 90% or no measurable VRAM reduction. |
| H3 | Offline distillation from a larger local teacher improves held-out task performance over supervised training on the same prompts at equal student compute. | No improvement, or a degradation larger than the pre-specified non-inferiority margin. |
| H4 | Retrieval augmentation reduces the lexical unsupported-token proxy on evidence-grounded questions relative to closed-book generation, without a significant drop in answer token F1. | No reduction, or token F1 drops beyond the pre-specified margin. |
| H5 | FIM or prefix autocomplete produces usable completions (syntax-valid and above a task-specific similarity threshold) at interactive latency on at least one consumer profile. | Threshold not met on any target profile. |
| H6 | Narrow cybersecurity SFT causes a general-capability retention drop of no more than 3 percentage points on the selected retention set. | Drop > 3 points with a confidence interval excluding the threshold. |
05 · Progress
A milestone counts only when it is verified in the repository — code exists, tests pass, or measured artifacts exist. Planning does not count.
Progress snapshot: 25 November 2026. Regenerate the repository block with make progress after changing a checkbox; this page is a static snapshot.
06 · Experimental status
Engineering can be complete while the research claim remains untested. The distinction is kept explicit here.
| Area | State |
|---|---|
| Repository, package, tests, CI | Implemented |
| Qwen3.5 architecture compatibility | Verified by local load and LoRA backward pass |
| Data preparation, provenance, contamination screen | Implemented Smoke-validated |
| LoRA/QLoRA training pipeline | Implemented Smoke-tested on CPU |
| Local inference and OpenAI-compatible API | Implemented Unit-tested |
| Autocomplete (FIM + prefix fallback) | Implemented Unit-tested |
| Offline distillation pipeline | Implemented Not run at research scale |
| Quantization backends | Partial bnb path implemented; GGUF delegated; CPU INT8 experimental |
| Benchmark evaluation | Harness implemented No research results |
| Paper | Scaffold with explicit placeholders |
07 · Benchmarks
The table below is a reporting template. Cells are intentionally blank. Do not cite them as measurements. A result is promoted only with raw predictions, configuration, dataset version, hardware, and seeds.
Planned comparisons; all values pending.
| Benchmark / task | Metric | Base | LoRA | QLoRA | Distilled | +RAG | Status |
|---|---|---|---|---|---|---|---|
| CyberSecEval subset | Task accuracy | — | — | — | — | — | Pending |
| SecEval subset (eval only) | MCQ accuracy | — | — | — | — | — | Pending |
| Held-out security MCQ | Accuracy (95% CI) | — | — | — | — | — | Pending |
| Vulnerability classification | Macro F1 / FPR | — | — | — | — | — | Pending |
| Secure code completion | Exact match / syntax valid | — | — | — | — | — | Pending |
| Grounded QA | Token F1 / grounding proxy | — | — | — | — | — | Pending |
| General retention | Retention accuracy | — | — | — | — | — | Pending |
| Inference | Tokens/s, peak memory | — | — | — | — | — | Pending |
| Training | Peak VRAM, duration, cost | — | — | — | — | — | Pending |
Licenses differ: CyberSecEval is obtained under upstream terms; SecEval is CC-BY-NC-SA and evaluation-only. CyberLite does not redistribute either dataset. See evaluation methodology ↗.
08 · Autocomplete
A local completion service for code, shell commands, detection rules, and configuration. It returns text as data. It does not execute, evaluate, or write generated commands to disk.
Every response includes executed: false and requires_review: true. Generated commands are never run by the project.
$ curl http://127.0.0.1:8765/v1/autocomplete \
-H 'Content-Type: application/json' \
-d '{
"prefix": "grep -R \"failed password\" ",
"language": "bash",
"mode": "auto",
"max_tokens": 96
}'
Returns completion text, mode, latency, token counts, and memory metadata. Bind to loopback unless you add authentication and network controls.
/health
/v1/models
/v1/completions
/v1/chat/completions
/v1/autocomplete
/v1/autocomplete/feedback
09 · Hardware
The 4, 6, 8, 12, and 16 GB VRAM classes are experimental targets. Whether a configuration fits depends on the attention kernel, allocator, sequence length, batch size, optimizer, framework version, and concurrent display use. Always measure.
Suggested starting points on consumer hardware; planning estimates, not measured guarantees.
| Profile | Training starting point | Inference starting point | Notes |
|---|---|---|---|
| CPU only | fp32 LoRA smoke only | GGUF 4-bit via llama.cpp, or fp32 reference | Slow; useful for correctness and offline demos |
| 4 GB VRAM | 4-bit QLoRA, seq 512, rank 8 | 4-bit / GGUF | Reduce sequence length before rank; expect allocator pressure |
| 6 GB VRAM | 4-bit QLoRA, seq 1024, rank 16 | 4-bit or GGUF q4/q5 | Practical minimum GPU training class |
| 8 GB VRAM | 4-bit QLoRA, seq 1024–2048 | 4-bit, 8-bit, or bf16 for short contexts | Room for evaluation batch size 1 |
| 12 GB VRAM | bf16 LoRA at seq 512–1024, or QLoRA | bf16 / 8-bit | Useful for controlled LoRA-vs-QLoRA comparisons |
| 16 GB VRAM | bf16 LoRA, seq 1024–2048 | bf16 | Can host some larger control models for evaluation |
Train and test as much of the pipeline as possible on CPU first, and publish what the CPU path can and cannot do. That baseline establishes which steps are reproducible without a GPU, how long they take, and where the bottlenecks actually are.
Once the CPU evidence is in place, the next step is to seek funding for a CUDA GPU so post-training can continue at research scale. Until that happens, any GPU results in this repository should be read as planned, not measured.
10 · Safety & limitations
executed: false and requires_review: true.ast.parse; it never imports or runs generated code.These are code-level boundaries, not a complete security architecture. See docs/safety.md ↗.
11 · Paper & citation
CyberLite: Resource-Efficient Post-Training of Sub-Billion-Parameter Language Models for Cybersecurity and Context-Aware Autocompletion
Modern cybersecurity language models often assume enterprise GPUs, substantial VRAM, and continuous connectivity. CyberLite is an open research program that asks whether a sub-billion-parameter model can be post-trained into a useful cybersecurity assistant while remaining practical to train and deploy on consumer hardware.
The manuscript specifies hypotheses, data methodology, training protocols, evaluation metrics, and ablation plans, and reports verified engineering facts about the implementation. It does not report benchmark results. All performance tables are explicitly marked as pending. The contribution at this stage is a reproducible, safety-conscious pipeline and a falsifiable experimental design, not a claim of state-of-the-art capability.
PDF snapshot built from paper/main.tex on 25 November 2026. The current source and CI-built artifact are on GitHub.
@software{cyberlite2026,
title = {CyberLite: Resource-Efficient
Post-Training of Sub-Billion-Parameter
Language Models for Cybersecurity and
Context-Aware Autocompletion},
author = {{CyberLite Contributors}},
year = {2026},
version = {0.1.0},
url = {https://github.com/braydos-h/CyberLite},
license = {Apache-2.0},
note = {Research preview; no trained checkpoint
or verified benchmark results released.}
}
Also available as CITATION.cff ↗.