Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- README.md +7 -7
- hars/shopping.har +2 -2
- hars/shopping_admin.har +2 -2
- inference.py +2 -2
- openenv_harvestgym.egg-info/SOURCES.txt +1 -0
README.md
CHANGED
|
@@ -424,12 +424,12 @@ curl http://localhost:8000/state
|
|
| 424 |
|
| 425 |
Scores generated by running `uv run inference.py` with `google/gemma-4-31B-it` via the HuggingFace Router.
|
| 426 |
|
| 427 |
-
| Task | Difficulty | Score | Steps |
|
| 428 |
-
| ---- | ---------- | ----- | ----- | -----
|
| 429 |
-
| `easy_list_pants` | Easy | **0.74** |
|
| 430 |
-
| `medium_cart_camera_backpack` | Medium | **0.
|
| 431 |
-
| `medium_cart_flannel_jacket` | Medium | **0.
|
| 432 |
-
| `hard_checkout_ripstop_pants` | Hard | **0.
|
| 433 |
-
| **Overall** | β | **0.
|
| 434 |
|
| 435 |
> **To regenerate:** `HF_TOKEN=hf_xxx uv run inference.py`
|
|
|
|
| 424 |
|
| 425 |
Scores generated by running `uv run inference.py` with `google/gemma-4-31B-it` via the HuggingFace Router.
|
| 426 |
|
| 427 |
+
| Task | Difficulty | Score | Steps | Notes |
|
| 428 |
+
| ---- | ---------- | ----- | ----- | ----- |
|
| 429 |
+
| `easy_list_pants` | Easy | **0.74** | 7 | List products in 'Pants' category |
|
| 430 |
+
| `medium_cart_camera_backpack` | Medium | **0.46** | 20 | Add Camera Backpack to guest cart |
|
| 431 |
+
| `medium_cart_flannel_jacket` | Medium | **0.52** | 20 | Add Flannel Jacket to guest cart |
|
| 432 |
+
| `hard_checkout_ripstop_pants` | Hard | **0.14** | 20 | Full guest checkout (hit step limit) |
|
| 433 |
+
| **Overall** | β | **0.47** | β | |
|
| 434 |
|
| 435 |
> **To regenerate:** `HF_TOKEN=hf_xxx uv run inference.py`
|
hars/shopping.har
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:878c65126d999ef91d6b75438431f7c1b9164ac580140bd7ca61ef693cacd76c
|
| 3 |
+
size 115555293
|
hars/shopping_admin.har
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce2209be9f3265b0a1682935171fb932c0056bc67b7517419b3ef5239c2ba2be
|
| 3 |
+
size 148077790
|
inference.py
CHANGED
|
@@ -707,7 +707,7 @@ async def run_episode(task_config: dict, client: OpenAI) -> dict:
|
|
| 707 |
|
| 708 |
rewards: List[float] = []
|
| 709 |
steps_taken = 0
|
| 710 |
-
score = 0.0
|
| 711 |
success = False
|
| 712 |
last_result = None
|
| 713 |
history: List[dict] = []
|
|
@@ -790,7 +790,7 @@ async def run_episode(task_config: dict, client: OpenAI) -> dict:
|
|
| 790 |
# Shift by +1.5 so that the fail reward (-1.5) maps to 0 and max maps to 1.
|
| 791 |
_TEMPLATE_REWARD_CEIL = {1: 2.0, 3: 3.5, 6: 5.0}
|
| 792 |
_reward_ceil = _TEMPLATE_REWARD_CEIL.get(task_config.get("template_id"), 5.0)
|
| 793 |
-
score = max(0.
|
| 794 |
success = total_reward >= 0.5 # any positive terminal reward = success
|
| 795 |
|
| 796 |
vprint(f"\n[VERBOSE] ββ episode end β {task_name} ββ")
|
|
|
|
| 707 |
|
| 708 |
rewards: List[float] = []
|
| 709 |
steps_taken = 0
|
| 710 |
+
score = 0.001 # strict (0, 1) required by validator; 0.0 / 1.0 are rejected
|
| 711 |
success = False
|
| 712 |
last_result = None
|
| 713 |
history: List[dict] = []
|
|
|
|
| 790 |
# Shift by +1.5 so that the fail reward (-1.5) maps to 0 and max maps to 1.
|
| 791 |
_TEMPLATE_REWARD_CEIL = {1: 2.0, 3: 3.5, 6: 5.0}
|
| 792 |
_reward_ceil = _TEMPLATE_REWARD_CEIL.get(task_config.get("template_id"), 5.0)
|
| 793 |
+
score = max(0.001, min(0.999, (total_reward + 1.5) / (_reward_ceil + 1.5)))
|
| 794 |
success = total_reward >= 0.5 # any positive terminal reward = success
|
| 795 |
|
| 796 |
vprint(f"\n[VERBOSE] ββ episode end β {task_name} ββ")
|
openenv_harvestgym.egg-info/SOURCES.txt
CHANGED
|
@@ -15,6 +15,7 @@ server/tools/__init__.py
|
|
| 15 |
server/tools/browser_agent.py
|
| 16 |
server/tools/curl_exec.py
|
| 17 |
server/tools/embed_cache.py
|
|
|
|
| 18 |
server/tools/search_endpoints.py
|
| 19 |
server/tools/search_episode_data.py
|
| 20 |
tests/test_e2e_episode.py
|
|
|
|
| 15 |
server/tools/browser_agent.py
|
| 16 |
server/tools/curl_exec.py
|
| 17 |
server/tools/embed_cache.py
|
| 18 |
+
server/tools/html_distiller.py
|
| 19 |
server/tools/search_endpoints.py
|
| 20 |
server/tools/search_episode_data.py
|
| 21 |
tests/test_e2e_episode.py
|