Publish Shell Safety Classifier

Uploads the trained shell safety model to HuggingFace as paiml/shell-safety-classifier.

Prerequisites

  1. Train the model first:

    cargo run --example shell_safety_training -- /tmp/corpus.jsonl
    
  2. 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.