Text Generation
Transformers
Safetensors
PyTorch
English
llama
llama-3
quantization
post-training-quantization
warpquant
hadamard-transform
output-fisher
llm
text-generation-inference
Instructions to use HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4") model = AutoModelForCausalLM.from_pretrained("HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4
- SGLang
How to use HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4 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 "HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4" \ --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": "HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4", "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 "HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4" \ --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": "HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4 with Docker Model Runner:
docker model run hf.co/HarimxChoi/WarpQuant-Llama-3-8B-R16E4H4
| { | |
| "source": "E:\\bau-training\\runs\\remote\\warpquant-llama3-8b-benchmark-20260815\\source-bf16", | |
| "base": "E:\\bau-training\\runs\\remote\\warpquant-llama3-8b-benchmark-20260815\\block-gptq", | |
| "selection": "E:\\bau-training\\runs\\remote\\warpquant-imatrix-newhost-20260815\\fisher-benchmark\\s1-output-fisher-materialization-selection.json", | |
| "selection_sha256": "fb633bb7e613a6619c9bcbfa6e53aed41e46b874f77d01a6e16414f42b58a1a5", | |
| "result_index": 1, | |
| "domain": "original", | |
| "base_selected_bpw": 3.5, | |
| "selected_values": 6979321856, | |
| "selected_average_bpw": 3.549999727652623, | |
| "recovery_bits": 16, | |
| "group_size": 128, | |
| "recovery_scales": 0, | |
| "index_bits": 623968, | |
| "tensor_count": 91, | |
| "column_count": 19499, | |
| "corrected_values": 21771264, | |
| "auxiliary_bits": null, | |
| "embedding_bits": 4, | |
| "embedding_values": 525336576, | |
| "embedding_scales": 4104192, | |
| "visual_bits": null, | |
| "visual_values": 0, | |
| "visual_scales": 0, | |
| "output_head_bits": 4, | |
| "output_head_values": 525336576, | |
| "output_head_scales": 4104192, | |
| "remaining_bf16_values": 266240, | |
| "total_values": 8030261248, | |
| "analytical_source_bpw": 3.6256450918394827, | |
| "shard_sha256": { | |
| "model-00001-of-00004.safetensors": "4059f8ab3f27a3639028152e35f969cb4367a97265b0419c5fb606c09ca46a09", | |
| "model-00002-of-00004.safetensors": "693b7dfccaa4a267b69d66ab8828797e857d13fec36619c1c861d7502f5e1501", | |
| "model-00003-of-00004.safetensors": "8cc2ceec125b33efe0fe483ba3d0d08aadf2d5e53f87ded5d90c6d5ed4eea8d1", | |
| "model-00004-of-00004.safetensors": "b292fe10eb2485e81fc2fcecd50f38bdac5e2609efb55f35078fa377bce0bc74" | |
| } | |
| } | |