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 files123---license: apache-2.0---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156---license: apache-2.0base_model: Qwen/Qwen3-8Blibrary_name: transformerspipeline_tag: text-generationlanguage:- en- zhtags:- finance- reinforcement-learning- reasoning- qwen3- stock-selection- quantitative-finance---# Alpha-R1<p align="center"><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**.It is the official implementation accompanying the paper:> [Alpha-R1: Alpha Screening with LLM Reasoning via Reinforcement Learning](https://arxiv.org/abs/2512.23515)---# OverviewAlpha-R1 is designed for **Alpha Screening** rather than general-purpose conversation.Unlike conventional LLMs, Alpha-R1 learns to reason over- Financial factor descriptions- Historical price trends- Market news- Portfolio constraintsto produce interpretable alpha-selection decisions.The model is optimized using reinforcement learning with trading performance as the optimization objective, enabling stronger reasoning ability for quantitative investment tasks.---# Highlights- 🧠 Reinforcement-learning aligned financial reasoning- 📈 Multi-modal market understanding (news + quantitative factors + price)- 📊 Strong generalization across different asset pools- 💰 Optimized for alpha generation instead of language modelingAccording to the paper, Alpha-R1 achieves:| Dataset | Annual Return | Sharpe | Max Drawdown ||----------|--------------|---------|--------------|| CSI300 | 27.59% | 1.62 | 6.76% || CSI1000 | 78.18% | 4.03 | 9.25% |---# Model Details| Item | Value ||------|------|| Base Model | Qwen3-8B || Model Type | Causal Language Model || Training | Reinforcement Learning Fine-tuning || Domain | Quantitative Finance || Language | English || Intended Task | Stock Selection & Financial Reasoning |---# TrainingAlpha-R1 is initialized from **Qwen3-8B** and further optimized using reinforcement learning.The training objective encourages the model to generate reasoning trajectories that maximize downstream portfolio performance instead of only predicting next tokens.The model is trained using:- Financial factor descriptions- Historical price information- Market news- Trading rewards derived from portfolio returnsMore details can be found in the accompanying paper.---## Training DataAlpha-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.---# Intended UseAlpha-R1 is intended for research on- Financial reasoning- Quantitative investment- Alpha mining- LLM-based decision making- Reinforcement learning for financeExample prompts include:- Rank candidate stocks.- Explain factor exposure.- Analyze market news.- Compare investment opportunities.- Generate reasoning for stock selection.---# Limitations- This model is **not** a financial advisor.- Outputs should **not** be regarded as investment advice.- Performance reported in the paper is obtained under a specific backtesting protocol and does not guarantee future returns.- Users should perform their own validation before any real-world deployment.---# CitationIf you find Alpha-R1 useful, please cite:```bibtex@article{alphar1,title={Alpha-R1: Alpha Screening with LLM Reasoning via Reinforcement Learning},author={Anonymous},year={2025}}```---# LicenseThis model is released under the Apache-2.0 License.Please also comply with the license of the base model (**Qwen3-8B**) when using this model.---# AcknowledgementsAlpha-R1 is built upon the excellent **Qwen3-8B** model developed by Alibaba.We thank the open-source community for making this work possible.
README.md+153