Repository navigation
Conversation
|
Hi @lihy715, thanks for your contribution! Per our contribution guidelines, the automated PR checker found the following issue(s) that need your attention:
Please note that maintainers reserve the right to make final decisions on PRs. If you believe there is a mistake, please comment below. |
|
When can the code be merged?😊 |
|
I have modified the comment part by AI, and clarify that this comment has been ready. Hopeful for your review and merge! |
|
sorry, I need to stop my review because this PR doesn't follow any rules in AGENTS.md |
|
Hi @lihy715, Could you please provide an update on this PR and move forward with addressing the outstanding issues? This PR has been in Draft status for quite some time, and it would be great to avoid leaving the work stalled indefinitely. In particular, could you please:
This feature would be valuable to the llama.cpp community, especially for real-time speech translation and streaming audio applications. It would be appreciated if you could share a concrete action plan and an estimated timeline for addressing these items. Thanks for your work on this! |
Overview
Adds support for Tencent Hy-SimulMT, a simultaneous speech translation model (Hugging Face architecture
HYV3SpeechForCausalLM, GGUF archhy_v3, new projector typehyv3_speech)This PR changes in three parts:
mmproj.The models are published at https://huggingface.co/tencent/Hy-SimulMT-30B-A3B-GGUF (translation only) and https://huggingface.co/tencent/Hy-SimulMT-30B-A3B-Interleave-GGUF (source text and translation). The official code is at https://github.com/Tencent-Hunyuan/Hy-SimulMT.
Changes by area:
tools/mtmd/models/hyv3-speech.cpp(new)tools/mtmd/models/models.h,tools/mtmd/CMakeLists.txtclip_graph_hyv3_speech+ the two helpers for mel→token arithmetictools/mtmd/mtmd-audio.h,tools/mtmd/mtmd-audio.cppmtmd_audio_preprocessor_hyv3_speech, cuts the mel on the training gridtools/mtmd/clip-impl.h,tools/mtmd/clip-model.h,tools/mtmd/clip.cppPROJECTOR_TYPE_HYV3_SPEECH, tensor names, hparamstools/mtmd/mtmd.h,tools/mtmd/mtmd.cppmtmd_audio_stream_mode(),mtmd_has_projector()src/llama-model-loader.cpp,tools/mtmd/mtmd-cli.cpp--mmprojfalls back to-mtools/mtmd/mtmd-cli.cpprun_turn_stream()+ dispatch onMTMD_AUDIO_STREAM_TURNgguf-py/gguf/constants.pyVisionProjectorType.HYV3_SPEECHtools/mtmd/legacy-models/convert_hyv3_speech_mmproj.py(new)audio_tower.*tensors out of the merged checkpointdocs/multimodal/hyv3-speech.md(new),docs/multimodal.md,tools/mtmd/README.mdAdditional information
Testing
CPU-only build (
-DGGML_CUDA=OFF),Q4_K_Msingle-file GGUF, 13.26 s sample:(
他is the target-branch marker, id 120809, printed to keep the two branches separable. A turn with no content is a WAIT, which is expected on most turns.) The translation matches the reference implementation.Further Plan
llama-serverdoes not run these GGUFs yet: it still expects the projector in a separate--mmprojfile, and it does not feed audio turn by turn. Serving support is a follow-up.Requirements