Instructions to use ktoprakucar/Llama-Guard-3-8B-Q8-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- vLLM
How to use ktoprakucar/Llama-Guard-3-8B-Q8-GPTQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ktoprakucar/Llama-Guard-3-8B-Q8-GPTQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ktoprakucar/Llama-Guard-3-8B-Q8-GPTQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ktoprakucar/Llama-Guard-3-8B-Q8-GPTQ
- SGLang
How to use ktoprakucar/Llama-Guard-3-8B-Q8-GPTQ 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 "ktoprakucar/Llama-Guard-3-8B-Q8-GPTQ" \ --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": "ktoprakucar/Llama-Guard-3-8B-Q8-GPTQ", "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 "ktoprakucar/Llama-Guard-3-8B-Q8-GPTQ" \ --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": "ktoprakucar/Llama-Guard-3-8B-Q8-GPTQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ktoprakucar/Llama-Guard-3-8B-Q8-GPTQ with Docker Model Runner:
docker model run hf.co/ktoprakucar/Llama-Guard-3-8B-Q8-GPTQ
This is the 8-bit quantized version of meta-llama/Llama-Guard-3-8B by following the example from the AutoGPTQ repository.
Safety Codes:
| Code | Meaning |
|---|---|
| S1 | Violent Crimes |
| S2 | Non-Violent Crimes |
| S3 | Sex-Related Crimes |
| S4 | Child Sexual Exploitation |
| S5 | Defamation |
| S6 | Specialized Advice |
| S7 | Privacy |
| S8 | Intellectual Property |
| S9 | Indiscriminate Weapons |
| S10 | Hate |
| S11 | Suicide & Self-Harm |
| S12 | Sexual Content |
| S13 | Elections |
| S14 | Code Interpreter Abuse |
license: llama3.1
- Downloads last month
- 11