Salesforce/wikitext
Viewer β’ Updated β’ 3.71M β’ 1.33M β’ 716
How to use AvoCahDoe/llama-2-13b-rlmpq-aggressive with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="AvoCahDoe/llama-2-13b-rlmpq-aggressive") # Load model directly
from transformers import AutoTokenizer, AutoModelForMultimodalLM
tokenizer = AutoTokenizer.from_pretrained("AvoCahDoe/llama-2-13b-rlmpq-aggressive")
model = AutoModelForMultimodalLM.from_pretrained("AvoCahDoe/llama-2-13b-rlmpq-aggressive")How to use AvoCahDoe/llama-2-13b-rlmpq-aggressive with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "AvoCahDoe/llama-2-13b-rlmpq-aggressive"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "AvoCahDoe/llama-2-13b-rlmpq-aggressive",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/AvoCahDoe/llama-2-13b-rlmpq-aggressive
How to use AvoCahDoe/llama-2-13b-rlmpq-aggressive with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "AvoCahDoe/llama-2-13b-rlmpq-aggressive" \
--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": "AvoCahDoe/llama-2-13b-rlmpq-aggressive",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "AvoCahDoe/llama-2-13b-rlmpq-aggressive" \
--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": "AvoCahDoe/llama-2-13b-rlmpq-aggressive",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use AvoCahDoe/llama-2-13b-rlmpq-aggressive with Docker Model Runner:
docker model run hf.co/AvoCahDoe/llama-2-13b-rlmpq-aggressive
Standalone RL-MPQ (Reinforcement Learning Mixed-Precision Quantization) checkpoint for the Aggressive scenario β a quantized variant of meta-llama/Llama-2-13b-hf.
| Field | Value |
|---|---|
| Base model | meta-llama/Llama-2-13b-hf |
| Scenario | Aggressive |
| Avg bits / weight | 3.75 |
| Compression vs FP16 | 4.2667Γ |
| WikiText-2 PPL | 4.5724 |
| Layers | 40 |
| Bit distribution | {'3': 10, '4': 30} |
| Format | Fake-quant FP16 + rlmpq_policy.json |
Collection: RL-MPQ β Llama 2 13B β all five scenarios for Llama 2 13B.
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "AvoCahDoe/llama-2-13b-rlmpq-aggressive"
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype="float16")
tokenizer = AutoTokenizer.from_pretrained(repo)
| Scenario | Avg bits | Compression | WikiText-2 PPL |
|---|---|---|---|
| Balanced | 4.4 | 3.6364x | 4.4797 |
| Conservative | 5.2 | 3.0769x | 4.4663 |
| Extreme Survival | 2.775 | 5.7658x | 6.1148 |
| High Fidelity | 6.7 | 2.3881x | 4.4313 |
Grouped archive (all scenarios in one repo): AvoCahDoe/llama-2-13b-rlmpq
| File | Description |
|---|---|
config.json |
Llama architecture + RL-MPQ metadata |
model.safetensors |
Fake-quantized weights |
rlmpq_policy.json |
Per-layer bit-width policy |
rlmpq_metrics.json |
Validation & PPL summary |
@misc{rlmpq_llama_2_13b_aggressive_2026,
title = {RL-MPQ Aggressive: Llama 2 13B Mixed-Precision Quantization},
author = {AvoCahDoe},
year = {2026},
url = {https://huggingface.co/AvoCahDoe/llama-2-13b-rlmpq-aggressive}
}
Base model
meta-llama/Llama-2-13b-hf