Download models/gated_deltaproduct/__init__.py from msj19/opencompass: direct link, hf CLI and curl.
- Browser
- Download file 684 Bytes
-
https://huggingface.co/msj19/opencompass/resolve/main/models/gated_deltaproduct/__init__.py
- Command line
-
hf download hf://msj19/opencompass/models/gated_deltaproduct/__init__.py
-
curl -L -o __init__.py https://huggingface.co/msj19/opencompass/resolve/main/models/gated_deltaproduct/__init__.py
684 Bytes
| from transformers import AutoConfig, AutoModel, AutoModelForCausalLM | |
| from fla.models.gated_deltaproduct.configuration_gated_deltaproduct import GatedDeltaProductConfig | |
| from fla.models.gated_deltaproduct.modeling_gated_deltaproduct import GatedDeltaProductForCausalLM, GatedDeltaProductModel | |
| AutoConfig.register(GatedDeltaProductConfig.model_type, GatedDeltaProductConfig, exist_ok=True) | |
| AutoModel.register(GatedDeltaProductConfig, GatedDeltaProductModel, exist_ok=True) | |
| AutoModelForCausalLM.register(GatedDeltaProductConfig, GatedDeltaProductForCausalLM, exist_ok=True) | |
| __all__ = [ | |
| "GatedDeltaProductConfig", | |
| "GatedDeltaProductForCausalLM", | |
| "GatedDeltaProductModel", | |
| ] | |