burtenshaw HF Staff commited on
Commit
fbd053c
·
verified ·
1 Parent(s): 324635d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +52 -6
README.md CHANGED
@@ -3,24 +3,70 @@ license: apache-2.0
3
  sdk: static
4
  ---
5
 
6
- # OpenEnv: Agentic Execution Environments
 
 
 
 
 
 
 
 
7
 
8
  A community driven collection of OpenEnv-spec Environments composed of a **Hub** and a **Standardized spec** to ensure environment compatibility.
9
 
10
  <a href="https://rdi.berkeley.edu/agentx-agentbeats.html" style="text-decoration: none; color: inherit; width: 100%; height: 120px; margin-bottom: 10px; margin-top: 10px;">
11
- <div style="padding: 5px; padding-left: 20px; border-radius: 8px; background-image: linear-gradient(to bottom, coral, lightcoral); color: black; box-shadow: 1px 1px 3px rgba(0,0,0,0.1); border: 2px solid #3498db; height: 100%; transition: all 0.3s ease;" onmouseover="this.style.transform='scale(1.02)'; this.style.boxShadow='2px 2px 8px rgba(0,0,0,0.2)'; this.style.backgroundImage='linear-gradient(to bottom, #d6f0ff, #b8daff)';" onmouseout="this.style.transform='scale(1)'; this.style.boxShadow='1px 1px 3px rgba(0,0,0,0.1)'; this.style.backgroundImage='linear-gradient(to bottom, #e6f7ff, #cce5ff)';">
12
  <p> Join the Hackathon! </p>
13
  <p>Additionally, we’re thrilled to announce a new AgentBeats custom track: the <strong><a href="https://drive.google.com/file/d/1NASall4R84xAhoDdcaMwwJ78Ao3B-EK4/view?usp=sharing" rel="">OpenEnv Challenge: SOTA Environments to Drive General Intelligence</a></strong>, sponsored by the <a href="https://pytorch.org/" rel="">PyTorch</a> team at <a href="https://www.meta.com/" rel="">Meta</a>, <a href="https://huggingface.co/" rel="">Hugging Face</a>, and <a href="https://unsloth.ai/" rel="">Unsloth</a>. Participants will compete to develop innovative, open-source RL environments that push the frontiers of agent learning, with a prize pool of <strong>$10K in Hugging Face credits</strong>, and the chance to be published on the <a href="https://pytorch.org/blog/" rel="">PyTorch blog</a></p>
14
  <a href="https://rdi.berkeley.edu/agentx-agentbeats.html">Sign up here</a>
15
  </div>
16
  </a>
17
 
18
- ## OpenEnv Spec
19
 
20
- An e2e framework for creating, deploying and using isolated execution environments for agentic RL training, built using Gymnasium style simple APIs.
21
- Repo: https://github.com/meta-pytorch/OpenEnv
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
- [Open In Colab](https://colab.research.google.com/github/meta-pytorch/OpenEnv/blob/main/examples/OpenEnv_Tutorial.ipynb) ← Try the Interactive Tutorial!
 
24
 
25
  ## Hugging Face x Meta-PyTorch
26
 
 
3
  sdk: static
4
  ---
5
 
6
+ # <img width="35" height="35" alt="image" src="https://github.com/user-attachments/assets/2700a971-e5d6-4036-b03f-2f89c9791609" /> OpenEnv: Agentic Execution Environments
7
+
8
+ An e2e framework for creating, deploying and using isolated execution environments for agentic RL training, built using Gymnasium style simple APIs.
9
+
10
+ [![PyPI](https://img.shields.io/pypi/v/openenv?color=blue)](https://pypi.org/project/openenv/)
11
+ [![Discord](https://img.shields.io/badge/Discord-OpenEnv-7289da?style=flat&logo=discord&logoColor=white)](https://discord.gg/YsTYBh6PD9)
12
+ [![Docs](https://img.shields.io/badge/Docs-Explore-blue?logo=readthedocs&logoColor=white)](https://meta-pytorch.org/OpenEnv/)
13
+
14
+ ## OpenEnv: Agentic Execution Environments
15
 
16
  A community driven collection of OpenEnv-spec Environments composed of a **Hub** and a **Standardized spec** to ensure environment compatibility.
17
 
18
  <a href="https://rdi.berkeley.edu/agentx-agentbeats.html" style="text-decoration: none; color: inherit; width: 100%; height: 120px; margin-bottom: 10px; margin-top: 10px;">
19
+ <div style="padding: 5px; padding-left: 20px; border-radius: 8px; background-color: lightgray; color: black; box-shadow: 1px 1px 3px rgba(0,0,0,0.1); border: 2px solid #3498db; height: 100%; transition: all 0.3s ease;" onmouseover="this.style.transform='scale(1.02)'; this.style.boxShadow='2px 2px 8px rgba(0,0,0,0.2)'; this.style.backgroundImage='linear-gradient(to bottom, #d6f0ff, #b8daff)';" onmouseout="this.style.transform='scale(1)'; this.style.boxShadow='1px 1px 3px rgba(0,0,0,0.1)'; this.style.backgroundImage='linear-gradient(to bottom, #e6f7ff, #cce5ff)';">
20
  <p> Join the Hackathon! </p>
21
  <p>Additionally, we’re thrilled to announce a new AgentBeats custom track: the <strong><a href="https://drive.google.com/file/d/1NASall4R84xAhoDdcaMwwJ78Ao3B-EK4/view?usp=sharing" rel="">OpenEnv Challenge: SOTA Environments to Drive General Intelligence</a></strong>, sponsored by the <a href="https://pytorch.org/" rel="">PyTorch</a> team at <a href="https://www.meta.com/" rel="">Meta</a>, <a href="https://huggingface.co/" rel="">Hugging Face</a>, and <a href="https://unsloth.ai/" rel="">Unsloth</a>. Participants will compete to develop innovative, open-source RL environments that push the frontiers of agent learning, with a prize pool of <strong>$10K in Hugging Face credits</strong>, and the chance to be published on the <a href="https://pytorch.org/blog/" rel="">PyTorch blog</a></p>
22
  <a href="https://rdi.berkeley.edu/agentx-agentbeats.html">Sign up here</a>
23
  </div>
24
  </a>
25
 
26
+ ## Quick Start
27
 
28
+ You can install Hugging Face spaces for client code:
29
+
30
+ ```bash
31
+ pip install git+https://huggingface.co/spaces/openenv/echo_env
32
+ ```
33
+
34
+ Then use the environment hosted on spaces:
35
+
36
+ ```python
37
+ import asyncio
38
+ from echo_env import EchoAction, EchoEnv
39
+
40
+ async def main():
41
+ # Connect to a running Space (async context manager)
42
+ async with EchoEnv(base_url="https://openenv-echo-env.hf.space") as client:
43
+ # Reset the environment
44
+ result = await client.reset()
45
+ print(result.observation.echoed_message) # "Echo environment ready!"
46
+
47
+ # Send messages
48
+ result = await client.step(EchoAction(message="Hello, World!"))
49
+ print(result.observation.echoed_message) # "Hello, World!"
50
+ print(result.reward) # 1.3 (based on message length)
51
+
52
+ asyncio.run(main())
53
+ ```
54
+
55
+ To pull the environments locally from Spaces as docker containers, you can do this:
56
+
57
+ ```python
58
+ import asyncio
59
+ from echo_env import EchoEnv
60
+
61
+ async def main():
62
+ # Pulls from Hugging Face and starts a container
63
+ client = await EchoEnv.from_env("openenv/echo_env")
64
+ async with client:
65
+ result = await client.reset()
66
+ print(result.observation)
67
 
68
+ asyncio.run(main())
69
+ ```
70
 
71
  ## Hugging Face x Meta-PyTorch
72