Instructions to use mazesmazes/tiny-audio-swift-bundle with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mazesmazes/tiny-audio-swift-bundle with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="mazesmazes/tiny-audio-swift-bundle")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mazesmazes/tiny-audio-swift-bundle", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "mlx_format_version": 1, | |
| "encoder": { | |
| "encoder_dim": 1280, | |
| "n_mels": 128, | |
| "num_layers": 32, | |
| "num_heads": 20, | |
| "head_dim": 64, | |
| "intermediate_size": 5120, | |
| "rope_theta": 10000.0, | |
| "quantization": { | |
| "group_size": 64, | |
| "bits": 8 | |
| } | |
| }, | |
| "projector": { | |
| "encoder_dim": 1280, | |
| "llm_dim": 1024, | |
| "hidden_dim": 2048, | |
| "pool_stride": 4 | |
| }, | |
| "audio_token": "<audio>", | |
| "audio_token_id": 151669, | |
| "eos_token_ids": [ | |
| 151643, | |
| 151645 | |
| ], | |
| "encoder_conv_layers": [ | |
| [ | |
| 1, | |
| 3, | |
| 1 | |
| ], | |
| [ | |
| 1, | |
| 3, | |
| 2 | |
| ] | |
| ], | |
| "hop_length": 160 | |
| } |