File size: 1,790 Bytes
9ef5507
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# OpenEnv Walkthrough

![OpenEnv Walkthrough](./images/banner.png)

A hands-on guide to building, deploying, and scaling RL environments with [OpenEnv](https://github.com/meta-pytorch/OpenEnv).

## Guide Structure

| Section | Description |
|---------|-------------|
| [1. Environments](./01-environments.md) | OpenEnv fundamentals, architecture, and OpenSpiel integration |
| [2. Deployment](./02-deployment.md) | Local dev, Docker, and HF Spaces deployment |
| [3. Scaling](./03-scaling.md) | WebSocket scaling and infrastructure benchmarks |
| [4. Training](./04-training.md) | GRPO training with TRL on Wordle |

## File Structure

```
tutorial/
β”œβ”€β”€ 01-environments.md          # OpenEnv fundamentals and architecture
β”œβ”€β”€ 02-deployment.md            # Local, Docker, and HF Spaces deployment
β”œβ”€β”€ 03-scaling.md               # WebSocket scaling and benchmarks
β”œβ”€β”€ 04-training.md              # GRPO training tutorial
└── examples/
    β”œβ”€β”€ OpenEnv_Tutorial.ipynb  # Interactive Colab notebook
    β”œβ”€β”€ wordle.py               # Wordle environment example
    β”œβ”€β”€ wordle_prompt.txt       # System prompt for Wordle
    β”œβ”€β”€ repl_with_llm.py        # REPL with LLM example
    └── unsloth_2048.ipynb      # Unsloth 2048 environment example
```

## Resources

| Resource | Link |
|----------|------|
| OpenEnv Repository | [github.com/meta-pytorch/OpenEnv](https://github.com/meta-pytorch/OpenEnv) |
| Environment Hub | [huggingface.co/collections/openenv](https://huggingface.co/collections/openenv/environment-hub) |
| TRL Integration Docs | [huggingface.co/docs/trl/openenv](https://huggingface.co/docs/trl/openenv) |
| Scaling Experiments | [github.com/burtenshaw/openenv-scaling](https://github.com/burtenshaw/openenv-scaling) |