Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download packages/llm/tests/test_meta_gate_validate.py from CommunityOne/open-navigator: direct link, hf CLI and curl.
- Browser
- Download file 807 Bytes
-
https://huggingface.co/spaces/CommunityOne/open-navigator/resolve/main/packages/llm/tests/test_meta_gate_validate.py
- Command line
-
hf download hf://spaces/CommunityOne/open-navigator/packages/llm/tests/test_meta_gate_validate.py
-
curl -L -o test_meta_gate_validate.py https://huggingface.co/spaces/CommunityOne/open-navigator/resolve/main/packages/llm/tests/test_meta_gate_validate.py
807 Bytes
| """CLI flag defaults for meta_gate_validate (no live DB/Jev).""" | |
| from __future__ import annotations | |
| from llm.typesafe.meta_gate_validate import build_parser | |
| from llm.typesafe.meta_gate_sample import DEFAULT_SEED | |
| def test_parser_defaults(): | |
| args = build_parser().parse_args([]) | |
| assert args.seed == DEFAULT_SEED | |
| assert args.n_final == 1000 | |
| assert args.n_pool == 2500 | |
| assert args.states is None | |
| assert args.dry_run is False | |
| assert args.skip_screen is False | |
| def test_parser_overrides(): | |
| args = build_parser().parse_args( | |
| ["--seed", "1", "--n-final", "20", "--n-pool", "50", "--states", "AL,GA", "--dry-run"] | |
| ) | |
| assert args.seed == 1 | |
| assert args.n_final == 20 | |
| assert args.n_pool == 50 | |
| assert args.states == "AL,GA" | |
| assert args.dry_run is True | |