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-webgpu/wgsl-shaders/repeat.wgsl from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 1.59 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-webgpu/wgsl-shaders/repeat.wgsl
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/ggml/src/ggml-webgpu/wgsl-shaders/repeat.wgsl
-
curl -L -o repeat.wgsl https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-webgpu/wgsl-shaders/repeat.wgsl
1.59 kB
| enable f16; | |
| struct Params { | |
| ne: u32, | |
| offset_src0: u32, | |
| offset_dst: u32, | |
| stride_src0_0: u32, | |
| stride_src0_1: u32, | |
| stride_src0_2: u32, | |
| stride_src0_3: u32, | |
| a_ne0: u32, | |
| a_ne1: u32, | |
| a_ne2: u32, | |
| a_ne3: u32, | |
| ne0: u32, | |
| ne1: u32, | |
| ne2: u32, | |
| }; | |
| // same size (16-bit) is sufficient for repeat | |
| @group(0) @binding(0) | |
| var<storage, read_write> src0: array<DataType>; | |
| @group(0) @binding(1) | |
| var<storage, read_write> dst: array<DataType>; | |
| @group(0) @binding(2) | |
| var<uniform> params: Params; | |
| @compute @workgroup_size(WG_SIZE) | |
| fn main(@builtin(global_invocation_id) gid: vec3<u32>) { | |
| if (gid.x < params.ne) { | |
| var i = gid.x; | |
| let i3 = i / (params.ne2 * params.ne1 * params.ne0); | |
| i = i % (params.ne2 * params.ne1 * params.ne0); | |
| let i2 = i / (params.ne1 * params.ne0); | |
| i = i % (params.ne1 * params.ne0); | |
| let i1 = i / params.ne0; | |
| let i0 = i % params.ne0; | |
| let a_i0 = i0 % params.a_ne0; | |
| let a_i1 = i1 % params.a_ne1; | |
| let a_i2 = i2 % params.a_ne2; | |
| let a_i3 = i3 % params.a_ne3; | |
| let a_index = a_i0 * params.stride_src0_0 + | |
| a_i1 * params.stride_src0_1 + | |
| a_i2 * params.stride_src0_2 + | |
| a_i3 * params.stride_src0_3; | |
| dst[params.offset_dst + gid.x] = src0[params.offset_src0 + a_index]; | |
| } | |
| } | |