Text Generation
Transformers
GGUF
mistral
quantized
2-bit
3-bit
4-bit precision
5-bit
6-bit
8-bit precision
GGUF
llama
llama-3
conversational
Instructions to use MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MaziyarPanahi/Llama-3-8B-Instruct-v0.1-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 MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF: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 MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF: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 MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF:Q4_K_M
Use Docker
docker model run hf.co/MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF:Q4_K_M
- SGLang
How to use MaziyarPanahi/Llama-3-8B-Instruct-v0.1-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 "MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF with Ollama:
ollama run hf.co/MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF with Docker Model Runner:
docker model run hf.co/MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF:Q4_K_M
- Lemonade
How to use MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MaziyarPanahi/Llama-3-8B-Instruct-v0.1-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Llama-3-8B-Instruct-v0.1-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Commit History
-
Upload folder using huggingface_hub
Verified signature306dbbb -
Upload folder using huggingface_hub (#1)
Verified signature- 5eb334394ea27817b9dc671e0a58666f40a519cbcfffaa78c7c3bb3dd8c38cec (c8dea101aa96fa49e9cc62b636a0efdf65ba850d) - fa9a87a7886e4405e538cd0828e630246c1ee00527c476ee45adcddf309b0185 (b200346499c17a3d2c382b4ddce1834a2d0548cf) - 6a37d375902395eb66d23e4c10323fd9e6d83e4308e8ceb3a99cd94c767f3664 (49a3334be2d9405deb91209c6899435281e862cd) - 1bb9bcbb324e072e225bdba15fb650b83e13c63eef5e0688ef6738ee70be1d2a (1073371d80ec30fa46af49a413daa42cdfebeb63) - 1ff0e290962df82b41a6cecefd4f756571b2bf8f0674f51d8573014a07383fe9 (e760821c8ad2b876be5e831ac97c5d1aab37453b) - 5fc070a790f1de53f0a9cf4a1bb02b040d2d2cd93157670d667c7aab480bd9a3 (f5c4acdb96487ddd2bddde56b4078842b10d88ca) - 1ca8dd1cd18dbcf5311d53f69b20e1045f41d3dde9d35afe699beaa3f57cbc6c (eed0f5098cc0ce5ca22466ba72f67ea6ed274e53) - 6536d6efa9b3d37712f6bedc8ce3f2d00fd9484b9a222db7b18904a703ac915a (ad762da6ddcf9f979dad9cf6d524b7cb10256f70) - 4506272a25469eb7748db46088be518971fcc13fddd51d29c1be296e3447e9ee (db04ec01f80b897e013edd3a450ab76f2dca1128) - 3aeac1aa…58c17ff -
initial commit
Verified signaturec2fdc81