mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-01-26 17:20:01 +00:00
* Add mtmd: the beginning * Add mtmd: mtmd.cpp compiles * Add mtmd: clip initialization compiles * Add mtmd: clip.cpp compiles * Add mtmd: builds successfully * Add CPU implementation for GGML_OP_GLU * Add CUDA implementation for GGML_OP_GLU * Add CPU implementation for GGML_OP_CONV_2D and GGML_OP_CONV_2D_DW * Add CUDA implementation for GGML_OP_CONV_2D and GGML_OP_CONV_2D_DW * Add mtmd: refresh CPU rope * Add mtmd: refresh CUDA rope * Add mtmd: add Qwen2-VL * Add mtmd: Qwen2.5-VL text seems to work with this change * Add mtmd: fix swiglu * Add mtmd: use LOG_TEE so generated tokens show up in terminal * Add mtmd: do not attempt to load a GPU backend if none are available * GLU, not GPU * Fix typo * Fix new/free mismatch * LOG stuff * Add mtmd: this fixes gibberish on second image --------- Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
23 lines
576 B
C++
23 lines
576 B
C++
#include <cstdio>
|
|
#include <string>
|
|
|
|
int main(int argc, char** argv) {
|
|
std::string filename = "main";
|
|
if (argc >= 1) {
|
|
filename = argv[0];
|
|
}
|
|
|
|
// Get only the program name from the full path
|
|
size_t pos = filename.find_last_of("/\\");
|
|
if (pos != std::string::npos) {
|
|
filename = filename.substr(pos+1);
|
|
}
|
|
|
|
fprintf(stdout, "\n");
|
|
fprintf(stdout, "WARNING: The binary '%s' is deprecated.\n", filename.c_str());
|
|
fprintf(stdout, "Please use 'llama-mtmd-cli' instead.\n");
|
|
fprintf(stdout, "\n");
|
|
|
|
return EXIT_FAILURE;
|
|
}
|