Gemma 4 audio with MLX

Gemma 4 audio with MLX

Gemma 4 Audio mit MLX

https://ift.tt/HlhJCXM

Danke für einen Hinweis von Rahim Nathwani, hier ist ein uv run-Rezept zum Transkribieren einer Audiodatei auf macOS mit dem 10,28-GB-Gemma-4-E2B-Modell mit MLX und 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

Ich habe es mit dieser 14-Sekunden-.wav-Datei ausprobiert und es ergab Folgendes:

“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.”

(Das sollte “This right here…” und “… how well that works” heißen, aber ich verstehe, warum es als “front” und “how that works” fehlinterpretiert wurde.)

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. April 2026 um 02:05 Uhr

April 13, 2026 at 02:05AM