Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- feat: update llama.cpp to ggml-org/llama.cpp@46eb1742d
- feat: update llama.cpp to ggml-org/llama.cpp@afe77e18f
- fix(ci): remove unsupported macOS 14 release runners by @abetlen in #2416

## [0.3.37]
Expand Down
29 changes: 26 additions & 3 deletions llama_cpp/mtmd_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
# MTMD_GEN_AUDIO_TYPE_YUE2,
# MTMD_GEN_AUDIO_TYPE_MINIMAX_MUSIC3,
# MTMD_GEN_AUDIO_TYPE_FISH_S2,
# MTMD_GEN_AUDIO_TYPE_MOSHI,
# MTMD_GEN_AUDIO_TYPE_KOKORO,
# MTMD_GEN_AUDIO_TYPE_TINY_VOCA,
# MTMD_GEN_AUDIO_TYPE_VOXCPM2,
Expand All @@ -129,9 +130,10 @@
MTMD_GEN_AUDIO_TYPE_YUE2 = 8
MTMD_GEN_AUDIO_TYPE_MINIMAX_MUSIC3 = 9
MTMD_GEN_AUDIO_TYPE_FISH_S2 = 10
MTMD_GEN_AUDIO_TYPE_KOKORO = 11
MTMD_GEN_AUDIO_TYPE_TINY_VOCA = 12
MTMD_GEN_AUDIO_TYPE_VOXCPM2 = 13
MTMD_GEN_AUDIO_TYPE_MOSHI = 11
MTMD_GEN_AUDIO_TYPE_KOKORO = 12
MTMD_GEN_AUDIO_TYPE_TINY_VOCA = 13
MTMD_GEN_AUDIO_TYPE_VOXCPM2 = 14

MTMD_GEN_PROCESS_TYPE_GEN_CODE = 0
MTMD_GEN_PROCESS_TYPE_GEN_WAV = 1
Expand Down Expand Up @@ -342,6 +344,7 @@ class mtmd_gen_audio_info(Structure):
# // for MTMD_GEN_PROCESS_TYPE_GEN_WAV
# // pass either codes (discrete) or feats (continuous), depending on the pipeline
# // lfm3a GEN_CODE also takes codes: the codes revealed so far, -1 for a masked codebook
# // moshi GEN_CODE: code0 is the sampled text token; with codes (all of the frame), only their backbone embedding is built
# // zonos3 GEN_WAV: -1 for a residual code not known yet, the frame is decoded without it
# // kokoro GEN_WAV takes both: codes are the phoneme tokens, feats is the voice row (256 values) then the backbone state of each token
# int32_t * codes;
Expand Down Expand Up @@ -750,6 +753,24 @@ class mtmd_helper_gen_audio_inp(Structure):
]


# struct mtmd_helper_cap {
# bool chat; // false for tts-only models (no chat template) and realtime transcription models (token delay)
#
# // input capabilities
# bool vision;
# bool audio;
# bool video; // built-in decoder only (MTMD_VIDEO), a custom decoder is not counted
#
# // realtime capabilities
# bool audio_stream; // realtime transcription, see mtmd_audio_stream_init()
# bool audio_duplex; // full duplex (e.g. Hibiki): the model speaks while it listens, see the moshi pipeline of mtmd_helper_gen_audio
#
# // output capabilities
# bool text_gen; // false for an audio-only model (tts-only, no chat template)
# bool audio_gen;
# bool audio_gen_spk_ref; // accepts a speaker reference audio for voice cloning
# };
# typedef struct mtmd_helper_cap mtmd_helper_cap;
class mtmd_helper_cap(Structure):
"""Capabilities exposed by an MTMD model and its projector."""

Expand All @@ -759,6 +780,7 @@ class mtmd_helper_cap(Structure):
audio: bool
video: bool
audio_stream: bool
audio_duplex: bool
text_gen: bool
audio_gen: bool
audio_gen_spk_ref: bool
Expand All @@ -769,6 +791,7 @@ class mtmd_helper_cap(Structure):
("audio", c_bool),
("video", c_bool),
("audio_stream", c_bool),
("audio_duplex", c_bool),
("text_gen", c_bool),
("audio_gen", c_bool),
("audio_gen_spk_ref", c_bool),
Expand Down
2 changes: 1 addition & 1 deletion vendor/llama.cpp
Submodule llama.cpp updated 118 files
Loading