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-vulkan/vulkan-shaders/dequant_q3_k.comp from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 1.71 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q3_k.comp
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q3_k.comp
-
curl -L -o dequant_q3_k.comp https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q3_k.comp
1.71 kB
| #version 450 | |
| #include "dequant_head.glsl" | |
| layout(local_size_x = 64, local_size_y = 1, local_size_z = 1) in; | |
| layout (binding = 0) readonly buffer A {A_TYPE data_a[];}; | |
| layout (binding = 1) writeonly buffer D {D_TYPE data_b[];}; | |
| void main() { | |
| [[unroll]] for (uint wgy = 0; wgy < 256; wgy++) { | |
| const uint i = uint(gl_WorkGroupID.x * 256 + wgy); | |
| if (i >= p.nel / QUANT_K) { | |
| return; | |
| } | |
| const uint r = gl_LocalInvocationID.x / 4; | |
| const uint tid = r / 2; | |
| const uint is0 = r % 2; | |
| const uint l0 = 16 * is0 + 4 * (gl_LocalInvocationID.x % 4); | |
| const uint n = tid / 4; | |
| const uint j = tid - 4*n; | |
| const uint8_t m = uint8_t(1 << (4*n + j)); | |
| const uint is = 8*n + 2*j + is0; | |
| const uint shift = 2*j; | |
| const int8_t us = int8_t(is < 4 ? (data_a[i].scales[is-0] & 0xF) | (((data_a[i].scales[is+8] >> 0) & 3) << 4) : | |
| is < 8 ? (data_a[i].scales[is-0] & 0xF) | (((data_a[i].scales[is+4] >> 2) & 3) << 4) : | |
| is < 12 ? (data_a[i].scales[is-8] >> 4) | (((data_a[i].scales[is+0] >> 4) & 3) << 4) : | |
| (data_a[i].scales[is-8] >> 4) | (((data_a[i].scales[is-4] >> 6) & 3) << 4)); | |
| const FLOAT_TYPE d_all = FLOAT_TYPE(data_a[i].d); | |
| const FLOAT_TYPE dl = d_all * FLOAT_TYPE(us - 32); | |
| const uint y_idx = i * QUANT_K + 128 * n + 32 * j; | |
| const uint qs_idx = 32*n; | |
| for (uint l = l0; l < l0 + 4; ++l) { | |
| data_b[y_idx + l] = D_TYPE(dl * FLOAT_TYPE(int8_t((data_a[i].qs[qs_idx + l] >> shift) & 3) - (((data_a[i].hmask[l] & m) != 0) ? 0 : 4))); | |
| } | |
| } | |
| } | |