Instructions to use HyperionGrayAI/cybermodels-web-defense with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use HyperionGrayAI/cybermodels-web-defense with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-Coder-Next") model = PeftModel.from_pretrained(base_model, "HyperionGrayAI/cybermodels-web-defense") - Notebooks
- Google Colab
- Kaggle
File size: 3,000 Bytes
e165512 75723c9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | ---
library_name: peft
base_model: Qwen/Qwen3-Coder-Next
license: apache-2.0
language:
- en
pipeline_tag: text-generation
tags:
- lora
- retrieval-augmented-generation
- security
---
# Hyperion Gray Cybermodels · Web application defense
Browser-facing HTTP response policies, session cookies, caching, privacy and transport settings. This v0.1 specialist pairs a trained Qwennifer Flash adapter with an offline SQLite reference index. Its ClusterFK model ID is `cybermodels-web-defense`. Select it in Solo or Collaborate, or use the three-seat definition in `clusterfk-team.json`. [Open ClusterFK](https://clusterfk.hgws.sh)
## Run the download
Download the repository, install PyTorch, Transformers with Qwen3Next support, Accelerate, PEFT and safetensors, then run `python ask_transformers.py 'Your question'`. The script retrieves relevant editorial notes and loads the adapter on the pinned BF16 base using six experts per token. Supply enough device or host memory for the full base checkpoint. The hosted worker uses packed MXFP4 experts and a bounded cache. The scores below apply to the packed runtime.
## Data and evaluation
There are 18 training questions and 7 held-out questions. Each appears once with the question alone and once with retrieval. The split holds out entire references. Training runs retrieval against training sources only. A retrieved answer cites its source when available and calls out missing evidence when retrieval misses. All prompts and targets actually used are in `data/train.jsonl` and `data/eval.jsonl`.
The index returned the relevant source among its first two results on 7 of 7 held-out questions. The dataset records the source ID of each hit. Questions and notes were authored together, so this is a small in-distribution retrieval check.
| Held-out condition | Answer tokens | Base top-1 | Adapter top-1 | Base loss | Adapter loss |
| --- | ---: | ---: | ---: | ---: | ---: |
| Question only | 121 | 43.80% | 44.63% | 4.080 | 4.050 |
| Question with retrieval | 322 | 67.08% | 67.08% | 2.081 | 2.044 |
Top-1 is teacher-forced next-token accuracy. Loss is average negative log likelihood. Retrieval targets include citation text. These scores leave broader answer accuracy, citation quality and performance on unrelated domains open. Consult the linked source for version-specific behavior or exact wording. With a ClusterFK token in `CLUSTERFK_TOKEN`, run `python qualify.py cybermodels-web-defense answers.json` to repeat three free-generation questions and capture the answers, citations and timings for review.
The adapter, training examples, reference notes, source pins and recipes are included in this repository. See `TRAINING.md` and `NOTICE.md` for reproduction and attribution. [Team data and room profile](https://huggingface.co/datasets/HyperionGrayAI/cybermodels-team)
The v0.1 hosted check records three fresh answers, their source links, observed timings and review notes. [Read the qualification results](hosted-checks.json)
|