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_iq2_s.comp from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 1.91 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq2_s.comp
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq2_s.comp
-
curl -L -o dequant_iq2_s.comp https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq2_s.comp
1.91 kB
| #version 450 | |
| #include "dequant_head.glsl" | |
| layout(local_size_x = 256, local_size_y = 1, local_size_z = 1) in; | |
| layout (binding = 0) readonly buffer A {block_iq2_s data_a[];}; | |
| layout (binding = 1) writeonly buffer D {D_TYPE data_b[];}; | |
| void main() { | |
| // Each thread handles 1 subblock (32 values with 2 scales) | |
| const uint ib = gl_WorkGroupID.x * 32 + gl_LocalInvocationID.x / 8; | |
| init_iq_shmem(gl_WorkGroupSize); | |
| if (ib >= p.nel / 256) { | |
| return; | |
| } | |
| const uint ib32 = gl_LocalInvocationID.x % 8; | |
| const uint b_idx = 256 * ib + 32 * ib32; | |
| const float d = float(data_a[ib].d); | |
| const vec2 scale = vec2(data_a[ib].scales[ib32] & 0xf, data_a[ib].scales[ib32] >> 4); | |
| const vec2 db = d * (0.5 + scale) * 0.25; | |
| uint qh = data_a[ib].qh[ib32]; | |
| [[unroll]] for (uint l = 0; l < 4; ++l) { | |
| uint qs = data_a[ib].qs[4 * ib32 + l]; | |
| const uint8_t sign = data_a[ib].qs[QUANT_K / 8 + 4 * ib32 + l]; | |
| qs |= (qh << (8 - 2 * l)) & 0x300; | |
| const uvec2 grid = iq2s_grid[qs]; | |
| const u8vec4 grid0 = unpack8(grid.x); | |
| const u8vec4 grid1 = unpack8(grid.y); | |
| data_b[b_idx + 8 * l + 0] = D_TYPE(db[l/2] * grid0.x * ((sign & 1) != 0 ? -1.0 : 1.0)); | |
| data_b[b_idx + 8 * l + 1] = D_TYPE(db[l/2] * grid0.y * ((sign & 2) != 0 ? -1.0 : 1.0)); | |
| data_b[b_idx + 8 * l + 2] = D_TYPE(db[l/2] * grid0.z * ((sign & 4) != 0 ? -1.0 : 1.0)); | |
| data_b[b_idx + 8 * l + 3] = D_TYPE(db[l/2] * grid0.w * ((sign & 8) != 0 ? -1.0 : 1.0)); | |
| data_b[b_idx + 8 * l + 4] = D_TYPE(db[l/2] * grid1.x * ((sign & 16) != 0 ? -1.0 : 1.0)); | |
| data_b[b_idx + 8 * l + 5] = D_TYPE(db[l/2] * grid1.y * ((sign & 32) != 0 ? -1.0 : 1.0)); | |
| data_b[b_idx + 8 * l + 6] = D_TYPE(db[l/2] * grid1.z * ((sign & 64) != 0 ? -1.0 : 1.0)); | |
| data_b[b_idx + 8 * l + 7] = D_TYPE(db[l/2] * grid1.w * ((sign & 128) != 0 ? -1.0 : 1.0)); | |
| } | |
| } | |