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-cuda/arange.cu from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-cuda/arange.cu
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/ggml/src/ggml-cuda/arange.cu
-
curl -L -o arange.cu https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-cuda/arange.cu
1.22 kB
| #include "arange.cuh" | |
| static __global__ void arange_f32(float * dst, const int ne0, const float start, const float step) { | |
| // blockIDx.x: idx of ne0 / BLOCK_SIZE | |
| int nidx = threadIdx.x + blockIdx.x * blockDim.x; | |
| if (nidx >= ne0) { | |
| return; | |
| } | |
| dst[nidx] = start + step * nidx; | |
| } | |
| static void arange_f32_cuda(float * dst, const int ne0, const float start, const float step, cudaStream_t stream) { | |
| int num_blocks = (ne0 + CUDA_ARANGE_BLOCK_SIZE - 1) / CUDA_ARANGE_BLOCK_SIZE; | |
| arange_f32<<<num_blocks, CUDA_ARANGE_BLOCK_SIZE, 0, stream>>>(dst, ne0, start, step); | |
| } | |
| void ggml_cuda_op_arange(ggml_backend_cuda_context & ctx, ggml_tensor * dst) { | |
| float * dst_d = (float *)dst->data; | |
| cudaStream_t stream = ctx.stream(); | |
| GGML_ASSERT(dst->type == GGML_TYPE_F32); | |
| float start; | |
| float stop; | |
| float step; | |
| memcpy(&start, (float *)dst->op_params + 0, sizeof(float)); | |
| memcpy(&stop, (float *)dst->op_params + 1, sizeof(float)); | |
| memcpy(&step, (float *)dst->op_params + 2, sizeof(float)); | |
| int64_t steps = (int64_t)ceil((stop - start) / step); | |
| GGML_ASSERT(ggml_nelements(dst) == steps); | |
| arange_f32_cuda(dst_d, dst->ne[0], start, step, stream); | |
| } | |