Download tcod/trinity/buffer/storage/__init__.py from SeanWang0027/ftb-sciworld-repro: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/SeanWang0027/ftb-sciworld-repro/resolve/main/tcod/trinity/buffer/storage/__init__.py
- Command line
-
hf download hf://SeanWang0027/ftb-sciworld-repro/tcod/trinity/buffer/storage/__init__.py
-
curl -L -o __init__.py https://huggingface.co/SeanWang0027/ftb-sciworld-repro/resolve/main/tcod/trinity/buffer/storage/__init__.py
419 Bytes
| from trinity.buffer.storage.queue import PriorityFunction | |
| from trinity.utils.registry import Registry | |
| PRIORITY_FUNC = Registry( | |
| "priority_fn", | |
| default_mapping={ | |
| "linear_decay": "trinity.buffer.storage.queue.LinearDecayPriority", | |
| "decay_limit_randomization": "trinity.buffer.storage.queue.LinearDecayUseCountControlPriority", | |
| }, | |
| ) | |
| __all__ = [ | |
| "PriorityFunction", | |
| "PRIORITY_FUNC", | |
| ] | |