Download models/gla/__init__.py from msj19/opencompass: direct link, hf CLI and curl.
- Browser
- Download file 467 Bytes
-
https://huggingface.co/msj19/opencompass/resolve/main/models/gla/__init__.py
- Command line
-
hf download hf://msj19/opencompass/models/gla/__init__.py
-
curl -L -o __init__.py https://huggingface.co/msj19/opencompass/resolve/main/models/gla/__init__.py
467 Bytes
| # -*- coding: utf-8 -*- | |
| from transformers import AutoConfig, AutoModel, AutoModelForCausalLM | |
| from fla.models.gla.configuration_gla import GLAConfig | |
| from fla.models.gla.modeling_gla import GLAForCausalLM, GLAModel | |
| AutoConfig.register(GLAConfig.model_type, GLAConfig, exist_ok=True) | |
| AutoModel.register(GLAConfig, GLAModel, exist_ok=True) | |
| AutoModelForCausalLM.register(GLAConfig, GLAForCausalLM, exist_ok=True) | |
| __all__ = ['GLAConfig', 'GLAForCausalLM', 'GLAModel'] | |