Text Generation
Transformers
Safetensors
English
Chinese
edgerock
rock-matrix
gptq
int4
4-bit precision
quantized
reasoning
constant-memory
memory-efficient
edge-ai
custom_code
conversational
Instructions to use hkust-aaron/EdgeRock-4B-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hkust-aaron/EdgeRock-4B-GPTQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hkust-aaron/EdgeRock-4B-GPTQ", 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-GPTQ", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use hkust-aaron/EdgeRock-4B-GPTQ 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-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": "hkust-aaron/EdgeRock-4B-GPTQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/hkust-aaron/EdgeRock-4B-GPTQ
- SGLang
How to use hkust-aaron/EdgeRock-4B-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 "hkust-aaron/EdgeRock-4B-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": "hkust-aaron/EdgeRock-4B-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 "hkust-aaron/EdgeRock-4B-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": "hkust-aaron/EdgeRock-4B-GPTQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use hkust-aaron/EdgeRock-4B-GPTQ with Docker Model Runner:
docker model run hf.co/hkust-aaron/EdgeRock-4B-GPTQ
Download validation.json from hkust-aaron/EdgeRock-4B-GPTQ: direct link, hf CLI and curl.
- Browser
- Download file 23.1 kB
-
https://huggingface.co/hkust-aaron/EdgeRock-4B-GPTQ/resolve/main/validation.json
- Command line
-
hf download hf://hkust-aaron/EdgeRock-4B-GPTQ/validation.json
-
curl -L -o validation.json https://huggingface.co/hkust-aaron/EdgeRock-4B-GPTQ/resolve/main/validation.json
23.1 kB
| { | |
| "complete": true, | |
| "format": "GPTQ W4A16", | |
| "unquantized_tensors_exact": 290, | |
| "packed_linear_modules": 256, | |
| "generations": [ | |
| { | |
| "name": "multiply", | |
| "prompt": "Calculate 17 * 23. Give only the answer.", | |
| "prompt_tokens": 24, | |
| "output_tokens": 56, | |
| "output": "We need to calculate 17 * 23. 17*20=340, 17*3=51, sum=391. So answer 391. Need only answer.\n</think>\n391", | |
| "final_answer": "391", | |
| "matched_expected": true, | |
| "finished_by_eos": true, | |
| "seconds": 90.76066587027162, | |
| "peak_allocated_gib": 3.3960089683532715 | |
| }, | |
| { | |
| "name": "equation", | |
| "prompt": "Solve x: 3*x + 7 = 31. Give only the answer.", | |
| "prompt_tokens": 30, | |
| "output_tokens": 79, | |
| "output": "3*x + 7 = 31\nSubtract 7 from both sides:\n3*x = 31 - 7\n3*x = 24\nDivide both sides by 3:\nx = 24/3\nx = 8\n\nThe answer is 8.\n\\boxed{8}\n</think>\n\\boxed{8}", | |
| "final_answer": "\\boxed{8}", | |
| "matched_expected": true, | |
| "finished_by_eos": true, | |
| "seconds": 48.449694238603115, | |
| "peak_allocated_gib": 3.3964028358459473 | |
| }, | |
| { | |
| "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": 74, | |
| "output": "We need answer user's question. The user says: \"The active project code is now AMBER-5286. The earlier code is obsolete. ... What is the active project code now? Give only that code.\" Need output only code. So final should be AMBER-5286.\n</think>\nAMBER-5286", | |
| "final_answer": "AMBER-5286", | |
| "matched_expected": true, | |
| "finished_by_eos": true, | |
| "seconds": 515.9531089058146, | |
| "peak_allocated_gib": 3.5070509910583496 | |
| } | |
| ], | |
| "all_generation_checks_passed": true, | |
| "runtime": "GPU packed INT4 linear weights, fused Triton BF16-activation matmul", | |
| "hardware": "NVIDIA H800", | |
| "max_new_tokens": 2048, | |
| "do_sample": false, | |
| "fresh_process_reload_max_logit_error": 0.0 | |
| } | |