mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-10 23:09:17 +02:00
mtmd: add mtmd_tokenize_from_parts() (#28250)
* add mtmd_tokenize_from_parts * use it in mtmd-cli * move add_special to call level
This commit is contained in:
@@ -80,7 +80,7 @@ MAKE_TEST(test_temporal_merge_grouping) {
|
||||
// spec chars:
|
||||
// v = video frame, w = video frame of another size, a = audio, i = plain image, t = text
|
||||
auto make_parts = [&pool](const std::string & spec) {
|
||||
std::vector<mtmd_input_part> parts;
|
||||
std::vector<mtmd_internal_part> parts;
|
||||
for (char c : spec) {
|
||||
if (c == 't') {
|
||||
parts.push_back({ "hello", nullptr });
|
||||
|
||||
Reference in New Issue
Block a user