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-feats.h from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 4.89 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-feats.h
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/ggml/src/ggml-feats.h
-
curl -L -o ggml-feats.h https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/ggml/src/ggml-feats.h
4.89 kB
| typedef struct ggml_feats_arch64_runtime { | |
| bool has_dotprod; | |
| bool has_fp16; | |
| bool has_sve; | |
| bool has_sve2; | |
| bool has_i8mm; | |
| bool has_sme; | |
| bool has_sme2; | |
| int sve_cnt; | |
| } ggml_feats_arch64_runtime_t; | |
| static inline ggml_feats_arch64_runtime_t ggml_feats_get_arch64_runtime(void) { | |
| ggml_feats_arch64_runtime_t runtime_feat = {}; | |
| const unsigned long hwcap = getauxval(AT_HWCAP); | |
| const unsigned long hwcap2 = getauxval(AT_HWCAP2); | |
| runtime_feat.has_dotprod = !!(hwcap & HWCAP_ASIMDDP); | |
| runtime_feat.has_fp16 = !!(hwcap & HWCAP_FPHP) && !!(hwcap & HWCAP_ASIMDHP);; | |
| runtime_feat.has_sve = !!(hwcap & HWCAP_SVE); | |
| runtime_feat.has_sve2 = !!(hwcap2 & HWCAP2_SVE2); | |
| runtime_feat.has_i8mm = !!(hwcap2 & HWCAP2_I8MM); | |
| runtime_feat.has_sme = !!(hwcap2 & HWCAP2_SME); | |
| runtime_feat.has_sme2 = !!(hwcap2 & HWCAP2_SME2); | |
| if (runtime_feat.has_sve) { | |
| const int vl = prctl(PR_SVE_GET_VL); | |
| if (vl >= 0) { | |
| runtime_feat.sve_cnt = vl & PR_SVE_VL_LEN_MASK; | |
| } | |
| } | |
| int oldp = 0; | |
| size_t size = sizeof(oldp); | |
| if (sysctlbyname("hw.optional.arm.FEAT_DotProd", &oldp, &size, nullptr, 0) == 0) { | |
| runtime_feat.has_dotprod = static_cast<bool>(oldp); | |
| } | |
| if (sysctlbyname("hw.optional.arm.FEAT_FP16", &oldp, &size, nullptr, 0) == 0) { | |
| runtime_feat.has_fp16 = static_cast<bool>(oldp); | |
| } | |
| if (sysctlbyname("hw.optional.arm.FEAT_SVE", &oldp, &size, nullptr, 0) == 0) { | |
| runtime_feat.has_sve = static_cast<bool>(oldp); | |
| } | |
| if (sysctlbyname("hw.optional.arm.FEAT_SVE2", &oldp, &size, nullptr, 0) == 0) { | |
| runtime_feat.has_sve2 = static_cast<bool>(oldp); | |
| } | |
| if (sysctlbyname("hw.optional.arm.FEAT_I8MM", &oldp, &size, nullptr, 0) == 0) { | |
| runtime_feat.has_i8mm = static_cast<bool>(oldp); | |
| } | |
| if (sysctlbyname("hw.optional.arm.FEAT_SME", &oldp, &size, nullptr, 0) == 0) { | |
| runtime_feat.has_sme = static_cast<bool>(oldp); | |
| } | |
| if (sysctlbyname("hw.optional.arm.FEAT_SME2", &oldp, &size, nullptr, 0) == 0) { | |
| runtime_feat.has_sme2 = static_cast<bool>(oldp); | |
| } | |
| // Apple does not support userspace non-streaming SVE; keep SVE vector length unknown. | |
| runtime_feat.sve_cnt = 0; | |
| runtime_feat.has_dotprod = IsProcessorFeaturePresent(PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE) != 0; | |
| runtime_feat.has_fp16 = IsProcessorFeaturePresent(PF_ARM_V82_FP16_INSTRUCTIONS_AVAILABLE) != 0; | |
| runtime_feat.has_sve = IsProcessorFeaturePresent(PF_ARM_SVE_INSTRUCTIONS_AVAILABLE) != 0; | |
| runtime_feat.has_sve2 = IsProcessorFeaturePresent(PF_ARM_SVE2_INSTRUCTIONS_AVAILABLE) != 0; | |
| runtime_feat.has_i8mm = IsProcessorFeaturePresent(PF_ARM_V82_I8MM_INSTRUCTIONS_AVAILABLE) != 0; | |
| runtime_feat.has_sme = IsProcessorFeaturePresent(PF_ARM_SME_INSTRUCTIONS_AVAILABLE) != 0; | |
| runtime_feat.has_sme2 = IsProcessorFeaturePresent(PF_ARM_SME2_INSTRUCTIONS_AVAILABLE) != 0; | |
| // Windows exposes SVE feature presence, but not the runtime SVE vector length here. | |
| runtime_feat.sve_cnt = 0; | |
| return runtime_feat; | |
| } | |