Automatic Speech Recognition
Transformers
ONNX
Safetensors
Transformers.js
Turkish
moonshine
speech
turkish
webgpu
wasm
edge
browser
Instructions to use ekremcet/moonshine-tiny-tr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ekremcet/moonshine-tiny-tr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="ekremcet/moonshine-tiny-tr")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("ekremcet/moonshine-tiny-tr") model = AutoModelForSpeechSeq2Seq.from_pretrained("ekremcet/moonshine-tiny-tr", device_map="auto") - Transformers.js
How to use ekremcet/moonshine-tiny-tr with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('automatic-speech-recognition', 'ekremcet/moonshine-tiny-tr'); - Notebooks
- Google Colab
- Kaggle
Download config.json from ekremcet/moonshine-tiny-tr: direct link, hf CLI and curl.
- Browser
- Download file 885 Bytes
-
https://huggingface.co/ekremcet/moonshine-tiny-tr/resolve/main/config.json
- Command line
-
hf download hf://ekremcet/moonshine-tiny-tr/config.json
-
curl -L -o config.json https://huggingface.co/ekremcet/moonshine-tiny-tr/resolve/main/config.json
885 Bytes
| { | |
| "architectures": [ | |
| "MoonshineForConditionalGeneration" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 1, | |
| "decoder_hidden_act": "silu", | |
| "decoder_num_attention_heads": 8, | |
| "decoder_num_hidden_layers": 6, | |
| "decoder_num_key_value_heads": 8, | |
| "decoder_start_token_id": 1, | |
| "dtype": "float32", | |
| "encoder_hidden_act": "gelu", | |
| "encoder_num_attention_heads": 8, | |
| "encoder_num_hidden_layers": 6, | |
| "encoder_num_key_value_heads": 8, | |
| "eos_token_id": 2, | |
| "hidden_size": 288, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 1152, | |
| "is_encoder_decoder": true, | |
| "max_position_embeddings": 512, | |
| "model_type": "moonshine", | |
| "pad_head_dim_to_multiple_of": 8, | |
| "pad_token_id": 2, | |
| "partial_rotary_factor": 0.9, | |
| "rope_scaling": null, | |
| "rope_theta": 10000.0, | |
| "transformers_version": "4.57.6", | |
| "use_cache": true, | |
| "vocab_size": 8192 | |
| } | |