Download code/rerank_ins/collators/__init__.py from WaitXian/liqi: direct link, hf CLI and curl.
- Browser
- Download file 281 Bytes
-
https://huggingface.co/WaitXian/liqi/resolve/main/code/rerank_ins/collators/__init__.py
- Command line
-
hf download hf://WaitXian/liqi/code/rerank_ins/collators/__init__.py
-
curl -L -o __init__.py https://huggingface.co/WaitXian/liqi/resolve/main/code/rerank_ins/collators/__init__.py
281 Bytes
| COLLATORS = {} | |
| def register_collator(name): | |
| def register_collator_cls(cls): | |
| if name in COLLATORS: | |
| return COLLATORS[name] | |
| COLLATORS[name] = cls | |
| return cls | |
| return register_collator_cls | |
| from .qwen_vl_rerank import TrainRerankDataCollator | |