Repository navigation
Conversation
- GGUF conversion for VoxtralRealtimeForConditionalGeneration (Mistral format) - Causal audio encoder with sliding window attention, RoPE, SwiGLU FFN - Decoder ada_rms_norm_t_cond support (precomputed at conversion time) - Audio preprocessor with Voxtral-specific mel params - Based on work from PR ggml-org#19698 by @Acceldium, cleaned up for Phase 1 Note: dual-stream inference not yet implemented (Phase 2)
Collaborator
|
This PR contains a large amount of AI-generated code and/or is too extensive for thorough review. Per our contribution guidelines, we cannot accept substantial AI-generated contributions, and large changes require prior discussion in an issue. |
Author
|
Closing in favor of a more complete PR that includes the full pipeline (encoder + dual-stream transcription + server endpoint). See replacement PR below. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add basic model support for Voxtral Mini 4B Realtime (February 2026), Mistral's streaming speech-to-text model.
This PR adds Phase 1 only: GGUF conversion + audio encoder integration into mtmd. The dual-stream inference protocol (audio + text embeddings summed at each position) will be a separate follow-up PR.
Changes
GGUF conversion (
convert_hf_to_gguf.py):VoxtralRealtimeEncoderModelfor Mistral-format mmproj conversionada_rms_norm_t_condadaptive normalization at conversion time (avoids runtime overhead)tok_embeddings.weightextraction frommm_streams_embeddingsDecoder support (
src/models/llama.cpp,src/llama-model.*,src/llama-arch.*):ffn_ada_norm_uptensor per layer (TENSOR_NOT_REQUIRED)ggml_mulin forward pass when tensor is present — zero overhead for other modelsAudio encoder (
tools/mtmd/models/voxtral-realtime-enc.cpp):mtmd integration (
clip.cpp,mtmd-audio.*,mtmd.*):PROJECTOR_TYPE_VOXTRAL_REALTIMEwith audio preprocessing (same mel params as Whisper)mtmd_support_voxtral_realtime()API for downstream consumersWhat this does NOT include
llama-voxtral-stream)mtmd-cli.cpporllama-serverThe dual-stream protocol (Phase 2) will be a separate PR after discussion on the approach.
Testing
Tested on RTX 3090 with the official model:
Related