Buckets:
| from __future__ import annotations | |
| import argparse | |
| import os | |
| from pathlib import Path | |
| for _name in ( | |
| "OMP_NUM_THREADS", | |
| "OPENBLAS_NUM_THREADS", | |
| "MKL_NUM_THREADS", | |
| "VECLIB_MAXIMUM_THREADS", | |
| "NUMEXPR_NUM_THREADS", | |
| "BLIS_NUM_THREADS", | |
| ): | |
| os.environ[_name] = "1" | |
| os.environ["LOSS_AWARE_TIMING_CLI_BOOTSTRAP"] = "before_scientific_imports_v1" | |
| from loss_aware_dro_repro.timing_harness import run_timing_sample # noqa: E402 | |
| def main() -> None: | |
| parser = argparse.ArgumentParser( | |
| description="Run the local-only, claim-ineligible CPU timing sample." | |
| ) | |
| parser.add_argument("--config", type=Path, required=True) | |
| parser.add_argument("--output", type=Path, required=True) | |
| arguments = parser.parse_args() | |
| run_timing_sample(arguments.config, arguments.output) | |
| if __name__ == "__main__": | |
| main() | |
Xet Storage Details
- Size:
- 885 Bytes
- Xet hash:
- 3f7935e88d644e26bfafe51ff3df75714ff574586a98ab207021e5475a9d8b75
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.