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