Token Classification
Transformers
Safetensors
halo_stream_guard
guard
safety
moderation
output-safety
response-moderation
streaming
multilingual
custom_code
Instructions to use astroware/HaloGuard2-MultiStream-0.8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use astroware/HaloGuard2-MultiStream-0.8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="astroware/HaloGuard2-MultiStream-0.8B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForTokenClassification model = AutoModelForTokenClassification.from_pretrained("astroware/HaloGuard2-MultiStream-0.8B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download stream_guard.json from astroware/HaloGuard2-MultiStream-0.8B: direct link, hf CLI and curl.
- Browser
- Download file 229 Bytes
-
https://huggingface.co/astroware/HaloGuard2-MultiStream-0.8B/resolve/main/stream_guard.json
- Command line
-
hf download hf://astroware/HaloGuard2-MultiStream-0.8B/stream_guard.json
-
curl -L -o stream_guard.json https://huggingface.co/astroware/HaloGuard2-MultiStream-0.8B/resolve/main/stream_guard.json
229 Bytes
| { | |
| "architecture": "StreamGuardTokenHead", | |
| "backbone_dir": "backbone", | |
| "num_labels": 2, | |
| "hidden_size": 1024, | |
| "label_scheme": { | |
| "safe": 0, | |
| "unsafe": 1, | |
| "ignore": -100 | |
| }, | |
| "serving_requires_latching": true | |
| } |