/
vshmidt
/
llama.cpp
Обзор
Документация
Войти
/
vshmidt
/
llama.cpp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/get-model.cpp
21 строка
594 B
crasm
ci : add model tests + script wrapper (#4586)
26 янв 2024, 15:18
Не верифицирован
26 янв 2024, 15:18
413e7b0
Код
Авторство
О чём код?
#include <cstdio> #include <cstdlib> #include <cstring> #include "get-model.h" char * get_model_or_exit(int argc, char *argv[]) { char * model_path; if (argc > 1) { model_path = argv[1]; } else { model_path = getenv("LLAMACPP_TEST_MODELFILE"); if (!model_path || strlen(model_path) == 0) { fprintf(stderr, "\033[33mWARNING: No model file provided. Skipping this test. Set LLAMACPP_TEST_MODELFILE=<gguf_model_path> to silence this warning and run this test.\n\033[0m"); exit(EXIT_SUCCESS); } } return model_path; }