This commit is contained in:
jmorganca 2024-06-11 18:53:48 -07:00
parent ce00e387c3
commit d0703eaf44
4 changed files with 3 additions and 6570 deletions

1
llama/.gitignore vendored
View File

@ -7,4 +7,3 @@
*.o *.o
*.obj *.obj
ollama_runner* ollama_runner*
ggml-metal.metal

4
llama/ggml-metal.h vendored
View File

@ -61,6 +61,9 @@ struct ggml_cgraph;
extern "C" { extern "C" {
#endif #endif
const char* ggml_metallib_start;
const char* ggml_metallib_end;
// //
// backend API // backend API
// user-code should use only these functions // user-code should use only these functions
@ -89,4 +92,3 @@ GGML_API void ggml_backend_metal_capture_next_compute(ggml_backend_t backend);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

File diff suppressed because it is too large Load Diff

View File

@ -35,8 +35,6 @@ package llama
// #include "sampling_ext.h" // #include "sampling_ext.h"
// //
// bool llamaProgressCallback(float progress, void *user_data); // bool llamaProgressCallback(float progress, void *user_data);
// const char* ggml_metallib_start;
// const char* ggml_metallib_end;
import "C" import "C"
import ( import (
_ "embed" _ "embed"