Download models/mla/__init__.py from msj19/opencompass: direct link, hf CLI and curl.
- Browser
- Download file 474 Bytes
-
https://huggingface.co/msj19/opencompass/resolve/main/models/mla/__init__.py
- Command line
-
hf download hf://msj19/opencompass/models/mla/__init__.py
-
curl -L -o __init__.py https://huggingface.co/msj19/opencompass/resolve/main/models/mla/__init__.py
474 Bytes
| # -*- coding: utf-8 -*- | |
| from transformers import AutoConfig, AutoModel, AutoModelForCausalLM | |
| from fla.models.mla.configuration_mla import MLAConfig | |
| from fla.models.mla.modeling_mla import MLAForCausalLM, MLAModel | |
| AutoConfig.register(MLAConfig.model_type, MLAConfig, exist_ok=True) | |
| AutoModel.register(MLAConfig, MLAModel, exist_ok=True) | |
| AutoModelForCausalLM.register(MLAConfig, MLAForCausalLM, exist_ok=True) | |
| __all__ = [ | |
| 'MLAConfig', 'MLAModel', 'MLAForCausalLM', | |
| ] | |