Instructions to use VladHong/llama-cpp-K2-FAST2 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 VladHong/llama-cpp-K2-FAST2 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 VladHong/llama-cpp-K2-FAST2 # Run inference directly in the terminal: llama cli -hf VladHong/llama-cpp-K2-FAST2
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf VladHong/llama-cpp-K2-FAST2 # Run inference directly in the terminal: llama cli -hf VladHong/llama-cpp-K2-FAST2
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 VladHong/llama-cpp-K2-FAST2 # Run inference directly in the terminal: ./build/bin/llama cli -hf VladHong/llama-cpp-K2-FAST2
Use Docker
docker model run hf.co/VladHong/llama-cpp-K2-FAST2
- Llama new
- LM Studio
- Jan
- Ollama
How to use VladHong/llama-cpp-K2-FAST2 with Ollama:
ollama run hf.co/VladHong/llama-cpp-K2-FAST2
- Unsloth Desktop
- Docker Model Runner
How to use VladHong/llama-cpp-K2-FAST2 with Docker Model Runner:
docker model run hf.co/VladHong/llama-cpp-K2-FAST2
- Lemonade
How to use VladHong/llama-cpp-K2-FAST2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull VladHong/llama-cpp-K2-FAST2
Run and chat with the model
lemonade run user.llama-cpp-K2-FAST2-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Download tools/server/CMakeLists.txt from VladHong/llama-cpp-K2-FAST2: direct link, hf CLI and curl.
- Browser
- Download file 1.73 kB
-
https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/server/CMakeLists.txt
- Command line
-
hf download hf://VladHong/llama-cpp-K2-FAST2/tools/server/CMakeLists.txt
-
curl -L -o CMakeLists.txt https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/server/CMakeLists.txt
1.73 kB
| include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) | |
| # server-context containing the core server logic, used by llama-server and CLI | |
| set(TARGET server-context) | |
| add_library(${TARGET} STATIC | |
| server-chat.cpp | |
| server-chat.h | |
| server-task.cpp | |
| server-task.h | |
| server-queue.cpp | |
| server-queue.h | |
| server-common.cpp | |
| server-common.h | |
| server-context.cpp | |
| server-context.h | |
| server-stream.cpp | |
| server-stream.h | |
| server-tools.cpp | |
| server-tools.h | |
| server-mcp.cpp | |
| server-mcp.h | |
| server-schema.cpp | |
| server-schema.h | |
| ) | |
| if (BUILD_SHARED_LIBS) | |
| set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON) | |
| endif() | |
| target_include_directories(${TARGET} PRIVATE ../mtmd) | |
| target_include_directories(${TARGET} PRIVATE ${CMAKE_SOURCE_DIR}) | |
| target_link_libraries(${TARGET} PUBLIC llama-common mtmd ${CMAKE_THREAD_LIBS_INIT}) | |
| # llama-server-impl: server logic, reusable by app | |
| set(TARGET llama-server-impl) | |
| add_library(${TARGET} | |
| server.cpp | |
| server-http.cpp | |
| server-http.h | |
| server-models.cpp | |
| server-models.h | |
| ) | |
| set_target_properties(${TARGET} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON) | |
| target_include_directories(${TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) | |
| target_include_directories(${TARGET} PRIVATE ../mtmd ${CMAKE_SOURCE_DIR}) | |
| target_link_libraries(${TARGET} PUBLIC server-context llama-ui cpp-httplib ${CMAKE_THREAD_LIBS_INIT}) | |
| if(LLAMA_TOOLS_INSTALL) | |
| install(TARGETS ${TARGET} LIBRARY) | |
| endif() | |
| # llama-server executable | |
| set(TARGET llama-server) | |
| add_executable(${TARGET} main.cpp) | |
| install(TARGETS ${TARGET} RUNTIME) | |
| target_link_libraries(${TARGET} PRIVATE llama-server-impl) | |
| target_compile_features(${TARGET} PRIVATE cxx_std_17) | |