char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Pepper Grayllama : add missing headers (#28566)ca86fb222

char/aliceai-t5-moe
652 B26 linesraw
1#include <clocale>
2#include <cstdio>
3#include <cstdlib>
4#include <string>
5
6int main(int argc, char** argv) {
7    std::setlocale(LC_NUMERIC, "C");
8
9    std::string filename = "main";
10    if (argc >= 1) {
11        filename = argv[0];
12    }
13
14    // Get only the program name from the full path
15    size_t pos = filename.find_last_of("/\\");
16    if (pos != std::string::npos) {
17        filename = filename.substr(pos+1);
18    }
19
20    fprintf(stdout, "\n");
21    fprintf(stdout, "WARNING: The binary '%s' is deprecated.\n", filename.c_str());
22    fprintf(stdout, "Please use 'llama-mtmd-cli' instead.\n");
23    fprintf(stdout, "\n");
24
25    return EXIT_FAILURE;
26}