voxtral.c

(โ˜… 1,733)

Pure C inference of Mistral Voxtral Realtime 4B speech to text model

  • .gitignore
  • benchmark.py
  • CLAUDE.md
  • download_model.sh
  • inspect_weights.c
  • LICENSE
  • main.c
  • Makefile
  • MODEL.md
  • python_simple_implementation.py
  • README.md
  • runtest.sh
  • SPEED.md
  • voxtral.c
  • voxtral.h
  • voxtral_audio.c
  • voxtral_audio.h
  • voxtral_decoder.c
  • voxtral_encoder.c
  • voxtral_kernels.c
  • voxtral_kernels.h
  • voxtral_metal.h
  • voxtral_metal.m
  • voxtral_mic.h
  • voxtral_mic_macos.c
  • voxtral_safetensors.c
  • voxtral_safetensors.h
  • voxtral_shaders.metal
  • voxtral_tokenizer.c
  • voxtral_tokenizer.h

# Installation Guide

1. Get the code
git clone https://github.com/antirez/voxtral.c

Downloads the entire project code from GitHub to your computer.

cd voxtral.c

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
Prerequisites
  • Python 3 Python is required to use pip.
  • APT (Debian/Ubuntu ๊ณ„์—ด) Built into Debian/Ubuntu-based Linux distributions.
pip install torch safetensors soundfile soxr

Installs the package published on PyPI directly โ€” no need to clone the source.

sudo apt install libopenblas-dev

Installs directly from the APT package repository (Debian/Ubuntu-based).

โœ… After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. Make

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make mps # Apple Silicon (fastest)

Compiles the code based on the generated build configuration to produce an executable.

make # Show available backends

Compiles the code based on the generated build configuration to produce an executable.

make blas # BLAS acceleration (Accelerate on macOS, OpenBLAS on Linux)

Compiles the code based on the generated build configuration to produce an executable.

make mps # Apple Silicon Metal GPU (fastest, macOS only)

Compiles the code based on the generated build configuration to produce an executable.

make clean # Clean build artifacts

Compiles the code based on the generated build configuration to produce an executable.

โœ… If it finishes without errors, it worked. Try running the generated executable directly.

Pulled directly from this repo's README.

// repository documentation