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 examples/llama.android/lib/src/main/cpp/CMakeLists.txt from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 1.66 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/eb01745a30edbb7d4a07c59607748e2f8f2cd8de/examples/llama.android/lib/src/main/cpp/CMakeLists.txt
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled@eb01745a30edbb7d4a07c59607748e2f8f2cd8de/examples/llama.android/lib/src/main/cpp/CMakeLists.txt
-
curl -L -o CMakeLists.txt https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/eb01745a30edbb7d4a07c59607748e2f8f2cd8de/examples/llama.android/lib/src/main/cpp/CMakeLists.txt
1.66 kB
| cmake_minimum_required(VERSION 3.31.6) | |
| project("ai-chat" VERSION 1.0.0 LANGUAGES C CXX) | |
| set(CMAKE_C_STANDARD 11) | |
| set(CMAKE_C_STANDARD_REQUIRED true) | |
| set(CMAKE_CXX_STANDARD 17) | |
| set(CMAKE_CXX_STANDARD_REQUIRED true) | |
| set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "" FORCE) | |
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" CACHE STRING "" FORCE) | |
| # -------------------------------------------------------------------------- | |
| # AI Chat library | |
| # -------------------------------------------------------------------------- | |
| if(DEFINED ANDROID_ABI) | |
| message(STATUS "Detected Android ABI: ${ANDROID_ABI}") | |
| if(ANDROID_ABI STREQUAL "arm64-v8a") | |
| set(GGML_SYSTEM_ARCH "ARM") | |
| set(GGML_CPU_KLEIDIAI ON) | |
| set(GGML_OPENMP ON) | |
| elseif(ANDROID_ABI STREQUAL "x86_64") | |
| set(GGML_SYSTEM_ARCH "x86") | |
| set(GGML_CPU_KLEIDIAI OFF) | |
| set(GGML_OPENMP OFF) | |
| else() | |
| message(FATAL_ERROR "Unsupported ABI: ${ANDROID_ABI}") | |
| endif() | |
| endif() | |
| set(LLAMA_SRC ${CMAKE_CURRENT_LIST_DIR}/../../../../../../) | |
| add_subdirectory(${LLAMA_SRC} build-llama) | |
| add_library(${CMAKE_PROJECT_NAME} SHARED | |
| ai_chat.cpp) | |
| target_compile_definitions(${CMAKE_PROJECT_NAME} PRIVATE | |
| GGML_SYSTEM_ARCH=${GGML_SYSTEM_ARCH} | |
| GGML_CPU_KLEIDIAI=$<BOOL:${GGML_CPU_KLEIDIAI}> | |
| GGML_OPENMP=$<BOOL:${GGML_OPENMP}> | |
| ) | |
| target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE | |
| ${LLAMA_SRC} | |
| ${LLAMA_SRC}/common | |
| ${LLAMA_SRC}/include | |
| ${LLAMA_SRC}/ggml/include | |
| ${LLAMA_SRC}/ggml/src) | |
| target_link_libraries(${CMAKE_PROJECT_NAME} | |
| llama | |
| llama-common | |
| android | |
| log) | |