Views
No views yet
[!Warning] This 4-bit quantized checkpoint is only compatible with macOS and the M-Series computers. To run Voxtral-Mini-4B-Realtime on different hardware, please follow the installation guidelines here.
export EXECUTORCH_PATH="$HOME/executorch"
git clone https://github.com/pytorch/executorch/ ${EXECUTORCH_PATH}cd ${EXECUTORCH_PATH} && EXECUTORCH_BUILD_KERNELS_TORCHAO=1 TORCHAO_BUILD_EXPERIMENTAL_MPS=1 ./install_executorch.sh[!Tip] We recommend installing in a new conda or venv environment. If you run into any installation problems, open an issue or have a look at the official Voxtral Realtime installation guide
cd ${EXECUTORCH_PATH} && make voxtral_realtime-metalexport CMAKE_RUNNER="${EXECUTORCH_PATH}/cmake-out/examples/models/voxtral_realtime/voxtral_realtime_runner"
ls ${CMAKE_RUNNER}[!Tip] If you run into any installation problems, open an issue or have a look at the official Voxtral Realtime installation guide
libomp installed and exported:brew install libomp
export DYLD_LIBRARY_PATH=/usr/lib:$(brew --prefix libomp)/libsounddevice is installed so that you can record microphone input:pip install sounddevicepreprocessor.pte processor filetekken.json original tokenizer filemodel-metal-int4.pte quantized model fileexport LOCAL_FOLDER="$HOME/voxtral_realtime_quant_metal"
hf download mistralai/Voxtral-Mini-4B-Realtime-2602-Executorch --local-dir ${LOCAL_FOLDER}stream_audio.py script to stream audio from
our MacBook's microphone our voxtral realtime runner.cd ${LOCAL_FOLDER} && chmod +x stream_audio.pycd into our downloaded folder and transcribe your microphone input:cd ${LOCAL_FOLDER} &&
./stream_audio.py | \
${CMAKE_RUNNER} \
--model_path ./model-metal-int4.pte \
--tokenizer_path ./tekken.json \
--preprocessor_path ./preprocessor.pte \
--mic