Gemma 4 audio with MLX

Gemma 4 audio with MLX

Gemma 4 audio avec MLX

https://ift.tt/HlhJCXM

Merci à une astuce de Rahim Nathwani, voici une recette uv run pour transcrire un fichier audio sur macOS en utilisant le modèle Gemma 4 E2B de 10,28 Go avec MLX et mlx-vlm:

uv run –python 3.13 –with mlx_vlm –with torchvision –with gradio \
mlx_vlm.generate \
–model google/gemma-4-e2b-it \
–audio file.wav \
–prompt “Transcribe this audio” \
–max-tokens 500 \
–temperature 1.0

J’ai essayé sur ce fichier ce fichier .wav de 14 secondes et il a produit ce qui suit:

This front here is a quick voice memo. I want to try it out with MLX VLM. Just going to see if it can be transcribed by Gemma and how that works.

(Cela était censé être “This right here…” et “… how well that works” mais je peux comprendre pourquoi cela a été mal interprété comme “front” et “how that works”.)

Tags: uv, mlx, ai, gemma, llms, speech-to-text, python, generative_ai

HI-FI News

via Simon Willison’s Weblog https://ift.tt/es8cxt3

13 avril 2026 à 02:05 (AM)

April 13, 2026 at 02:05AM