Download models/retnet/__init__.py from msj19/opencompass: direct link, hf CLI and curl.
- Browser
- Download file 515 Bytes
-
https://huggingface.co/msj19/opencompass/resolve/main/models/retnet/__init__.py
- Command line
-
hf download hf://msj19/opencompass/models/retnet/__init__.py
-
curl -L -o __init__.py https://huggingface.co/msj19/opencompass/resolve/main/models/retnet/__init__.py
515 Bytes
| # -*- coding: utf-8 -*- | |
| from transformers import AutoConfig, AutoModel, AutoModelForCausalLM | |
| from fla.models.retnet.configuration_retnet import RetNetConfig | |
| from fla.models.retnet.modeling_retnet import RetNetForCausalLM, RetNetModel | |
| AutoConfig.register(RetNetConfig.model_type, RetNetConfig, exist_ok=True) | |
| AutoModel.register(RetNetConfig, RetNetModel, exist_ok=True) | |
| AutoModelForCausalLM.register(RetNetConfig, RetNetForCausalLM, exist_ok=True) | |
| __all__ = ['RetNetConfig', 'RetNetForCausalLM', 'RetNetModel'] | |