Spaces:
Build error
Build error
Download llama.cpp/tests/get-model.cpp from YZ-TAN/flask-llama: direct link, hf CLI and curl.
- Browser
- Download file 615 Bytes
-
https://huggingface.co/spaces/YZ-TAN/flask-llama/resolve/main/llama.cpp/tests/get-model.cpp
- Command line
-
hf download hf://spaces/YZ-TAN/flask-llama/llama.cpp/tests/get-model.cpp
-
curl -L -o get-model.cpp https://huggingface.co/spaces/YZ-TAN/flask-llama/resolve/main/llama.cpp/tests/get-model.cpp
615 Bytes
| 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; | |
| } | |