Text Generation
Transformers
Safetensors
edgerock
nvfp4
modelopt
quantized
custom_code
conversational
8-bit precision
Instructions to use hkust-aaron/EdgeRock-4B-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hkust-aaron/EdgeRock-4B-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hkust-aaron/EdgeRock-4B-NVFP4", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("hkust-aaron/EdgeRock-4B-NVFP4", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use hkust-aaron/EdgeRock-4B-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hkust-aaron/EdgeRock-4B-NVFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hkust-aaron/EdgeRock-4B-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/hkust-aaron/EdgeRock-4B-NVFP4
- SGLang
How to use hkust-aaron/EdgeRock-4B-NVFP4 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 "hkust-aaron/EdgeRock-4B-NVFP4" \ --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": "hkust-aaron/EdgeRock-4B-NVFP4", "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 "hkust-aaron/EdgeRock-4B-NVFP4" \ --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": "hkust-aaron/EdgeRock-4B-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use hkust-aaron/EdgeRock-4B-NVFP4 with Docker Model Runner:
docker model run hf.co/hkust-aaron/EdgeRock-4B-NVFP4
Download validation.json from hkust-aaron/EdgeRock-4B-NVFP4: direct link, hf CLI and curl.
- Browser
- Download file 23.6 kB
-
https://huggingface.co/hkust-aaron/EdgeRock-4B-NVFP4/resolve/main/validation.json
- Command line
-
hf download hf://hkust-aaron/EdgeRock-4B-NVFP4/validation.json
-
curl -L -o validation.json https://huggingface.co/hkust-aaron/EdgeRock-4B-NVFP4/resolve/main/validation.json
23.6 kB
| { | |
| "complete": true, | |
| "format": "W4A16_NVFP4", | |
| "quantizer_max_logit_error": 1.96484375, | |
| "quantizer_logit_cosine": 0.9957649111747742, | |
| "unquantized_tensors_exact": 290, | |
| "official_modelopt_decoder_bitwise_modules": 256, | |
| "generations": [ | |
| { | |
| "name": "multiply", | |
| "prompt": "Calculate 17 * 23. Give only the answer.", | |
| "prompt_tokens": 24, | |
| "output_tokens": 71, | |
| "output": "We need answer simple multiplication. Need final only answer. 17*23 = 391. Ensure boxed? User says give only answer. But system says final answer in boxed? User says only answer, likely just 391. Need maybe no extra. Final: 391.\n</think>\n391", | |
| "final_answer": "391", | |
| "matched_expected": true, | |
| "finished_by_eos": true, | |
| "seconds": 20.16705424245447, | |
| "peak_allocated_gib": 8.701036930084229 | |
| }, | |
| { | |
| "name": "equation", | |
| "prompt": "Solve x: 3*x + 7 = 31. Give only the answer.", | |
| "prompt_tokens": 30, | |
| "output_tokens": 50, | |
| "output": "We need answer user: \"Solve x: 3*x + 7 = 31. Give only the answer.\" Need final only answer, likely 8. Need ensure no extra. final: 8.\n</think>\n8", | |
| "final_answer": "8", | |
| "matched_expected": true, | |
| "finished_by_eos": true, | |
| "seconds": 3.694947845302522, | |
| "peak_allocated_gib": 8.70140790939331 | |
| }, | |
| { | |
| "name": "memory_update", | |
| "prompt": "The active project code is COBALT-7391.\nThe archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. The archive contains ordinary observations about the weather and landscape. \nUpdate: the active project code is now AMBER-5286. The earlier code is obsolete.\nAdditional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. Additional notes record the temperature, wind, and clouds each afternoon. \nWhat is the active project code now? Give only that code.", | |
| "prompt_tokens": 3463, | |
| "output_tokens": 92, | |
| "output": "We need answer user's question. Need parse. User text includes repeated lines and then \"Update: the active project code is now AMBER-5286. The earlier code is obsolete. Additional notes record...\" Then asks \"What is the active project code now? Give only that code.\" Need output only code. So final should be AMBER-5286. Ensure no extra.\n</think>\nAMBER-5286", | |
| "final_answer": "AMBER-5286", | |
| "matched_expected": true, | |
| "finished_by_eos": true, | |
| "seconds": 9.767577684484422, | |
| "peak_allocated_gib": 8.810107707977295 | |
| } | |
| ], | |
| "all_generation_checks_passed": true, | |
| "runtime": "GPU reference: NVFP4 weights expanded to BF16 once at loading", | |
| "hardware": "NVIDIA H800", | |
| "max_new_tokens": 2048, | |
| "do_sample": false, | |
| "fresh_process_reload_max_logit_error": 0.0, | |
| "quantizer_probe_phase": "Before the ModelOpt exporter unifies weight scales for linears sharing an input; final-checkpoint checks use the official decoder and a fresh-process reload." | |
| } | |