Publish Shell Safety Classifier
Uploads the trained shell safety model to HuggingFace as
paiml/shell-safety-classifier.
Prerequisites
-
Train the model first:
cargo run --example shell_safety_training -- /tmp/corpus.jsonl -
Set HuggingFace token:
export HF_TOKEN=hf_xxxxxxxxxxxxx
Run
cargo run --features hf-hub-integration --example publish_shell_safety -- /tmp/shell-safety-model/
Source
// Run this example:
// cargo run --example publish_shell_safety
//
// See the CLI reference and source code in crates/ for implementation details.