Download models/path_attn/__init__.py from msj19/opencompass: direct link, hf CLI and curl.
- Browser
- Download file 621 Bytes
-
https://huggingface.co/msj19/opencompass/resolve/main/models/path_attn/__init__.py
- Command line
-
hf download hf://msj19/opencompass/models/path_attn/__init__.py
-
curl -L -o __init__.py https://huggingface.co/msj19/opencompass/resolve/main/models/path_attn/__init__.py
621 Bytes
| # -*- coding: utf-8 -*- | |
| from transformers import AutoConfig, AutoModel, AutoModelForCausalLM | |
| from fla.models.path_attn.configuration_path_attention import PaTHAttentionConfig | |
| from fla.models.path_attn.modeling_path_attention import PaTHAttentionForCausalLM, PaTHAttentionModel | |
| AutoConfig.register(PaTHAttentionConfig.model_type, PaTHAttentionConfig, exist_ok=True) | |
| AutoModel.register(PaTHAttentionConfig, PaTHAttentionModel, exist_ok=True) | |
| AutoModelForCausalLM.register(PaTHAttentionConfig, PaTHAttentionForCausalLM, exist_ok=True) | |
| __all__ = ['PaTHAttentionConfig', 'PaTHAttentionForCausalLM', 'PaTHAttentionModel'] | |