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/src/ggml-sycl/fattn-buffers.cpp from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 1.64 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-sycl/fattn-buffers.cpp
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/ggml/src/ggml-sycl/fattn-buffers.cpp
-
curl -L -o fattn-buffers.cpp https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-sycl/fattn-buffers.cpp
1.64 kB
| // | |
| // MIT license | |
| // Copyright (C) 2025 Intel Corporation | |
| // SPDX-License-Identifier: MIT | |
| // | |
| // | |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | |
| // See https://llvm.org/LICENSE.txt for license information. | |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| // | |
| sycl::half * ggml_sycl_fattn_kv_buffers::kv_buffer::ensure_half(size_t n_elems) { | |
| const size_t need_bytes = n_elems * sizeof(sycl::half); | |
| if (capacity >= need_bytes) { | |
| return ptr; | |
| } | |
| if (ptr) { | |
| SYCL_CHECK(CHECK_TRY_ERROR(qptr->wait())); | |
| ggml_sycl_memtrace_del(ptr); | |
| SYCL_CHECK(CHECK_TRY_ERROR(sycl::free(ptr, *qptr))); | |
| ptr = nullptr; | |
| capacity = 0; | |
| } | |
| size_t cap = 0; | |
| while (cap < need_bytes) { | |
| cap += CHUNK_SIZE; | |
| } | |
| void * dev_ptr; | |
| SYCL_CHECK( | |
| CHECK_TRY_ERROR(dev_ptr = sycl::malloc_device( | |
| cap, *qptr))); | |
| if (!dev_ptr) { | |
| GGML_LOG_ERROR("%s: can't allocate %lu Bytes of memory on device\n", __func__, cap); | |
| ggml_sycl_memtrace_fail(GGML_SYCL_MEM_FATTN_KV, cap); | |
| GGML_ABORT("fattn buffer alloc failed"); | |
| } | |
| ptr = static_cast<sycl::half *>(dev_ptr); | |
| capacity = cap; | |
| ggml_sycl_memtrace_add(GGML_SYCL_MEM_FATTN_KV, ptr, cap); | |
| return ptr; | |
| } | |
| ggml_sycl_fattn_kv_buffers::kv_buffer::~kv_buffer() { | |
| GGML_LOG_INFO("ggml_sycl_fattn_kv_buffer[%d]: %.2f MiB\n", device, capacity / 1024.0 / 1024.0); | |
| if (ptr) { | |
| ggml_sycl_memtrace_del(ptr); | |
| SYCL_CHECK(CHECK_TRY_ERROR(sycl::free(ptr, *qptr))); | |
| } | |
| } | |