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-sycl.h from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 2.35 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/include/ggml-sycl.h
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/ggml/include/ggml-sycl.h
-
curl -L -o ggml-sycl.h https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/include/ggml-sycl.h
2.35 kB
| // | |
| // MIT license | |
| // Copyright (C) 2024 Intel Corporation | |
| // SPDX-License-Identifier: MIT | |
| // | |
| extern "C" { | |
| // backend API | |
| GGML_BACKEND_API ggml_backend_t ggml_backend_sycl_init(int device); | |
| GGML_BACKEND_API bool ggml_backend_is_sycl(ggml_backend_t backend); | |
| // devide buffer | |
| GGML_BACKEND_API ggml_backend_buffer_type_t ggml_backend_sycl_buffer_type(int device); | |
| // split tensor buffer that splits matrices by rows across multiple devices | |
| GGML_BACKEND_API ggml_backend_buffer_type_t ggml_backend_sycl_split_buffer_type([[maybe_unused]] int main_device, const float * tensor_split); | |
| // Tensor parallelism (--split-mode tensor): comm_init/free/allreduce_tensor | |
| // trio queried by the meta-backend via ggml_backend_reg_get_proc_address. | |
| // See typedefs in ggml/include/ggml-backend.h. Mirrors the CUDA backend's | |
| // pattern (ggml_backend_cuda_comm_*). | |
| GGML_BACKEND_API void * ggml_backend_sycl_comm_init(ggml_backend_t * backends, size_t n_backends); | |
| GGML_BACKEND_API void ggml_backend_sycl_comm_free(void * comm_ctx); | |
| GGML_BACKEND_API bool ggml_backend_sycl_comm_allreduce_tensor(void * comm_ctx, struct ggml_tensor ** tensors); | |
| // pinned host buffer for use with the CPU backend for faster copies between CPU and GPU | |
| GGML_BACKEND_API ggml_backend_buffer_type_t ggml_backend_sycl_host_buffer_type(void); | |
| GGML_BACKEND_API void ggml_backend_sycl_print_sycl_devices(void); | |
| GGML_BACKEND_API void ggml_backend_sycl_get_gpu_list(int *id_list, int max_len); | |
| GGML_BACKEND_API void ggml_backend_sycl_get_device_description(int device, | |
| char *description, | |
| size_t description_size); | |
| GGML_BACKEND_API int ggml_backend_sycl_get_device_count(); | |
| GGML_BACKEND_API void ggml_backend_sycl_get_device_memory(int device, size_t *free, size_t *total); | |
| // SYCL doesn't support registering host memory, keep here for reference | |
| // GGML_BACKEND_API bool ggml_backend_sycl_register_host_buffer(void * buffer, size_t size); | |
| // GGML_BACKEND_API void ggml_backend_sycl_unregister_host_buffer(void * buffer); | |
| GGML_BACKEND_API ggml_backend_reg_t ggml_backend_sycl_reg(void); | |
| } | |