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-webgpu/CMakeLists.txt from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 3.17 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-webgpu/CMakeLists.txt
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/ggml/src/ggml-webgpu/CMakeLists.txt
-
curl -L -o CMakeLists.txt https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-webgpu/CMakeLists.txt
3.17 kB
| cmake_minimum_required(VERSION 3.13) | |
| find_package(Python3 REQUIRED) | |
| # Shader locations | |
| set(SHADER_DIR "${CMAKE_CURRENT_SOURCE_DIR}/wgsl-shaders") | |
| set(SHADER_OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/generated") | |
| set(SHADER_HEADER "${SHADER_OUTPUT_DIR}/ggml-wgsl-shaders.hpp") | |
| file(MAKE_DIRECTORY ${SHADER_OUTPUT_DIR}) | |
| message(STATUS "Shader output dir: ${SHADER_OUTPUT_DIR}") | |
| # Find all WGSL sources | |
| file(GLOB WGSL_SHADER_FILES | |
| "${SHADER_DIR}/*.wgsl" | |
| "${SHADER_DIR}/*.tmpl" | |
| ) | |
| # Generate the header using a Python script | |
| add_custom_command( | |
| OUTPUT ${SHADER_HEADER} | |
| COMMAND ${CMAKE_COMMAND} -E echo "Embedding WGSL shaders to ggml-wgsl-shaders.hpp" | |
| COMMAND ${CMAKE_COMMAND} -E make_directory ${SHADER_OUTPUT_DIR} | |
| COMMAND ${CMAKE_COMMAND} -E env PYTHONIOENCODING=utf-8 | |
| ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/wgsl-shaders/embed_wgsl.py | |
| --input_dir "${SHADER_DIR}" | |
| --output_file "${SHADER_HEADER}" | |
| DEPENDS ${WGSL_SHADER_FILES} ${CMAKE_CURRENT_SOURCE_DIR}/wgsl-shaders/embed_wgsl.py | |
| VERBATIM | |
| ) | |
| add_custom_target(generate_shaders DEPENDS ${SHADER_HEADER}) | |
| ggml_add_backend_library(ggml-webgpu | |
| ggml-webgpu.cpp | |
| ${SHADER_HEADER} | |
| ../../include/ggml-webgpu.h | |
| ) | |
| add_dependencies(ggml-webgpu generate_shaders) | |
| # Dawn needs C++20 (https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/quickstart-cmake.md#prerequisites) | |
| target_compile_features(ggml-webgpu PRIVATE cxx_std_20) | |
| # Disable C++20 module scanning since emscan-deps fails to find webgpu_cpp.h | |
| set_target_properties(ggml-webgpu PROPERTIES CXX_SCAN_FOR_MODULES OFF) | |
| if(EMSCRIPTEN) | |
| set(EMDAWNWEBGPU_DIR "" CACHE PATH "Path to emdawnwebgpu_pkg") | |
| if(NOT EMDAWNWEBGPU_DIR) | |
| # default built-in port | |
| target_compile_options(ggml-webgpu PRIVATE "--use-port=emdawnwebgpu") | |
| target_link_options(ggml-webgpu INTERFACE "--use-port=emdawnwebgpu") | |
| else() | |
| # custom port | |
| target_compile_options(ggml-webgpu PRIVATE "--use-port=${EMDAWNWEBGPU_DIR}/emdawnwebgpu.port.py") | |
| target_link_options(ggml-webgpu INTERFACE "--use-port=${EMDAWNWEBGPU_DIR}/emdawnwebgpu.port.py") | |
| endif() | |
| if (GGML_WEBGPU_JSPI) | |
| target_compile_options(ggml-webgpu PRIVATE "-fwasm-exceptions") | |
| target_link_options(ggml-webgpu INTERFACE "-sJSPI" "-fwasm-exceptions") | |
| else() | |
| target_compile_options(ggml-webgpu PRIVATE "-fexceptions") | |
| target_link_options(ggml-webgpu INTERFACE "-sASYNCIFY" "-exceptions") | |
| endif() | |
| else() | |
| find_package(Dawn REQUIRED) | |
| set(DawnWebGPU_TARGET dawn::webgpu_dawn) | |
| endif() | |
| if (GGML_WEBGPU_DEBUG) | |
| target_compile_definitions(ggml-webgpu PRIVATE GGML_WEBGPU_DEBUG=1) | |
| if(EMSCRIPTEN) | |
| target_link_options(ggml-webgpu INTERFACE "-sASSERTIONS=2") | |
| endif() | |
| endif() | |
| if (GGML_WEBGPU_CPU_PROFILE) | |
| target_compile_definitions(ggml-webgpu PRIVATE GGML_WEBGPU_CPU_PROFILE=1) | |
| endif() | |
| if (GGML_WEBGPU_GPU_PROFILE) | |
| target_compile_definitions(ggml-webgpu PRIVATE GGML_WEBGPU_GPU_PROFILE=1) | |
| endif() | |
| target_include_directories(ggml-webgpu PRIVATE ${SHADER_OUTPUT_DIR}) | |
| target_link_libraries(ggml-webgpu PRIVATE ${DawnWebGPU_TARGET}) | |