33
44For installing Trinity-RFT, you have three options: from source (recommended), via PyPI, or using Docker.
55
6- Before installing, ensure your system meets the following requirements :
6+ ** Before you begin ** , check your system setup :
77
8- - ** Python** : Version 3.10 to 3.12 (inclusive)
9- - ** CUDA** : Version >= 12.8
10- - ** GPUs** : At least 2 GPUs
8+ ### If you have GPUs and want to use them:
9+ Make sure your system meets these requirements:
10+ - ** Python** : 3.10 – 3.12
11+ - ** CUDA** : 12.8 or higher
12+ - ** GPUs** : At least 2 available
13+
14+ ### If you don’t have GPUs (or prefer not to use them):
15+ You can use the ` tinker ` option instead, which only requires:
16+ - ** Python** : 3.11 – 3.12
17+ - ** GPUs** : Not required
1118
1219---
1320
@@ -32,10 +39,15 @@ Choose one of the following options:
3239conda create -n trinity python=3.12
3340conda activate trinity
3441
35- pip install -e " .[dev]"
36- pip install -e " .[flash_attn]"
37- # if you encounter issues when installing flash-attn, try:
42+ pip install -e " .[vllm,flash_attn]"
43+
44+ # If you have no GPU, comment out the line above and uncomment this instead:
45+ # pip install -e ".[tinker]"
46+
47+ # If you encounter issues when installing flash-attn, try:
3848# pip install flash-attn==2.8.1 --no-build-isolation
49+
50+ pip install -e " .[dev]" # for development like linting and debugging
3951```
4052
4153#### Using venv
@@ -44,18 +56,26 @@ pip install -e ".[flash_attn]"
4456python3.10 -m venv .venv
4557source .venv/bin/activate
4658
47- pip install -e " .[dev]"
48- pip install -e " .[flash_attn]"
49- # if you encounter issues when installing flash-attn, try:
59+ pip install -e " .[vllm,flash_attn]"
60+
61+ # If you have no GPU, comment out the line above and uncomment this instead:
62+ # pip install -e ".[tinker]"
63+
64+ # If you encounter issues when installing flash-attn, try:
5065# pip install flash-attn==2.8.1 --no-build-isolation
66+
67+ pip install -e " .[dev]" # for development like linting and debugging
5168```
5269
5370#### Using ` uv `
5471
5572[ ` uv ` ] ( https://github.com/astral-sh/uv ) is a modern Python package installer.
5673
5774``` bash
58- uv sync --extra dev --extra flash_attn
75+ uv sync --extra vllm --extra dev --extra flash_attn
76+
77+ # If you have no GPU, try to use Tinker instead:
78+ # uv sync --extra tinker --extra dev
5979```
6080
6181---
0 commit comments