Instructions to use z-lab/Meta-Llama-3-8B-PARO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use z-lab/Meta-Llama-3-8B-PARO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="z-lab/Meta-Llama-3-8B-PARO")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("z-lab/Meta-Llama-3-8B-PARO") model = AutoModelForCausalLM.from_pretrained("z-lab/Meta-Llama-3-8B-PARO") - MLX
How to use z-lab/Meta-Llama-3-8B-PARO with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("z-lab/Meta-Llama-3-8B-PARO") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- LM Studio
- vLLM
How to use z-lab/Meta-Llama-3-8B-PARO with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "z-lab/Meta-Llama-3-8B-PARO" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "z-lab/Meta-Llama-3-8B-PARO", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/z-lab/Meta-Llama-3-8B-PARO
- SGLang
How to use z-lab/Meta-Llama-3-8B-PARO 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 "z-lab/Meta-Llama-3-8B-PARO" \ --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": "z-lab/Meta-Llama-3-8B-PARO", "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 "z-lab/Meta-Llama-3-8B-PARO" \ --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": "z-lab/Meta-Llama-3-8B-PARO", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - MLX LM
How to use z-lab/Meta-Llama-3-8B-PARO with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "z-lab/Meta-Llama-3-8B-PARO" --prompt "Once upon a time"
- Docker Model Runner
How to use z-lab/Meta-Llama-3-8B-PARO with Docker Model Runner:
docker model run hf.co/z-lab/Meta-Llama-3-8B-PARO
z-lab/Meta-Llama-3-8B-PARO
Pairwise Rotation Quantization for Efficient Reasoning LLM Inference
ParoQuant is the state-of-the-art INT4 quantization for LLMs. It closes the accuracy gap with FP16 while running at near-AWQ speed. Supports NVIDIA GPUs (vLLM, Transformers) and Apple Silicon (MLX). For more information, see https://github.com/z-lab/paroquant.
z-lab/Meta-Llama-3-8B-PARO is a 4-bit meta-llama/Meta-Llama-3-8B quantized with ParoQuant. Check out other ParoQuant models from the Hugging Face collection.
Quick Start
Installation
# NVIDIA GPU (CUDA 12.9)
pip install "paroquant[vllm]"
# NVIDIA GPU (CUDA 13.0)
pip install "paroquant[vllm]" "vllm==0.19.1" \
--extra-index-url https://wheels.vllm.ai/0.19.1/cu130 \
--extra-index-url https://download.pytorch.org/whl/cu130
# Apple Silicon
pip install "paroquant[mlx]"
Interactive Chat
python -m paroquant.cli.chat --model z-lab/Meta-Llama-3-8B-PARO
OpenAI-Compatible API Server
For vLLM, you can directly use vllm serve to serve ParoQuant models:
vllm serve z-lab/Meta-Llama-3-8B-PARO --port 8000
For other frameworks:
python -m paroquant.cli.serve --model z-lab/Meta-Llama-3-8B-PARO --port 8000
Docker (NVIDIA GPU)
The following commands map the local cache directory to the container in order to persist kernel cache across runs. Remove
-v ...to disable this behavior.
# Interactive chat
docker run --pull=always --rm -it --gpus all --ipc=host \
-v $HOME/.cache/paroquant:/root/.cache/paroquant \
ghcr.io/z-lab/paroquant:chat --model z-lab/Meta-Llama-3-8B-PARO
# API server (port 8000)
docker run --pull=always --rm -it --gpus all --ipc=host -p 8000:8000 \
-v $HOME/.cache/paroquant:/root/.cache/paroquant \
ghcr.io/z-lab/paroquant:serve --model z-lab/Meta-Llama-3-8B-PARO
Citation
@inproceedings{liang2026paroquant,
title = {{ParoQuant: Pairwise Rotation Quantization for Efficient Reasoning LLM Inference}},
author = {Liang, Yesheng and Chen, Haisheng and Zhang, Zihan and Han, Song and Liu, Zhijian},
booktitle = {International Conference on Learning Representations (ICLR)},
year = {2026}
}
- Downloads last month
- 1,100
4-bit
Model tree for z-lab/Meta-Llama-3-8B-PARO
Base model
meta-llama/Meta-Llama-3-8B