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/expm1.cl from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 3.33 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-opencl/kernels/expm1.cl
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/ggml/src/ggml-opencl/kernels/expm1.cl
-
curl -L -o expm1.cl https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-opencl/kernels/expm1.cl
3.33 kB
| //------------------------------------------------------------------------------ | |
| // expm1 | |
| //------------------------------------------------------------------------------ | |
| kernel void kernel_expm1_f32( | |
| global const float * src0, | |
| ulong offset0, | |
| global float * dst, | |
| ulong offsetd | |
| ) { | |
| src0 = (global float*)((global char*)src0 + offset0); | |
| dst = (global float*)((global char*)dst + offsetd); | |
| dst[get_global_id(0)] = exp(src0[get_global_id(0)]) - 1.0f; | |
| } | |
| kernel void kernel_expm1_f32_4( | |
| global const float4 * src0, | |
| ulong offset0, | |
| global float4 * dst, | |
| ulong offsetd | |
| ) { | |
| src0 = (global float4*)((global char*)src0 + offset0); | |
| dst = (global float4*)((global char*)dst + offsetd); | |
| dst[get_global_id(0)] = exp(src0[get_global_id(0)]) - 1.0f; | |
| } | |
| kernel void kernel_expm1_f16( | |
| global const half * src0, | |
| ulong offset0, | |
| global half * dst, | |
| ulong offsetd | |
| ) { | |
| src0 = (global half*)((global char*)src0 + offset0); | |
| dst = (global half*)((global char*)dst + offsetd); | |
| dst[get_global_id(0)] = exp(src0[get_global_id(0)]) - 1.0h; | |
| } | |
| kernel void kernel_expm1_f16_4( | |
| global const half4 * src0, | |
| ulong offset0, | |
| global half4 * dst, | |
| ulong offsetd | |
| ) { | |
| src0 = (global half4*)((global char*)src0 + offset0); | |
| dst = (global half4*)((global char*)dst + offsetd); | |
| dst[get_global_id(0)] = exp(src0[get_global_id(0)]) - 1.0h; | |
| } | |
| kernel void kernel_expm1_f32_nc( | |
| global const char * src0, | |
| ulong offset0, | |
| global char * dst, | |
| ulong offsetd, | |
| int ne00, | |
| ulong nb00, | |
| ulong nb01, | |
| ulong nb02, | |
| ulong nb03, | |
| ulong nb0, | |
| ulong nb1, | |
| ulong nb2, | |
| ulong nb3 | |
| ) { | |
| src0 = src0 + offset0; | |
| dst = dst + offsetd; | |
| const int i3 = get_group_id(2); | |
| const int i2 = get_group_id(1); | |
| const int i1 = get_group_id(0); | |
| for (int i0 = get_local_id(0); i0 < ne00; i0 += get_local_size(0)) { | |
| global const float * x = (global const float *)(src0 + i3*nb03 + i2*nb02 + i1*nb01 + i0*nb00); | |
| global float * y = (global float *)(dst + i3*nb3 + i2*nb2 + i1*nb1 + i0*nb0); | |
| *y = exp(*x) - 1.0f; | |
| } | |
| } | |
| kernel void kernel_expm1_f16_nc( | |
| global const char * src0, | |
| ulong offset0, | |
| global char * dst, | |
| ulong offsetd, | |
| int ne00, | |
| ulong nb00, | |
| ulong nb01, | |
| ulong nb02, | |
| ulong nb03, | |
| ulong nb0, | |
| ulong nb1, | |
| ulong nb2, | |
| ulong nb3 | |
| ) { | |
| src0 = src0 + offset0; | |
| dst = dst + offsetd; | |
| const int i3 = get_group_id(2); | |
| const int i2 = get_group_id(1); | |
| const int i1 = get_group_id(0); | |
| for (int i0 = get_local_id(0); i0 < ne00; i0 += get_local_size(0)) { | |
| global const half * x = (global const half *)(src0 + i3*nb03 + i2*nb02 + i1*nb01 + i0*nb00); | |
| global half * y = (global half *)(dst + i3*nb3 + i2*nb2 + i1*nb1 + i0*nb0); | |
| *y = exp(*x) - 1.0f; | |
| } | |
| } | |