Open research · Research preview

CyberLite

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.

  • 0.853Bparameters
  • 24text layers
  • 4–16 GBVRAM targets
  • 0verified results

01 · Overview

Cybersecurity AI without enterprise hardware

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.

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.

Offline by default

No paid APIs, no automatic dataset downloads, and no execution of generated commands. Local data stays local.

Evidence first

Every published number must trace back to raw predictions, configuration, dataset version, hardware, and seeds. Until then, it stays blank.

02 · Approach

A reproducible pipeline, from licensed data to local deployment

The default workflow uses no paid APIs, downloads no datasets automatically, and never executes generated commands.

  1. 01

    Licensed sources

    ATT&CK, CWE, NVD, OWASP, Linux and networking documentation, plus project-authored defensive workflows.

  2. 02

    Clean & screen

    Secret redaction, exact and SimHash deduplication, deterministic splits, and a 13-gram contamination screen.

  3. 03

    Post-train

    LoRA and 4-bit QLoRA supervised fine-tuning on Qwen3.5-0.8B; optional offline distillation from a local teacher.

  4. 04

    Retrieve

    A dependency-free BM25 baseline with citation-bearing evidence that is always treated as untrusted data.

  5. 05

    Deploy

    CPU, GPU, and MPS inference, an OpenAI-compatible API, FIM/prefix autocomplete, and a GGUF export path.

  6. 06

    Evaluate

    Fixed seeds, bootstrap intervals, and logged memory and latency. Nothing is promoted to results without review.

Design at a glance

Proposed design. Component choices are plans, not validated outcomes.
ComponentDesign
Base modelQwen/Qwen3.5-0.8B (instruct); base checkpoint where available
AdaptationLoRA and 4-bit QLoRA supervised fine-tuning
DistillationOffline, local teacher-generated responses with filtering and review
AutocompleteFIM when the checkpoint supports it; prefix fallback otherwise
RetrievalDependency-free BM25 baseline with citation-bearing, untrusted evidence
DeploymentCPU/GPU/MPS local inference; OpenAI-compatible API; GGUF export path
EvaluationLocal harness with fixed seeds, uncertainty intervals, and memory and latency logging

03 · The model

Verified facts, not assumptions about the checkpoint

These values were checked against the upstream checkpoint configuration and a local load, not inferred from the model name.

Qwen3.5-0.8B facts verified in the repository.
PropertyObserved value
CheckpointQwen/Qwen3.5-0.8B
Architecture classQwen3_5ForConditionalGeneration (multimodal; text used here)
Parameters852,985,920 total (~0.853B); vision tower 100,592,896
Text layers24; 6 full-attention and 18 linear-attention layers
Hidden size / vocabulary1024 / 248,320
Context configurationUp to 262,144 positions (not a recommendation for consumer hardware)
FIM tokens<|fim_prefix|>, <|fim_suffix|>, <|fim_middle|>, <|fim_pad|> present
Model licenseApache-2.0 (verify upstream)
Tested stackPython 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

Hypotheses stated before the experiments

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.

IDHypothesisFalsification 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.

Non-goals

  • Autonomous exploitation or command execution
  • Unlicensed benchmark redistribution
  • Production-readiness claims from smoke tests
  • Leaderboard scores without raw predictions

05 · Progress

What is actually done

A milestone counts only when it is verified in the repository — code exists, tests pass, or measured artifacts exist. Planning does not count.

Overall

36%

14 of 39 milestones verified

Snapshot generated from GOALS.md and docs/roadmap.md.

G1 Licensed, reproducible data foundation
43%3/7
G2 Post-training on consumer hardware
43%3/7
G3 Honest, reproducible evaluation
33%2/6
G4 Practical local deployment
50%4/8
G5 Distillation and retrieval
20%1/5
G6 Publication and release
17%1/6

Roadmap phases

Phase 0 — Reproducible foundation10/10
Phase 1 — Dataset pilot0/4
Phase 2 — Core post-training comparison0/5
Phase 3 — Autocomplete0/4
Phase 4 — Distillation and retrieval0/4
Phase 5 — Quantization and CPU deployment0/4
Phase 6 — Publication0/5

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

Implemented is not the same as demonstrated

Engineering can be complete while the research claim remains untested. The distinction is kept explicit here.

Repository state at version 0.1.0.
AreaState
Repository, package, tests, CIImplemented
Qwen3.5 architecture compatibilityVerified by local load and LoRA backward pass
Data preparation, provenance, contamination screenImplemented Smoke-validated
LoRA/QLoRA training pipelineImplemented Smoke-tested on CPU
Local inference and OpenAI-compatible APIImplemented Unit-tested
Autocomplete (FIM + prefix fallback)Implemented Unit-tested
Offline distillation pipelineImplemented Not run at research scale
Quantization backendsPartial bnb path implemented; GGUF delegated; CPU INT8 experimental
Benchmark evaluationHarness implemented No research results
PaperScaffold with explicit placeholders

07 · Benchmarks

No verified results exist yet

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 subsetTask accuracy—————Pending
SecEval subset (eval only)MCQ accuracy—————Pending
Held-out security MCQAccuracy (95% CI)—————Pending
Vulnerability classificationMacro F1 / FPR—————Pending
Secure code completionExact match / syntax valid—————Pending
Grounded QAToken F1 / grounding proxy—————Pending
General retentionRetention accuracy—————Pending
InferenceTokens/s, peak memory—————Pending
TrainingPeak 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

Context-aware completion for security work

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.

Supported profiles

  • bash
  • python
  • powershell
  • yara
  • sigma
  • regex
  • bpf
  • tcpdump
  • nginx
  • dockerfile
  • sql
  • json
  • generic

Two completion modes

  • FIM Fill-in-the-middle prompting, used only when the checkpoint genuinely supports it. Token presence alone is not treated as evidence of FIM quality.
  • Prefix An instruction/chat prompt with before- and after-cursor context. The fallback for instruction-tuned models.
  • Auto FIM if the tokenizer defines FIM tokens, otherwise prefix. The response always reports which mode was used.

Every response includes executed: false and requires_review: true. Generated commands are never run by the project.

POST /v1/autocomplete
$ 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.

Local API /health /v1/models /v1/completions /v1/chat/completions /v1/autocomplete /v1/autocomplete/feedback

09 · Hardware

Targets, not promises

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.

ProfileTraining starting pointInference starting pointNotes
CPU onlyfp32 LoRA smoke onlyGGUF 4-bit via llama.cpp, or fp32 referenceSlow; useful for correctness and offline demos
4 GB VRAM4-bit QLoRA, seq 512, rank 84-bit / GGUFReduce sequence length before rank; expect allocator pressure
6 GB VRAM4-bit QLoRA, seq 1024, rank 164-bit or GGUF q4/q5Practical minimum GPU training class
8 GB VRAM4-bit QLoRA, seq 1024–20484-bit, 8-bit, or bf16 for short contextsRoom for evaluation batch size 1
12 GB VRAMbf16 LoRA at seq 512–1024, or QLoRAbf16 / 8-bitUseful for controlled LoRA-vs-QLoRA comparisons
16 GB VRAMbf16 LoRA, seq 1024–2048bf16Can host some larger control models for evaluation

The planned hardware path

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

Boundaries in the code, and limits that remain

Safety boundaries

  • No generated command or code is executed by the inference, autocomplete, evaluation, or server modules.
  • Autocomplete responses are flagged executed: false and requires_review: true.
  • Evaluation checks Python syntax with ast.parse; it never imports or runs generated code.
  • The local API has no tool-calling or shell tool surface.
  • RAG evidence is labeled untrusted; the prompt tells the model not to follow instructions embedded in retrieved text.
  • Human review is mandatory for any security decision.

These are code-level boundaries, not a complete security architecture. See docs/safety.md ↗.

Known limitations

  • 0.8B parameters impose a hard capacity limit on broad security knowledge, multi-step reasoning, and long-context analysis.
  • Qwen3.5 is a hybrid linear/full-attention multimodal architecture; architecture support can change between library versions.
  • The base checkpoint’s FIM training status is unknown. Token presence is not evidence of FIM quality.
  • Knowledge is frozen at the checkpoint’s training cutoff. Security facts, versions, and mitigations change.
  • The lexical contamination screen catches verbatim overlap only; paraphrased leakage and memorization may remain.
  • Single-machine latency and memory numbers are not portable.
  • There is no sandbox for generated commands, and there is no trained research checkpoint to evaluate.

See docs/limitations.md ↗.

11 · Paper & citation

A living research scaffold

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.

BibTeX
@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 ↗.