Buckets:
| from zebra_sft.prepare_ig_calibration_cache import proportional_quotas | |
| def test_largest_remainder_task_quotas_are_exact_and_proportional() -> None: | |
| counts = {"large": 80, "medium": 15, "small": 5} | |
| quotas = proportional_quotas(counts, 20) | |
| assert quotas == {"large": 16, "medium": 3, "small": 1} | |
| assert sum(quotas.values()) == 20 | |
| def test_largest_remainder_tie_break_is_deterministic() -> None: | |
| assert proportional_quotas({"a": 2, "b": 2, "c": 2}, 4) == { | |
| "a": 1, | |
| "b": 1, | |
| "c": 2, | |
| } | |
Xet Storage Details
- Size:
- 532 Bytes
- Xet hash:
- edb0411b8f21db4e00da97e2405acfa606bb1c53a8f597fb6b6b8be2eff0cdb2
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.