mirror of
https://github.com/ggerganov/ggml
synced 2026-03-03 13:39:47 +01:00
Add python example w/ cffi-generated bindings Features: - Seamless copies between tensors (ggml & numpy alike) with automatic (de/re)quantization - Access to full C API (incl. CUDA, MPI, OpenCL, Metal, alloc... and any local API changes) - Trivial regeneration with `python regenerate.py` (uses llama.cpp headers by default, README.md for options)
14 lines
411 B
C
14 lines
411 B
C
/*
|
|
List here all the headers you want to expose in the Python bindings,
|
|
then run `python regenerate.py` (see details in README.md)
|
|
*/
|
|
|
|
#include "ggml.h"
|
|
#include "ggml-metal.h"
|
|
#include "ggml-opencl.h"
|
|
|
|
// Headers below are currently only present in the llama.cpp repository, comment them out if you don't have them.
|
|
#include "k_quants.h"
|
|
#include "ggml-alloc.h"
|
|
#include "ggml-cuda.h"
|
|
#include "ggml-mpi.h" |