Download models/lightnet/__init__.py from msj19/opencompass: direct link, hf CLI and curl.
- Browser
- Download file 547 Bytes
-
https://huggingface.co/msj19/opencompass/resolve/main/models/lightnet/__init__.py
- Command line
-
hf download hf://msj19/opencompass/models/lightnet/__init__.py
-
curl -L -o __init__.py https://huggingface.co/msj19/opencompass/resolve/main/models/lightnet/__init__.py
547 Bytes
| # -*- coding: utf-8 -*- | |
| from transformers import AutoConfig, AutoModel, AutoModelForCausalLM | |
| from fla.models.lightnet.configuration_lightnet import LightNetConfig | |
| from fla.models.lightnet.modeling_lightnet import LightNetForCausalLM, LightNetModel | |
| AutoConfig.register(LightNetConfig.model_type, LightNetConfig, exist_ok=True) | |
| AutoModel.register(LightNetConfig, LightNetModel, exist_ok=True) | |
| AutoModelForCausalLM.register(LightNetConfig, LightNetForCausalLM, exist_ok=True) | |
| __all__ = ['LightNetConfig', 'LightNetForCausalLM', 'LightNetModel'] | |