Skip to content

Commit b8fbae2

Browse files
authored
Merge pull request #5 from anjo7778/codex/integrate-rl-gym-for-reinforcement-learning
Update torch requirement for newer Python
2 parents 5528fb5 + b579e65 commit b8fbae2

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,20 @@ RLGym example bot for the RLBot framework, based on the official RLBotPythonExam
55

66
This bot runs the Actor class in `src/actor.py`, you're expected to replace that with the output of your model
77

8-
By default we use DefaultObs from RLGym, AdvancedObs is also available in this project.
8+
By default we use DefaultObs from RLGym, AdvancedObs is also available in this project.
9+
10+
## Using RLGym resources
11+
12+
The builders and parsers in this project come from [RLGym](https://rlgym.org/). Their documentation explains how
13+
observations and actions are structured during training, which directly maps to the `DefaultObs`/`AdvancedObs` and
14+
`DefaultAction` helpers shipped here.
15+
16+
- Review the observation/action spaces on the RLGym site to choose the builder that matches your trained agent.
17+
- Keep the `tick_skip` in `src/bot.py` aligned with the value you used when training through RLGym.
18+
- When loading a trained policy in `src/agent.py`, ensure the state formatting mirrors the RLGym observation builder and
19+
parser combination you selected.
20+
21+
Point your teammates to https://rlgym.org/ if they need an overview of how the environment works before swapping in a model.
922

1023
You can also provide your own custom ObservationBuilder by copying it over and replacing the `rlgym` imports with `rlgym_compat` (check `src/obs/` for some examples)
1124

src/requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
# You will automatically get updates for all versions starting with "1.".
33
rlbot==1.*
44
--find-links https://download.pytorch.org/whl/torch_stable.html
5-
torch==1.9.1+cpu
5+
# Torch 1.9.1 wheels are no longer published for newer Python versions.
6+
# Pin to a recent CPU build that is available on PyPI to avoid installation errors.
7+
torch==2.2.2
68
rlgym-compat>=1.1.0
79
numpy
810

0 commit comments

Comments
 (0)