Text Generation
Transformers
English
Chinese
finance
reinforcement-learning
reasoning
qwen3
alpha-screening
quantitative-finance
Run this model with HF Jobs
Run AFatRat/Alpha-R1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/AFatRat/Alpha-R1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/AFatRat/Alpha-R1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/AFatRat/Alpha-R1. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/AFatRat/Alpha-R1. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use AFatRat/Alpha-R1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AFatRat/Alpha-R1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AFatRat/Alpha-R1")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AFatRat/Alpha-R1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AFatRat/Alpha-R1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AFatRat/Alpha-R1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AFatRat/Alpha-R1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AFatRat/Alpha-R1
- SGLang
How to use AFatRat/Alpha-R1 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 "AFatRat/Alpha-R1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AFatRat/Alpha-R1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "AFatRat/Alpha-R1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AFatRat/Alpha-R1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AFatRat/Alpha-R1 with Docker Model Runner:
docker model run hf.co/AFatRat/Alpha-R1
Update README.md
Browse files20 unmodified lines212223242425262725 unmodified lines535455565657585910 unmodified lines70717273747374757677787980808182836 unmodified lines909192939493949795969997989910010110210310410510610710810911011111210111311410311511610510610710810911711811111912011311411511611712112212312411 unmodified lines13613713813513914013714114214314414520 unmodified lines <img src="https://huggingface.co/front/assets/huggingface_logo.svg" width="120"></p>
**Alpha-R1** is a reasoning-enhanced Large Language Model for quantitative stock selection, trained with Reinforcement Learning (RL) on top of **Qwen3-8B**.**Alpha-R1** is a reasoning-enhanced Large Language Model for quantitative alpha selection, trained with Group Relative Policy Optimization(GRPO) on top of **Qwen3-8B**.
It is the official implementation accompanying the paper:
25 unmodified lines- 📊 Strong generalization across different asset pools- 💰 Optimized for alpha generation instead of language modeling
According to the paper, Alpha-R1 achieves:Alpha-R1 achieves:
| Dataset | Annual Return | Sharpe | Max Drawdown ||----------|--------------|---------|--------------|10 unmodified lines| Model Type | Causal Language Model || Training | Reinforcement Learning Fine-tuning || Domain | Quantitative Finance || Language | English || Intended Task | Stock Selection & Financial Reasoning || Language | English \ Chinese || Intended Task | Alpha Selection & Financial Reasoning |
---
# Training
Alpha-R1 is initialized from **Qwen3-8B** and further optimized using reinforcement learning.Alpha-R1 is initialized from **Qwen3-8B** and further optimized using GRPO.
The training objective encourages the model to generate reasoning trajectories that maximize downstream portfolio performance instead of only predicting next tokens.
6 unmodified lines
More details can be found in the accompanying paper.
---
## Training Data
Alpha-R1 was trained using a proprietary financial reasoning dataset constructed from market information, factor semantic descriptions, and financial news. Due to data licensing and copyright restrictions, the training dataset is not publicly released.Alpha-R1 was trained on a proprietary financial reasoning dataset constructed by the authors. Rather than relying on an existing benchmark, the training data was generated through a multi-stage pipeline that integrates quantitative market information with semantic reasoning.
---The data construction process consists of the following stages:
1. **Market Data Abstraction.** Historical market observations were transformed into structured textual descriptions, including price-based market summaries derived from technical indicators, trading activity, and sector rotation, as well as news-based market summaries generated from financial news and macroeconomic events.
2. **Iterative Market Memory Construction.** Weekly market descriptions were recursively summarized by an LLM to build a long-term historical market memory, enabling the model to reason over evolving market regimes instead of isolated daily observations.
3. **Factor Profiling.** A dynamic factor zoo was constructed from computationally feasible Alpha101 factors. Each factor was systematically backtested over historical data to obtain quantitative performance statistics, including return, volatility, and decay characteristics. These statistics, together with the historical market memory, were used to generate semantic factor descriptions that explain the economic intuition, applicable market regimes, and potential limitations of each factor.
4. **Reasoning Training Samples.** Each training sample contains: - the current market state, - semantic descriptions of candidate factors, - historical market memory, - and the corresponding factor candidates to be screened.
During training, candidate factors were randomly sampled from the full factor pool to encourage reasoning and generalization rather than memorization of specific factors.
# Intended Use5. **Reinforcement Learning Signals.** Instead of human preference annotations, Alpha-R1 employs objective market feedback as supervision. Rewards are computed from realized portfolio performance using a linear reward model, allowing the reasoning policy to be optimized through GRPO toward superior risk-adjusted investment performance.
Alpha-R1 is intended for research onThe training dataset is internally constructed for research purposes and is not publicly released.
- Financial reasoning- Quantitative investment- Alpha mining- LLM-based decision making- Reinforcement learning for finance## Intended Use
Example prompts include:Alpha-R1 is intended solely for **alpha screening** in quantitative investment research. Given the current market state, historical market memory, and semantic descriptions of candidate alpha factors, the model identifies factors that are more likely to generate excess returns under the prevailing market regime.
- Rank candidate stocks.- Explain factor exposure.- Analyze market news.- Compare investment opportunities.- Generate reasoning for stock selection.The model is designed as a research tool for factor selection and should be used together with downstream portfolio construction, risk management, and execution systems. It does not generate trading signals, execute trades, provide investment advice, or manage portfolios autonomously.
---
11 unmodified linesIf you find Alpha-R1 useful, please cite:
```bibtex@article{alphar1,@article{jiang2025alphar1, title={Alpha-R1: Alpha Screening with LLM Reasoning via Reinforcement Learning}, author={Anonymous}, author={Jiang, Zuoyou and Zhao, Li and Sun, Rui and Sun, Ruohan and Li, Zhongjian and Li, Jing and Jiang, Daxin and Bai, Zuo and Hua, Cheng}, journal={arXiv preprint arXiv:2512.23515}, year={2025}}```README.md+29-24