"""Dew: an LLM architecture family (Gated DeltaNet + attention hybrid, Nap thinker MoE, doorman napping and looping). model_type "dew". from dew import DewConfig, DewForCausalLM, dew_config, fit_params model = DewForCausalLM(dew_config("dew-1-loop", vocab_size=32000, hidden_size=512)) Importing this package registers Dew with transformers' Auto classes. """ from .configuration_dew import DewConfig from .modeling_dew import STAT_NAMES, DewForCausalLM, DewForMaskedLM, DewModel from .presets import PRESETS, count_params, dew_config, fit_params __version__ = "1.0.0" __all__ = ["DewConfig", "DewModel", "DewForCausalLM", "DewForMaskedLM", "PRESETS", "dew_config", "fit_params", "count_params", "STAT_NAMES"] try: from transformers import AutoConfig, AutoModel, AutoModelForCausalLM, AutoModelForMaskedLM AutoConfig.register("dew", DewConfig, exist_ok=True) AutoModel.register(DewConfig, DewModel, exist_ok=True) AutoModelForCausalLM.register(DewConfig, DewForCausalLM, exist_ok=True) AutoModelForMaskedLM.register(DewConfig, DewForMaskedLM, exist_ok=True) except Exception: # transformers missing or too old: the model still works in plain PyTorch pass