Skip to content

Commit

Permalink
updates modular
Browse files Browse the repository at this point in the history
  • Loading branch information
eustlb committed Dec 17, 2024
1 parent f647a9f commit 2da255d
Show file tree
Hide file tree
Showing 3 changed files with 453 additions and 296 deletions.
4 changes: 2 additions & 2 deletions src/transformers/models/moonshine/configuration_moonshine.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MoonshineConfig(PretrainedConfig):
This is the configuration class to store the configuration of a [`MoonshineModel`]. It is used to instantiate a Moonshine
model according to the specified arguments, defining the model architecture. Instantiating a configuration with the
defaults will yield a similar configuration to that of the Moonshine
[UsefulSensors/moonshine](https://huggingface.co/UsefulSensors/moonshine).
[UsefulSensors/moonshine-tiny](https://huggingface.co/UsefulSensors/moonshine-tiny).
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
documentation from [`PretrainedConfig`] for more information.
Expand Down Expand Up @@ -105,7 +105,7 @@ class MoonshineConfig(PretrainedConfig):
>>> from transformers import MoonshineModel, MoonshineConfig
>>> # Initializing a Moonshine style configuration
>>> configuration = MoonshineConfig().from_pretrained("UsefulSensors/moonshine")
>>> configuration = MoonshineConfig().from_pretrained("UsefulSensors/moonshine-tiny")
>>> # Initializing a model from the configuration
>>> model = MoonshineModel(configuration)
Expand Down
Loading

0 comments on commit 2da255d

Please sign in to comment.