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-opencl/kernels/argsort.cl from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 2.74 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-opencl/kernels/argsort.cl
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/ggml/src/ggml-opencl/kernels/argsort.cl
-
curl -L -o argsort.cl https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-opencl/kernels/argsort.cl
2.74 kB
| enum ggml_sort_order { | |
| GGML_SORT_ORDER_ASC, | |
| GGML_SORT_ORDER_DESC, | |
| }; | |
| kernel void kernel_argsort_f32_i32( | |
| global float * src0, | |
| ulong offset0, | |
| global int * dst, | |
| ulong offsetd, | |
| const int ne00, | |
| const int ne00_pad, | |
| const int order, | |
| local int * dst_row | |
| ) { | |
| // bitonic sort | |
| int col = get_local_id(0); | |
| int row = get_group_id(1); | |
| if (col >= ne00_pad) { | |
| return; | |
| } | |
| src0 = (global char *)((global char *)src0 + offset0); | |
| dst = (global float *)((global char *)dst + offsetd); | |
| global float * x_row = src0 + row * ne00; | |
| // initialize indices | |
| dst_row[col] = col; | |
| barrier(CLK_LOCAL_MEM_FENCE); | |
| for (int k = 2; k <= ne00_pad; k *= 2) { | |
| for (int j = k / 2; j > 0; j /= 2) { | |
| int ixj = col ^ j; | |
| if (ixj > col) { | |
| if ((col & k) == 0) { | |
| if (dst_row[col] >= ne00 || | |
| (dst_row[ixj] < ne00 && (order == GGML_SORT_ORDER_ASC ? | |
| x_row[dst_row[col]] > x_row[dst_row[ixj]] : | |
| x_row[dst_row[col]] < x_row[dst_row[ixj]])) | |
| ) { | |
| SWAP(dst_row[col], dst_row[ixj], int); | |
| } | |
| } else { | |
| if (dst_row[ixj] >= ne00 || | |
| (dst_row[col] < ne00 && (order == GGML_SORT_ORDER_ASC ? | |
| x_row[dst_row[col]] < x_row[dst_row[ixj]] : | |
| x_row[dst_row[col]] > x_row[dst_row[ixj]])) | |
| ) { | |
| SWAP(dst_row[col], dst_row[ixj], int); | |
| } | |
| } | |
| } | |
| barrier(CLK_LOCAL_MEM_FENCE); | |
| } | |
| } | |
| // copy the result to dst without the padding | |
| if (col < ne00) { | |
| dst[row * ne00 + col] = dst_row[col]; | |
| } | |
| } | |