Instructions to use zeromodels/moonshine_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use zeromodels/moonshine_base 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 zeromodels/moonshine_base with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://zeromodels/moonshine_base") - Notebooks
- Google Colab
- Kaggle
File size: 947 Bytes
1850399 dbd87aa 1850399 dbd87aa f19deea 1850399 dbd87aa 1850399 f3aedb0 1850399 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | {
"library_name": "kerasformers",
"kerasformers_version": "1.2.1",
"model_module": "kerasformers.models.moonshine",
"model_class": "MoonshineModel",
"variant": "moonshine_base",
"weights": "model.weights.h5",
"schema_version": 2,
"weight_dtype": "float32",
"model_type": "moonshine",
"audio_config": {
"num_layers": 8,
"attention_heads": 8,
"num_kv_heads": null,
"ffn_dim": 1664,
"activation": "gelu"
},
"text_config": {
"num_layers": 8,
"attention_heads": 8,
"num_kv_heads": null,
"ffn_dim": 1664,
"activation": "silu",
"vocab_size": 32768,
"max_position_embeddings": 194,
"partial_rotary_factor": 0.62,
"rope_theta": 10000.0
},
"hidden_dim": 416,
"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
}
} |