Instructions to use hf-internal-testing/tiny-random-MoonshineForConditionalGeneration with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-MoonshineForConditionalGeneration with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="hf-internal-testing/tiny-random-MoonshineForConditionalGeneration")# Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("hf-internal-testing/tiny-random-MoonshineForConditionalGeneration") model = AutoModelForSpeechSeq2Seq.from_pretrained("hf-internal-testing/tiny-random-MoonshineForConditionalGeneration") - Notebooks
- Google Colab
- Kaggle
| { | |
| "architectures": [ | |
| "MoonshineForConditionalGeneration" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 1, | |
| "decoder_hidden_act": "silu", | |
| "decoder_num_attention_heads": 2, | |
| "decoder_num_hidden_layers": 1, | |
| "decoder_num_key_value_heads": 2, | |
| "decoder_start_token_id": 1, | |
| "encoder_hidden_act": "gelu", | |
| "encoder_num_attention_heads": 2, | |
| "encoder_num_hidden_layers": 1, | |
| "encoder_num_key_value_heads": 2, | |
| "eos_token_id": 2, | |
| "hidden_size": 64, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 128, | |
| "is_encoder_decoder": true, | |
| "max_position_embeddings": 512, | |
| "model_type": "moonshine", | |
| "partial_rotary_factor": 0.9, | |
| "rope_scaling": null, | |
| "rope_theta": 10000.0, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.48.0", | |
| "use_cache": true, | |
| "vocab_size": 32768 | |
| } | |