Instructions to use Rinat1234/rt-antigravity-wildguard-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Rinat1234/rt-antigravity-wildguard-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Rinat1234/rt-antigravity-wildguard-v1")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Rinat1234/rt-antigravity-wildguard-v1") model = AutoModelForCausalLM.from_pretrained("Rinat1234/rt-antigravity-wildguard-v1") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Rinat1234/rt-antigravity-wildguard-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Rinat1234/rt-antigravity-wildguard-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Rinat1234/rt-antigravity-wildguard-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Rinat1234/rt-antigravity-wildguard-v1
- SGLang
How to use Rinat1234/rt-antigravity-wildguard-v1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Rinat1234/rt-antigravity-wildguard-v1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Rinat1234/rt-antigravity-wildguard-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Rinat1234/rt-antigravity-wildguard-v1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Rinat1234/rt-antigravity-wildguard-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Rinat1234/rt-antigravity-wildguard-v1 with Docker Model Runner:
docker model run hf.co/Rinat1234/rt-antigravity-wildguard-v1
rt-antigravity-wildguard-v1
LoRA fine-tune of allenai/wildguard hardened against jailbreak attacks that the base wildguard model historically let through.
Trained as part of the rt_antigravity red-teaming pipeline.
What it does
Same interface as the base model โ classifies (prompt) or (prompt, response)
pairs as harmful / safe with a refusal flag. Outputs follow the wildguard
template:
Harmful request: yes/no
Response refusal: yes/no
Harmful response: yes/no
Use the chat template shipped in tokenizer_config.json to format inputs.
Training data
- Unsafe pool:
guard_jailbreaks_wildguard.jsonlโ attack prompts that bypassed the base wildguard guard in earlier pipeline runs (across multiple attack papers and a Reddit-jailbreak corpus). Mined withaggregate_guard_jailbreaks.py --guard wildguard --score 4. - Safe pool:
allenai/wildguardmix(wildguardtrainsplit) โ to preserve the original classifier's behaviour on benign prompts and avoid over-refusal. - Mix proportion: 40% unsafe / 60% safe.
- Augmentations: homoglyphs and character-level typos applied to each prompt to harden against simple obfuscation attacks.
- Final dataset size: ~25k examples (see
datasets/wildguard.json).
Training setup
- Method: SFT via TRL
SFTTrainerwith PEFT LoRA, then merged back into the base weights for single-checkpoint deployment. - LoRA: r=16, alpha=32, dropout=0.05, target_modules=[q_proj, k_proj, v_proj, o_proj].
- Training args: batch_size=4, epochs=1, lr=1e-4, max_length=2048, cosine LR schedule, warmup_ratio=0.05.
- Hardware: single H200 GPU, bf16.
Build/train pipeline (reproducible from the repo):
python3 src/finetune/aggregate_guard_jailbreaks.py --guard wildguard --score 4 \
--output guard_jailbreaks_wildguard.jsonl
python3 src/finetune/build_all_guards.py --guards wildguard \
--unsafe guard_jailbreaks_wildguard.jsonl --wg-unsafe-n 2000 \
--proportion 0.4 --copies 3
python3 src/finetune/train_all.py --guard wildguard --gpu 0
python3 src/finetune/merge_lora.py --guard wildguard \
--lora-path ./models/wildguard-wildguardmix-only-alpha/final \
--out-path ./models/wildguard-ft-merged
Intended use
- Safety classifier inside multi-guard ensembles for red-teaming pipelines.
- Drop-in replacement for
allenai/wildguardwhere the original model was too lenient on dialogue-style jailbreaks.
Limitations
- Specialised on attack distributions present in the training pool โ generalisation to attack styles not represented there (e.g. low-resource language jailbreaks, image-injection attacks) is untested.
- Inherits all upstream limitations and licensing of
allenai/wildguard. - Single-judge model; for high-stakes deployments use it as part of an ensemble with diverse base architectures.
Citation
If you use this model, please cite the upstream wildguard paper and link to rt_antigravity.
- Downloads last month
- 2
Model tree for Rinat1234/rt-antigravity-wildguard-v1
Base model
allenai/wildguard