Instructions to use leoncca/Hy4-flash-AWQ-g32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- vLLM
How to use leoncca/Hy4-flash-AWQ-g32 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "leoncca/Hy4-flash-AWQ-g32" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "leoncca/Hy4-flash-AWQ-g32", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/leoncca/Hy4-flash-AWQ-g32
- SGLang
How to use leoncca/Hy4-flash-AWQ-g32 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 "leoncca/Hy4-flash-AWQ-g32" \ --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": "leoncca/Hy4-flash-AWQ-g32", "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 "leoncca/Hy4-flash-AWQ-g32" \ --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": "leoncca/Hy4-flash-AWQ-g32", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use leoncca/Hy4-flash-AWQ-g32 with Docker Model Runner:
docker model run hf.co/leoncca/Hy4-flash-AWQ-g32
Download VALIDATION.json from leoncca/Hy4-flash-AWQ-g32: direct link, hf CLI and curl.
- Browser
- Download file 862 Bytes
-
https://huggingface.co/leoncca/Hy4-flash-AWQ-g32/resolve/main/VALIDATION.json
- Command line
-
hf download hf://leoncca/Hy4-flash-AWQ-g32/VALIDATION.json
-
curl -L -o VALIDATION.json https://huggingface.co/leoncca/Hy4-flash-AWQ-g32/resolve/main/VALIDATION.json
862 Bytes
| { | |
| "evaluation": "exact full-vocabulary KL(candidate || BF16), matched teacher-forced inputs", | |
| "heldout_records": 28, | |
| "heldout_positions": 8675, | |
| "results": { | |
| "engine_rtn_vs_bf16": { | |
| "tokens": 8675, | |
| "mean_kl_nats": 0.15707621539054986, | |
| "median_kl_nats": 0.006873494708942999, | |
| "p95_kl_nats": 0.5160452199604939, | |
| "top1_agreement": 0.9037463976945245 | |
| }, | |
| "reference_awq_vs_bf16": { | |
| "tokens": 8675, | |
| "mean_kl_nats": 0.12044628703093599, | |
| "median_kl_nats": 0.00415916684564161, | |
| "p95_kl_nats": 0.34183280604645766, | |
| "top1_agreement": 0.924149855907781 | |
| }, | |
| "engine_awq_vs_bf16": { | |
| "tokens": 8675, | |
| "mean_kl_nats": 0.12217075366046726, | |
| "median_kl_nats": 0.004122920498998674, | |
| "p95_kl_nats": 0.3096675720509429, | |
| "top1_agreement": 0.9231123919308357 | |
| } | |
| } | |
| } | |