Instructions to use fenglui/Fin-R1-awq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- vLLM
How to use fenglui/Fin-R1-awq with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fenglui/Fin-R1-awq" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fenglui/Fin-R1-awq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/fenglui/Fin-R1-awq
- SGLang
How to use fenglui/Fin-R1-awq 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 "fenglui/Fin-R1-awq" \ --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": "fenglui/Fin-R1-awq", "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 "fenglui/Fin-R1-awq" \ --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": "fenglui/Fin-R1-awq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use fenglui/Fin-R1-awq with Docker Model Runner:
docker model run hf.co/fenglui/Fin-R1-awq
| base_model: | |
| - SUFE-AIFLM-Lab/Fin-R1 | |
| pipeline_tag: text-generation | |
| license: apache-2.0 | |
| tags: | |
| - finetuned | |
| <div align="center"> | |
| <h1>AWQ VERSION FOR Fin-R1</h1> | |
| </div> | |
| <div align="center"> | |
| <h1>Fin-R1:通过强化学习驱动的金融推理大模型</h1> | |
| <!-- 徽章部分 --> | |
| [](https://www.apache.org/licenses/LICENSE-2.0)[](https://huggingface.co/SUFE-AIFLM-Lab/Fin-R1)[](https://arxiv.org/abs/2503.16252) | |
| </div> |