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-virtgpu/CMakeLists.txt from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 2.71 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-virtgpu/CMakeLists.txt
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/ggml/src/ggml-virtgpu/CMakeLists.txt
-
curl -L -o CMakeLists.txt https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-virtgpu/CMakeLists.txt
2.71 kB
| cmake_minimum_required(VERSION 3.19) | |
| cmake_policy(SET CMP0114 NEW) | |
| include(ExternalProject) | |
| message(STATUS "Including the VirtGPU/Virglrenderer API Remoting") | |
| # Download venus_hw.h from virglrenderer repository | |
| ExternalProject_Add( | |
| venus_hw_header | |
| URL https://gitlab.freedesktop.org/virgl/virglrenderer/-/raw/virglrenderer-1.2.0/src/venus_hw.h | |
| DOWNLOAD_NO_EXTRACT YES | |
| DOWNLOAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include | |
| DOWNLOAD_NAME venus_hw.h | |
| CONFIGURE_COMMAND "" | |
| BUILD_COMMAND "" | |
| INSTALL_COMMAND "" | |
| LOG_DOWNLOAD ON | |
| ) | |
| if (NOT GGML_VIRTGPU_BACKEND STREQUAL "ONLY") | |
| message(STATUS "Enable the VirtGPU/Virglrenderer API Remoting frontend library") | |
| find_package(PkgConfig REQUIRED) | |
| pkg_check_modules(DRM REQUIRED libdrm) | |
| if (NOT GGML_BACKEND_DL) | |
| # cannot simply use USE_VIRTGPU, as in the 'else()' case the | |
| # frontend isn't compiled | |
| target_compile_definitions(ggml PUBLIC "GGML_USE_VIRTGPU_FRONTEND") | |
| endif() | |
| ggml_add_backend_library(ggml-virtgpu | |
| ggml-backend-buffer.cpp | |
| ggml-backend.cpp | |
| ggml-backend-device.cpp | |
| ggml-backend-reg.cpp | |
| ggml-backend-buffer-type.cpp | |
| virtgpu-apir.h | |
| virtgpu-forward.gen.h | |
| virtgpu.cpp | |
| virtgpu-shm.cpp | |
| virtgpu-utils.cpp | |
| virtgpu-forward-device.cpp | |
| virtgpu-forward-buffer-type.cpp | |
| virtgpu-forward-buffer.cpp | |
| virtgpu-forward-backend.cpp | |
| virtgpu-forward-impl.h | |
| apir_cs_ggml-rpc-front.cpp | |
| ../../include/ggml-virtgpu.h) | |
| target_include_directories(ggml-virtgpu PUBLIC /usr/include/libdrm/) | |
| target_link_libraries(ggml-virtgpu PUBLIC ${DRM_LIBRARIES}) | |
| target_include_directories(ggml-virtgpu PUBLIC ${DRM_INCLUDE_DIRS}) | |
| target_compile_options(ggml-virtgpu PUBLIC ${DRM_CFLAGS_OTHER}) | |
| target_include_directories(ggml-virtgpu PUBLIC ./include) | |
| target_include_directories(ggml-virtgpu PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) | |
| # Ensure venus_hw.h is downloaded before building ggml-virtgpu | |
| add_dependencies(ggml-virtgpu venus_hw_header) | |
| target_compile_options(ggml-virtgpu PRIVATE -std=c++20) | |
| else() | |
| message(STATUS "Not building the VirtGPU/Virglrenderer API Remoting frontend library") | |
| endif() | |
| if (NOT GGML_VIRTGPU_BACKEND STREQUAL "OFF") | |
| add_subdirectory("backend") | |
| endif() | |