Instructions to use Felipe97/llama-cpp-compiled with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Felipe97/llama-cpp-compiled with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Felipe97/llama-cpp-compiled # Run inference directly in the terminal: llama cli -hf Felipe97/llama-cpp-compiled
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Felipe97/llama-cpp-compiled # Run inference directly in the terminal: llama cli -hf Felipe97/llama-cpp-compiled
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Felipe97/llama-cpp-compiled # Run inference directly in the terminal: ./build/bin/llama cli -hf Felipe97/llama-cpp-compiled
Use Docker
docker model run hf.co/Felipe97/llama-cpp-compiled
- Llama new
- LM Studio
- Jan
- Ollama
How to use Felipe97/llama-cpp-compiled with Ollama:
ollama run hf.co/Felipe97/llama-cpp-compiled
- Unsloth Desktop
- Docker Model Runner
How to use Felipe97/llama-cpp-compiled with Docker Model Runner:
docker model run hf.co/Felipe97/llama-cpp-compiled
- Lemonade
How to use Felipe97/llama-cpp-compiled with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Felipe97/llama-cpp-compiled
Run and chat with the model
lemonade run user.llama-cpp-compiled-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Download ggml/include/ggml-metal.h from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 2.14 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/include/ggml-metal.h
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/ggml/include/ggml-metal.h
-
curl -L -o ggml-metal.h https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/include/ggml-metal.h
2.14 kB
| // Note: this description is outdated | |
| // | |
| // An interface allowing to compute ggml_cgraph with Metal | |
| // | |
| // This is a fully functional interface that extends ggml with GPU support for Apple devices. | |
| // A similar interface can be created for other GPU backends (e.g. Vulkan, CUDA, etc.) | |
| // | |
| // How it works? | |
| // | |
| // As long as your program can create and evaluate a ggml_cgraph on the CPU, you can use this | |
| // interface to evaluate the same graph on the GPU. Instead of using ggml_graph_compute(), you | |
| // use ggml_metal_graph_compute() (or ggml_vulkan_graph_compute(), etc.) | |
| // | |
| // You only need to make sure that all memory buffers that you used during the graph creation | |
| // are mapped to the device memory with the ggml_metal_add_buffer() function. This mapping is | |
| // used during the graph evaluation to determine the arguments of the compute kernels. | |
| // | |
| // Synchronization between device and host memory (for example for input and output tensors) | |
| // is done with the ggml_metal_set_tensor() and ggml_metal_get_tensor() functions. | |
| // | |
| struct ggml_tensor; | |
| struct ggml_cgraph; | |
| extern "C" { | |
| // | |
| // backend API | |
| // user-code should use only these functions | |
| // | |
| // TODO: remove in the future | |
| GGML_BACKEND_API ggml_backend_t ggml_backend_metal_init(void); | |
| GGML_BACKEND_API bool ggml_backend_is_metal(ggml_backend_t backend); | |
| GGML_BACKEND_API void ggml_backend_metal_set_abort_callback(ggml_backend_t backend, ggml_abort_callback abort_callback, void * user_data); | |
| // helper to check if the device supports a specific family | |
| // ideally, the user code should be doing these checks | |
| // ref: https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf | |
| GGML_BACKEND_API bool ggml_backend_metal_supports_family(ggml_backend_t backend, int family); | |
| // capture all command buffers committed the next time `ggml_backend_graph_compute` is called | |
| GGML_BACKEND_API void ggml_backend_metal_capture_next_compute(ggml_backend_t backend); | |
| GGML_BACKEND_API ggml_backend_reg_t ggml_backend_metal_reg(void); | |
| } | |