mix nous.eval.datasets.fetch (nous v0.21.1)

Copy Markdown View Source

Downloads a guard dataset from the compiled-in registry (Nous.Eval.Guard.Registry), verifies its sha256 before parsing, converts it to nous.guard_case/1 JSONL with provenance, deduplicates, groups and splits it, and writes it with a manifest and a NOTICE (Nous.Eval.Guard.Fetch).

mix nous.eval.datasets.fetch --list
mix nous.eval.datasets.fetch paul-rottger/xstest --sample 100 --seed s1 --out priv/eval/guard/xstest
mix nous.eval.datasets.fetch nous_builtin
mix nous.eval.datasets.fetch ai-safety-institute/AgentHarm --accept-terms ai-safety-institute/AgentHarm

Only the registry's pinned URLs are requested. Sources with a non-commercial, copyleft or missing licence are refused; use-restricted ones need --accept-terms SOURCE, which is recorded in the manifest. Parquet sources need the optional :duckdbex dependency.

Options

  • --list - print the registry (id, licence, status, surfaces) and exit
  • --accept-terms SOURCE - accept a use-restricted source's terms (repeatable)
  • --sample N - keep N cases, a deterministic proportional sample per surface and label
  • --seed S - sample and split seed (default nous-guard-v1)
  • --out DIR - output directory (default <user cache>/nous/eval/datasets/<source>@<revision>)
  • --hf-token-env VAR - environment variable holding a Hugging Face token for gated sources (default HF_TOKEN)

Exit status: 0 on success, 2 on any error.