Automatic Speech Recognition
Safetensors
MLX
English
Chinese
mlx-audio
glmasr
speech-to-text
speech-to-speech
speech
speech generation
stt
custom_code
5-bit
Instructions to use mlx-community/GLM-ASR-Nano-2512-5bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/GLM-ASR-Nano-2512-5bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir GLM-ASR-Nano-2512-5bit mlx-community/GLM-ASR-Nano-2512-5bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
File size: 1,131 Bytes
e198d12 8bd8e5c e198d12 8bd8e5c e198d12 fcced76 e198d12 8bd8e5c fcced76 8bd8e5c e198d12 8bd8e5c e198d12 | 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 39 40 41 42 43 44 45 | ---
license: mit
language:
- en
- zh
pipeline_tag: automatic-speech-recognition
library_name: mlx-audio
tags:
- mlx
- speech-to-text
- speech-to-speech
- speech
- speech generation
- stt
---
# mlx-community/GLM-ASR-Nano-2512-5bit
This model was converted to MLX format from [`zai-org/GLM-ASR-Nano-2512`](https://huggingface.co/zai-org/GLM-ASR-Nano-2512) using mlx-audio version **0.2.9**.
Refer to the [original model card](https://huggingface.co/zai-org/GLM-ASR-Nano-2512) for more details on the model.
## Use with mlx-audio
```bash
pip install -U mlx-audio
```
### CLI Example:
```bash
python -m mlx_audio.stt.generate --model mlx-community/GLM-ASR-Nano-2512-5bit--audio "audio.wav"
```
### Python Example:
```python
from mlx_audio.stt.utils import load_model
from mlx_audio.stt.generate import generate_transcription
model = load_model("mlx-community/GLM-ASR-Nano-2512-5bit")
transcription = generate_transcription(
model=model,
audio_path="path_to_audio.wav",
output_path="path_to_output.txt",
format="txt",
verbose=True,
)
print(transcription.text)
```
|