Instructions to use alexedelsburg/Puma-3b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alexedelsburg/Puma-3b-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="alexedelsburg/Puma-3b-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("alexedelsburg/Puma-3b-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use alexedelsburg/Puma-3b-GGUF 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 alexedelsburg/Puma-3b-GGUF:Q4_1 # Run inference directly in the terminal: llama cli -hf alexedelsburg/Puma-3b-GGUF:Q4_1
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf alexedelsburg/Puma-3b-GGUF:Q4_1 # Run inference directly in the terminal: llama cli -hf alexedelsburg/Puma-3b-GGUF:Q4_1
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 alexedelsburg/Puma-3b-GGUF:Q4_1 # Run inference directly in the terminal: ./build/bin/llama cli -hf alexedelsburg/Puma-3b-GGUF:Q4_1
Use Docker
docker model run hf.co/alexedelsburg/Puma-3b-GGUF:Q4_1
- Llama new
- LM Studio
- Jan
- vLLM
How to use alexedelsburg/Puma-3b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "alexedelsburg/Puma-3b-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alexedelsburg/Puma-3b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/alexedelsburg/Puma-3b-GGUF:Q4_1
- SGLang
How to use alexedelsburg/Puma-3b-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "alexedelsburg/Puma-3b-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alexedelsburg/Puma-3b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "alexedelsburg/Puma-3b-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alexedelsburg/Puma-3b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use alexedelsburg/Puma-3b-GGUF with Ollama:
ollama run hf.co/alexedelsburg/Puma-3b-GGUF:Q4_1
- Unsloth Desktop
- Docker Model Runner
How to use alexedelsburg/Puma-3b-GGUF with Docker Model Runner:
docker model run hf.co/alexedelsburg/Puma-3b-GGUF:Q4_1
- Lemonade
How to use alexedelsburg/Puma-3b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull alexedelsburg/Puma-3b-GGUF:Q4_1
Run and chat with the model
lemonade run user.Puma-3b-GGUF-Q4_1
List all available models
lemonade list
- Atomic Chat
Puma 3B - GGUF
- Model creator: Bohan Du / acrastt
- Original model: Puma 3B
Description
This repo contains GGUF format model files for acrastt's Puma 3B.
About GGUF
GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp. GGUF offers numerous advantages over GGML, such as better tokenisation, and support for special tokens. It is also supports metadata, and is designed to be extensible.
Here is an incomplate list of clients and libraries that are known to support GGUF:
- llama.cpp. The source project for GGUF. Offers a CLI and a server option.
- text-generation-webui, the most widely used web UI, with many features and powerful extensions. Supports GPU acceleration.
- KoboldCpp, a fully featured web UI, with GPU accel across all platforms and GPU architectures. Especially good for story telling.
- LM Studio, an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration.
- LoLLMS Web UI, a great web UI with many interesting and unique features, including a full model library for easy model selection.
- Faraday.dev, an attractive and easy to use character-based chat GUI for Windows and macOS (both Silicon and Intel), with GPU acceleration.
- ctransformers, a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.
- llama-cpp-python, a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
- candle, a Rust ML framework with a focus on performance, including GPU support, and ease of use.
Prompt template: Human-Response
### HUMAN:
{prompt}
### RESPONSE:
How to run in llama.cpp
I use the following command line; adjust for your tastes and needs:
./main -m ./models/${MODEL} \
--color \
--ctx_size 2048 \
-n -1 \
-ngl 1 \
-ins -b 256 \
--top_k 10000 \
--temp 0.2 \
--repeat_penalty 1.1 \
-t 8
Change -t 10 to the number of physical CPU cores you have. For example if your system has 8 cores/16 threads, use -t 8.
Remove -ngl 1 if you don't have GPU acceleration.
Change -ctx_size 2048 to the desired sequence length for this model. For example, -c 4096 for a Llama 2 model. For models that use RoPE, add --rope-freq-base 10000 --rope-freq-scale 0.5 for doubled context, or --rope-freq-base 10000 --rope-freq-scale 0.25 for 4x context.
For other parameters and how to use them, please refer to the llama.cpp documentation
Provided files
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|---|---|---|---|---|---|
| puma-3b.q4_1.gguf | q4_1 | 4 | 2.14 GB | 4.64 GB | Original quant method, 4-bit. Higher accuracy than q4_0 but not as high as q5_0. However has quicker inference than q5 models. |
Thanks
- to Bohan Du / acrastt for the Puma model
- to TheBloke for all the quantized models and this model card template
- Downloads last month
- 14
4-bit