Instructions to use Qaramba/llama31 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Qaramba/llama31 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Qaramba/llama31", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Qaramba/llama31 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 Qaramba/llama31:Q4_K_M # Run inference directly in the terminal: llama cli -hf Qaramba/llama31:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Qaramba/llama31:Q4_K_M # Run inference directly in the terminal: llama cli -hf Qaramba/llama31:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Qaramba/llama31:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Qaramba/llama31:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Qaramba/llama31:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Qaramba/llama31:Q4_K_M
Use Docker
docker model run hf.co/Qaramba/llama31:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use Qaramba/llama31 with Ollama:
ollama run hf.co/Qaramba/llama31:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use Qaramba/llama31 with Docker Model Runner:
docker model run hf.co/Qaramba/llama31:Q4_K_M
- Lemonade
How to use Qaramba/llama31 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Qaramba/llama31:Q4_K_M
Run and chat with the model
lemonade run user.llama31-Q4_K_M
List all available models
lemonade list
- Atomic Chat
File size: 783 Bytes
888ecb7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | FROM /workspace/Qaramba/llama31/Qaramba/llama31/unsloth.BF16.gguf
TEMPLATE """{{ if .System }}<|start_header_id|>system<|end_header_id|>
{{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>
{{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>
{{ .Response }}<|eot_id|>"""
PARAMETER stop "<|eom_id|>"
PARAMETER stop "<|finetune_right_pad_id|>"
PARAMETER stop "<|python_tag|>"
PARAMETER stop "<|start_header_id|>"
PARAMETER stop "<|end_header_id|>"
PARAMETER stop "<|end_of_text|>"
PARAMETER stop "<|eot_id|>"
PARAMETER stop "<|reserved_special_token_"
PARAMETER temperature 1.5
PARAMETER min_p 0.1
SYSTEM "Below are some instructions that describe some tasks. Write responses that appropriately complete each request." |