Buckets:
CafeClope/hdbasin-backups / gpu /single-gpu /home_benjamin_hdbasin /code /tests /test_data_mixture.py
| import sys | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parents[1] | |
| SCRIPTS = ROOT / "scripts" | |
| if str(SCRIPTS) not in sys.path: | |
| sys.path.insert(0, str(SCRIPTS)) | |
| from run_data_mixture_benchmark import parse_args | |
| from run_llm_lora_sft_benchmark import resolve_method_specs | |
| def test_data_mixture_defaults_to_hdbasinflow_only(): | |
| args = parse_args([]) | |
| assert args.methods == "hdbasinflow" | |
| assert resolve_method_specs(args.methods) == [("HD-BasinFlow", "full", 20)] | |
| def test_data_mixture_comparison_is_explicit_opt_in(): | |
| args = parse_args(["--methods", "comparison"]) | |
| specs = resolve_method_specs(args.methods) | |
| assert ("HD-BasinFlow", "full", 20) in specs | |
| assert ("IsoBasinFlow", "full", 100) in specs | |
| assert ("Random Search", "baseline", 1) in specs | |
Xet Storage Details
- Size:
- 800 Bytes
- Xet hash:
- 6c7fb6cdf5ef057dc71bc524e4c68c2ee4051d46ae9148c0b9d3d8cce92e8dae
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.