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