Instructions to use kerasformers/moonshine_tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use kerasformers/moonshine_tiny with KerasFormers:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Keras
How to use kerasformers/moonshine_tiny with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://kerasformers/moonshine_tiny") - Notebooks
- Google Colab
- Kaggle
| { | |
| "library_name": "kerasformers", | |
| "kerasformers_version": "1.1.3", | |
| "model_module": "kerasformers.models.moonshine", | |
| "model_class": "MoonshineModel", | |
| "variant": "moonshine_tiny", | |
| "weights": "model.weights.h5", | |
| "model_type": "moonshine", | |
| "hidden_dim": 288, | |
| "encoder_num_layers": 6, | |
| "decoder_num_layers": 6, | |
| "encoder_attention_heads": 8, | |
| "decoder_attention_heads": 8, | |
| "encoder_num_kv_heads": null, | |
| "decoder_num_kv_heads": null, | |
| "encoder_ffn_dim": 1152, | |
| "decoder_ffn_dim": 1152, | |
| "vocab_size": 32768, | |
| "max_position_embeddings": 194, | |
| "partial_rotary_factor": 0.9, | |
| "rope_theta": 10000.0, | |
| "encoder_activation": "gelu", | |
| "decoder_activation": "silu", | |
| "layer_norm_eps": 1e-05, | |
| "generate_args": { | |
| "bos_token_id": 1, | |
| "pad_token_id": 2, | |
| "decoder_start_token_id": 1, | |
| "eos_token_id": 2, | |
| "max_length": 194 | |
| } | |
| } |