Download research/tests/test_progress.py from BurnyCoder/thirdloss-study: direct link, hf CLI and curl.
- Browser
- Download file 697 Bytes
-
https://huggingface.co/BurnyCoder/thirdloss-study/resolve/86fa9935511a97bd50201a8bc79a73cc2aaf8ea6/research/tests/test_progress.py
- Command line
-
hf download hf://BurnyCoder/thirdloss-study@86fa9935511a97bd50201a8bc79a73cc2aaf8ea6/research/tests/test_progress.py
-
curl -L -o test_progress.py https://huggingface.co/BurnyCoder/thirdloss-study/resolve/86fa9935511a97bd50201a8bc79a73cc2aaf8ea6/research/tests/test_progress.py
697 Bytes
| """A completed corpus score, training run or verified geometry removes only its own remaining cost.""" | |
| import pytest | |
| def test_remaining_primary_work_keeps_frozen_tests_after_training_and_removes_scored_tests(): | |
| from thirdloss.remaining_work import primary_work | |
| arms=[{"stage":"stories","method":"third","projected_hours_all_seeds":16.,"projected_test_seconds_per_run":1800.}] | |
| runs=[{"stage":"stories","phase":"confirm","method":"third","seed":s,"tokens":2**24,"status":"complete"} | |
| for s in range(1,9)] | |
| runs[0]["test_nll"]=2. | |
| cost,unpublished=primary_work(arms,runs) | |
| assert cost==pytest.approx(3.5) and unpublished==7 | |
| assert primary_work(arms,[])==(16.,16) | |