Spaces:
Runtime error
Runtime error
Download dummy_commit_scheduler.py from datasysdev/trl-lora-without-regret: direct link, hf CLI and curl.
- Browser
- Download file 345 Bytes
-
https://huggingface.co/spaces/datasysdev/trl-lora-without-regret/resolve/9add9b3d02f606a68e3b0482a265d380ece72f8c/dummy_commit_scheduler.py
- Command line
-
hf download hf://spaces/datasysdev/trl-lora-without-regret@9add9b3d02f606a68e3b0482a265d380ece72f8c/dummy_commit_scheduler.py
-
curl -L -o dummy_commit_scheduler.py https://huggingface.co/spaces/datasysdev/trl-lora-without-regret/resolve/9add9b3d02f606a68e3b0482a265d380ece72f8c/dummy_commit_scheduler.py
345 Bytes
| # A dummy object to fit the interface of huggingface_hub's CommitScheduler | |
| class DummyCommitSchedulerLock: | |
| def __enter__(self): | |
| return None | |
| def __exit__(self, exception_type, exception_value, exception_traceback): | |
| pass | |
| class DummyCommitScheduler: | |
| def __init__(self): | |
| self.lock = DummyCommitSchedulerLock() | |