What problem does it solve?
This Skill addresses the challenge of running large language model inference on a variety of hardware platforms, including CPU, Apple Silicon, AMD/Intel GPUs, and NVIDIA GPUs. It provides flexible quantization options and model conversion capabilities, making it suitable for edge deployment, non-NVIDIA environments, and flexible local quantization.
Core Features & Use Cases
- Multi-Platform Inference: Supports inference on CPU, Apple Silicon, AMD/Intel GPUs, and NVIDIA GPUs.
- Flexible Quantization: Offers quantization options from 2 to 8 bits, with K-quants and imatrix for improved quality.
- Model Conversion: Converts HuggingFace models to the GGUF format for use with llama.cpp.
- Use Case: Ideal for developers who need to deploy LLMs on edge devices, M1/M2/M3/M4 Macs, or CUDA-less environments, and require flexible quantization options.
Quick Start
Run the llama-cpp skill to perform inference on the Llama-2-7B model using the CPU with the following command:
./llama-cli -m model.Q4_K_M.gguf -p "Explain quantum computing" -n 256