Quantization
Collection
A collection of quantized models. All the models can be fine-tuned by adding a LoRA Adapter. • 82 items • Updated • 3
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 "shuyuej/Command-R-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": "shuyuej/Command-R-GPTQ",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'Original Base Model: CohereForAI/c4ai-command-r-v01.
Link: https://huggingface.co/CohereForAI/c4ai-command-r-v01
{
"bits": 4,
"group_size": 128,
"damp_percent": 0.01,
"desc_act": true,
"static_groups": false,
"sym": true,
"true_sequential": true,
"model_name_or_path": null,
"model_file_base_name": null,
"quant_method": "gptq",
"checkpoint_format": "gptq"
}
Source Codes: https://github.com/vkola-lab/medpodgpt/tree/main/quantization.
Install from pip and serve model
# Install SGLang from pip: pip install sglang# Start the SGLang server: python3 -m sglang.launch_server \ --model-path "shuyuej/Command-R-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": "shuyuej/Command-R-GPTQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'