Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +20 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_859_003f7b49a30f18baffb0.table.json +3 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_869_9cc1b589392c562819ec.table.json +3 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_879_a1d4c449ee0f71a7c6e4.table.json +3 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_889_e13190b7fe2acaefbeac.table.json +3 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_899_4d4cab5afa1264eae366.table.json +3 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_89_8e6fcd5619198e854e24.table.json +0 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_909_299a2fa961ec4c02f6eb.table.json +3 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_919_ff6934187ac42f074b19.table.json +3 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_929_86f9c2eeb1c6840d920c.table.json +3 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_939_a2601db05233e37c41f6.table.json +3 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_949_417ed0d0921ad4e3b87c.table.json +3 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_959_01df14cc6a2419efabec.table.json +3 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_969_67f24ef23b22096f5cf8.table.json +3 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_979_dba22bc39a0ff39e0526.table.json +3 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_989_ba3c7083df03328a7c25.table.json +3 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_999_3496806fe9ca90ccb865.table.json +3 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_99_78c593271f941f2a36ee.table.json +0 -0
- wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_9_a17044b3d6d18a61e832.table.json +0 -0
- wandb/run-20251218_182331-3lp68bhy/files/config.yaml +201 -0
- wandb/run-20251218_182331-3lp68bhy/files/diff.patch +1162 -0
- wandb/run-20251218_182331-3lp68bhy/files/diff_8d73639b99b38265453f898b8d6af7d4af50d56e.patch +1162 -0
- wandb/run-20251218_182331-3lp68bhy/run-3lp68bhy.wandb +3 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_329_35be3dd7581afb806652.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_339_3284a6a2ba2c86db25d3.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_349_a0ebf004c63b7af029fe.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_359_40c52b47a2437cefc63e.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_369_1ac501ff8b5ca739838d.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_379_28b9167adf77159b3e23.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_389_34c38c65dc4978b0fe92.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_399_70a6dd783b7953a5818c.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_39_0165e675fd3080fd83f5.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_409_2f88e50434086ade1785.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_419_e698f521c532c249dfc5.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_429_f582d054589b8ae399e9.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_439_5f0176b4cc9e00954da0.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_449_55137c0a6ac1bd712d85.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_459_46f16eb1a2f587300c11.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_469_1cdab8a3b54382250779.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_479_083ece7475fbcb4d889a.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_489_d8e850be4f9dfae97a27.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_499_8e8ac69feb6687d6847f.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_49_a7f8b4cbb854ddcb13b7.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_509_cc602d87b665a257c47e.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_519_8bcbe1bb0487ac942459.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_529_ce4fa61b6f9b32677f2b.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_539_e8364809f856fb3dd084.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_549_ec1a19dc4a078c4065ec.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_559_36b51501d3b689934482.table.json +0 -0
- wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_569_04659bdcf8715115bd27.table.json +0 -0
.gitattributes
CHANGED
|
@@ -720,3 +720,23 @@ wandb/run-20251218_005807-qnm5dpox/run-qnm5dpox.wandb filter=lfs diff=lfs merge=
|
|
| 720 |
wandb/run-20251218_005905-qjkn50bv/run-qjkn50bv.wandb filter=lfs diff=lfs merge=lfs -text
|
| 721 |
wandb/run-20251218_032745-61zwahuq/run-61zwahuq.wandb filter=lfs diff=lfs merge=lfs -text
|
| 722 |
wandb/run-20251218_034409-fc9yt3lv/run-fc9yt3lv.wandb filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 720 |
wandb/run-20251218_005905-qjkn50bv/run-qjkn50bv.wandb filter=lfs diff=lfs merge=lfs -text
|
| 721 |
wandb/run-20251218_032745-61zwahuq/run-61zwahuq.wandb filter=lfs diff=lfs merge=lfs -text
|
| 722 |
wandb/run-20251218_034409-fc9yt3lv/run-fc9yt3lv.wandb filter=lfs diff=lfs merge=lfs -text
|
| 723 |
+
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_859_003f7b49a30f18baffb0.table.json filter=lfs diff=lfs merge=lfs -text
|
| 724 |
+
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_869_9cc1b589392c562819ec.table.json filter=lfs diff=lfs merge=lfs -text
|
| 725 |
+
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_879_a1d4c449ee0f71a7c6e4.table.json filter=lfs diff=lfs merge=lfs -text
|
| 726 |
+
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_889_e13190b7fe2acaefbeac.table.json filter=lfs diff=lfs merge=lfs -text
|
| 727 |
+
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_899_4d4cab5afa1264eae366.table.json filter=lfs diff=lfs merge=lfs -text
|
| 728 |
+
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_909_299a2fa961ec4c02f6eb.table.json filter=lfs diff=lfs merge=lfs -text
|
| 729 |
+
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_919_ff6934187ac42f074b19.table.json filter=lfs diff=lfs merge=lfs -text
|
| 730 |
+
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_929_86f9c2eeb1c6840d920c.table.json filter=lfs diff=lfs merge=lfs -text
|
| 731 |
+
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_939_a2601db05233e37c41f6.table.json filter=lfs diff=lfs merge=lfs -text
|
| 732 |
+
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_949_417ed0d0921ad4e3b87c.table.json filter=lfs diff=lfs merge=lfs -text
|
| 733 |
+
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_959_01df14cc6a2419efabec.table.json filter=lfs diff=lfs merge=lfs -text
|
| 734 |
+
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_969_67f24ef23b22096f5cf8.table.json filter=lfs diff=lfs merge=lfs -text
|
| 735 |
+
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_979_dba22bc39a0ff39e0526.table.json filter=lfs diff=lfs merge=lfs -text
|
| 736 |
+
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_989_ba3c7083df03328a7c25.table.json filter=lfs diff=lfs merge=lfs -text
|
| 737 |
+
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_999_3496806fe9ca90ccb865.table.json filter=lfs diff=lfs merge=lfs -text
|
| 738 |
+
wandb/run-20251218_182331-3lp68bhy/run-3lp68bhy.wandb filter=lfs diff=lfs merge=lfs -text
|
| 739 |
+
wandb/run-20251219_043017-8hx8kidv/run-8hx8kidv.wandb filter=lfs diff=lfs merge=lfs -text
|
| 740 |
+
wandb/run-20251219_051719-1l9n8aec/run-1l9n8aec.wandb filter=lfs diff=lfs merge=lfs -text
|
| 741 |
+
wandb/run-20251219_053902-oh39te32/run-oh39te32.wandb filter=lfs diff=lfs merge=lfs -text
|
| 742 |
+
wandb/run-20251219_063621-vn5i3sgl/run-vn5i3sgl.wandb filter=lfs diff=lfs merge=lfs -text
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_859_003f7b49a30f18baffb0.table.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:003f7b49a30f18baffb0e95f97e8b355d78eb8cd299bb35427c9c8b5febd2a5a
|
| 3 |
+
size 10846098
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_869_9cc1b589392c562819ec.table.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9cc1b589392c562819ec90f0d5d4747ccefdaef3ecaf41c0c20c6203271f7a94
|
| 3 |
+
size 10958465
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_879_a1d4c449ee0f71a7c6e4.table.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a1d4c449ee0f71a7c6e429cc314b7b84e7519cdf62ce99f8f37f459bc7253db2
|
| 3 |
+
size 11057968
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_889_e13190b7fe2acaefbeac.table.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e13190b7fe2acaefbeac799e597249ba516565848c5df709c3acbf1937ffc5a7
|
| 3 |
+
size 11151380
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_899_4d4cab5afa1264eae366.table.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d4cab5afa1264eae36692e6e6f617490775b7c04b1fa3d1ae8806e6cd525a91
|
| 3 |
+
size 11258981
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_89_8e6fcd5619198e854e24.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_909_299a2fa961ec4c02f6eb.table.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:299a2fa961ec4c02f6ebee5858e78b29a5544c091b0499c317b5b6382455e17b
|
| 3 |
+
size 11368520
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_919_ff6934187ac42f074b19.table.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ff6934187ac42f074b19657654bf0bcf6197cfd58a3a9dd7e08a228c6dcd664b
|
| 3 |
+
size 11481350
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_929_86f9c2eeb1c6840d920c.table.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86f9c2eeb1c6840d920c6daab98456256fe4771154d04692597b57ea564c1ceb
|
| 3 |
+
size 11599977
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_939_a2601db05233e37c41f6.table.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a2601db05233e37c41f633586783497a2e0af2b43060793063df6b31e8e34b5e
|
| 3 |
+
size 11705483
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_949_417ed0d0921ad4e3b87c.table.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:417ed0d0921ad4e3b87c92aaca7731067da8b76f495c0b355ad890ae8b954019
|
| 3 |
+
size 11812764
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_959_01df14cc6a2419efabec.table.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:01df14cc6a2419efabec32fac2c176c75dfd881a9b82d1d1a49f08146e8357c0
|
| 3 |
+
size 11920760
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_969_67f24ef23b22096f5cf8.table.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:67f24ef23b22096f5cf8530bd48e646d3b587fed02e0f5f811b0ae5f9f919b68
|
| 3 |
+
size 12031188
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_979_dba22bc39a0ff39e0526.table.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dba22bc39a0ff39e0526103bab79aa9b89ecf8a75844fb1250205e54acc7e86b
|
| 3 |
+
size 12135332
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_989_ba3c7083df03328a7c25.table.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba3c7083df03328a7c253fedfef902e58259266b8fcd39d54b62c04896acbb8f
|
| 3 |
+
size 12238639
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_999_3496806fe9ca90ccb865.table.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3496806fe9ca90ccb865f567e4a63303c3d9650fda06fc0e3797a40fc9d6a70e
|
| 3 |
+
size 12353888
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_99_78c593271f941f2a36ee.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251218_143602-9ohcf3v8/files/media/table/val/generations_9_a17044b3d6d18a61e832.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251218_182331-3lp68bhy/files/config.yaml
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_wandb:
|
| 2 |
+
value:
|
| 3 |
+
cli_version: 0.23.0
|
| 4 |
+
code_path: code/cleanrl/cleanrl/ppo_rubikscube.py
|
| 5 |
+
e:
|
| 6 |
+
zrvrl6pdc6hzbh0erqwl9hu99oek6ey0:
|
| 7 |
+
args:
|
| 8 |
+
- --track
|
| 9 |
+
codePath: cleanrl/cleanrl/ppo_rubikscube.py
|
| 10 |
+
codePathLocal: cleanrl/cleanrl/ppo_rubikscube.py
|
| 11 |
+
cpu_count: 64
|
| 12 |
+
cpu_count_logical: 128
|
| 13 |
+
cudaVersion: "12.4"
|
| 14 |
+
disk:
|
| 15 |
+
/:
|
| 16 |
+
total: "5153960755200"
|
| 17 |
+
used: "447519772672"
|
| 18 |
+
email: haoyu-wa22@mails.tsinghua.edu.cn
|
| 19 |
+
executable: /root/local/miniconda3/envs/ragen/bin/python
|
| 20 |
+
git:
|
| 21 |
+
commit: 8d73639b99b38265453f898b8d6af7d4af50d56e
|
| 22 |
+
remote: https://github.com/mll-lab-nu/RAGEN.git
|
| 23 |
+
gpu: NVIDIA H100 80GB HBM3
|
| 24 |
+
gpu_count: 8
|
| 25 |
+
gpu_nvidia:
|
| 26 |
+
- architecture: Hopper
|
| 27 |
+
cudaCores: 16896
|
| 28 |
+
memoryTotal: "85520809984"
|
| 29 |
+
name: NVIDIA H100 80GB HBM3
|
| 30 |
+
uuid: GPU-35e2d43d-4067-82ce-90d4-def9e389bf28
|
| 31 |
+
- architecture: Hopper
|
| 32 |
+
cudaCores: 16896
|
| 33 |
+
memoryTotal: "85520809984"
|
| 34 |
+
name: NVIDIA H100 80GB HBM3
|
| 35 |
+
uuid: GPU-af4135e3-88f2-e9ac-518d-502c75a85429
|
| 36 |
+
- architecture: Hopper
|
| 37 |
+
cudaCores: 16896
|
| 38 |
+
memoryTotal: "85520809984"
|
| 39 |
+
name: NVIDIA H100 80GB HBM3
|
| 40 |
+
uuid: GPU-d7fdeeba-fe9b-ec03-d9f7-6724fe4266b5
|
| 41 |
+
- architecture: Hopper
|
| 42 |
+
cudaCores: 16896
|
| 43 |
+
memoryTotal: "85520809984"
|
| 44 |
+
name: NVIDIA H100 80GB HBM3
|
| 45 |
+
uuid: GPU-ccc4f668-3882-5a8e-2c07-c5cd08f6f666
|
| 46 |
+
- architecture: Hopper
|
| 47 |
+
cudaCores: 16896
|
| 48 |
+
memoryTotal: "85520809984"
|
| 49 |
+
name: NVIDIA H100 80GB HBM3
|
| 50 |
+
uuid: GPU-7b73c0cf-d3d5-e10c-7176-a43be1e41001
|
| 51 |
+
- architecture: Hopper
|
| 52 |
+
cudaCores: 16896
|
| 53 |
+
memoryTotal: "85520809984"
|
| 54 |
+
name: NVIDIA H100 80GB HBM3
|
| 55 |
+
uuid: GPU-81b58d94-5d1f-8ec2-f9d2-fd56172ed177
|
| 56 |
+
- architecture: Hopper
|
| 57 |
+
cudaCores: 16896
|
| 58 |
+
memoryTotal: "85520809984"
|
| 59 |
+
name: NVIDIA H100 80GB HBM3
|
| 60 |
+
uuid: GPU-03e8bc66-3b44-6794-49fd-5392fbdda6d1
|
| 61 |
+
- architecture: Hopper
|
| 62 |
+
cudaCores: 16896
|
| 63 |
+
memoryTotal: "85520809984"
|
| 64 |
+
name: NVIDIA H100 80GB HBM3
|
| 65 |
+
uuid: GPU-b7cf0ec6-7c29-1179-dceb-09565da51890
|
| 66 |
+
host: pt-4d654cf4576f4d23ad3d3919f12932fe-worker-0
|
| 67 |
+
memory:
|
| 68 |
+
total: "2163642122240"
|
| 69 |
+
os: Linux-5.14.0-284.25.1.el9_2.x86_64-x86_64-with-glibc2.35
|
| 70 |
+
program: /mnt/general/wanghy/RAGEN/cleanrl/cleanrl/ppo_rubikscube.py
|
| 71 |
+
python: CPython 3.10.19
|
| 72 |
+
root: /mnt/general/wanghy/RAGEN
|
| 73 |
+
startedAt: "2025-12-18T10:23:31.950845Z"
|
| 74 |
+
writerId: zrvrl6pdc6hzbh0erqwl9hu99oek6ey0
|
| 75 |
+
m:
|
| 76 |
+
- "1": global_step
|
| 77 |
+
"6":
|
| 78 |
+
- 3
|
| 79 |
+
"7": []
|
| 80 |
+
- "2": charts/*
|
| 81 |
+
"5": 1
|
| 82 |
+
"6":
|
| 83 |
+
- 1
|
| 84 |
+
"7": []
|
| 85 |
+
- "2": perf/*
|
| 86 |
+
"5": 1
|
| 87 |
+
"6":
|
| 88 |
+
- 1
|
| 89 |
+
"7": []
|
| 90 |
+
- "2": train/*
|
| 91 |
+
"5": 1
|
| 92 |
+
"6":
|
| 93 |
+
- 1
|
| 94 |
+
"7": []
|
| 95 |
+
- "2": rollout/*
|
| 96 |
+
"5": 1
|
| 97 |
+
"6":
|
| 98 |
+
- 1
|
| 99 |
+
"7": []
|
| 100 |
+
- "2": eval/*
|
| 101 |
+
"5": 1
|
| 102 |
+
"6":
|
| 103 |
+
- 1
|
| 104 |
+
"7": []
|
| 105 |
+
- "2": losses/*
|
| 106 |
+
"5": 1
|
| 107 |
+
"6":
|
| 108 |
+
- 1
|
| 109 |
+
"7": []
|
| 110 |
+
python_version: 3.10.19
|
| 111 |
+
t:
|
| 112 |
+
"1":
|
| 113 |
+
- 1
|
| 114 |
+
- 11
|
| 115 |
+
- 30
|
| 116 |
+
- 49
|
| 117 |
+
- 50
|
| 118 |
+
- 51
|
| 119 |
+
- 105
|
| 120 |
+
"2":
|
| 121 |
+
- 1
|
| 122 |
+
- 11
|
| 123 |
+
- 30
|
| 124 |
+
- 49
|
| 125 |
+
- 50
|
| 126 |
+
- 51
|
| 127 |
+
- 105
|
| 128 |
+
"3":
|
| 129 |
+
- 7
|
| 130 |
+
- 13
|
| 131 |
+
- 16
|
| 132 |
+
- 61
|
| 133 |
+
"4": 3.10.19
|
| 134 |
+
"5": 0.23.0
|
| 135 |
+
"6": 4.57.1
|
| 136 |
+
"12": 0.23.0
|
| 137 |
+
"13": linux-x86_64
|
| 138 |
+
anneal_lr:
|
| 139 |
+
value: true
|
| 140 |
+
batch_size:
|
| 141 |
+
value: 1024
|
| 142 |
+
capture_video:
|
| 143 |
+
value: false
|
| 144 |
+
clip_coef:
|
| 145 |
+
value: 0.2
|
| 146 |
+
clip_vloss:
|
| 147 |
+
value: true
|
| 148 |
+
cuda:
|
| 149 |
+
value: true
|
| 150 |
+
ent_coef:
|
| 151 |
+
value: 0.01
|
| 152 |
+
env_id:
|
| 153 |
+
value: RubiksCube2x2
|
| 154 |
+
eval_episodes:
|
| 155 |
+
value: 4000
|
| 156 |
+
eval_splits:
|
| 157 |
+
value: 2
|
| 158 |
+
exp_name:
|
| 159 |
+
value: ppo_rubikscube
|
| 160 |
+
gae_lambda:
|
| 161 |
+
value: 0.95
|
| 162 |
+
gamma:
|
| 163 |
+
value: 0.99
|
| 164 |
+
learning_rate:
|
| 165 |
+
value: 0.00025
|
| 166 |
+
max_grad_norm:
|
| 167 |
+
value: 0.5
|
| 168 |
+
max_steps_env:
|
| 169 |
+
value: 20
|
| 170 |
+
minibatch_size:
|
| 171 |
+
value: 256
|
| 172 |
+
norm_adv:
|
| 173 |
+
value: true
|
| 174 |
+
num_envs:
|
| 175 |
+
value: 8
|
| 176 |
+
num_iterations:
|
| 177 |
+
value: 976
|
| 178 |
+
num_minibatches:
|
| 179 |
+
value: 4
|
| 180 |
+
num_steps:
|
| 181 |
+
value: 128
|
| 182 |
+
scramble_depth:
|
| 183 |
+
value: 1
|
| 184 |
+
seed:
|
| 185 |
+
value: 1
|
| 186 |
+
target_kl:
|
| 187 |
+
value: null
|
| 188 |
+
torch_deterministic:
|
| 189 |
+
value: true
|
| 190 |
+
total_timesteps:
|
| 191 |
+
value: 1000000
|
| 192 |
+
track:
|
| 193 |
+
value: true
|
| 194 |
+
update_epochs:
|
| 195 |
+
value: 4
|
| 196 |
+
vf_coef:
|
| 197 |
+
value: 0.5
|
| 198 |
+
wandb_entity:
|
| 199 |
+
value: null
|
| 200 |
+
wandb_project_name:
|
| 201 |
+
value: cleanRL
|
wandb/run-20251218_182331-3lp68bhy/files/diff.patch
ADDED
|
@@ -0,0 +1,1162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/config/base.yaml b/config/base.yaml
|
| 2 |
+
index a1659e4..9df6250 100644
|
| 3 |
+
--- a/config/base.yaml
|
| 4 |
+
+++ b/config/base.yaml
|
| 5 |
+
@@ -9,15 +9,16 @@ seed:
|
| 6 |
+
train: 10000
|
| 7 |
+
val: 123
|
| 8 |
+
|
| 9 |
+
-micro_batch_size_per_gpu: 4
|
| 10 |
+
+micro_batch_size_per_gpu: 1
|
| 11 |
+
ppo_mini_batch_size: 32
|
| 12 |
+
-model_path: Qwen/Qwen2.5-3B-Instruct
|
| 13 |
+
+model_path: /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
|
| 14 |
+
+# Qwen/Qwen2.5-0.5B-Instruct
|
| 15 |
+
enable_response_mask: True # Enabling response mask could improve stability of rollout/old_log_prob, as P(st|history) are no longer calculated in loss here. See https://docs.google.com/document/d/1bg7obeiKTExuHHBl5uOiSpec5uLDZ2Tgvxy6li5pHX4/edit?usp=sharing for more details.
|
| 16 |
+
grpo_advantage_length_weight: False # if you do not enable this and critic/advantage_estimator is GRPO, and the critic/advantages/mean is too low, then you can try enabling this to encourage reasoning and forbid collapse
|
| 17 |
+
|
| 18 |
+
lora:
|
| 19 |
+
rank: 0
|
| 20 |
+
- alpha: 64
|
| 21 |
+
+ alpha: 16
|
| 22 |
+
target_modules: all-linear
|
| 23 |
+
|
| 24 |
+
actor_rollout_ref:
|
| 25 |
+
@@ -46,10 +47,10 @@ actor_rollout_ref:
|
| 26 |
+
name: vllm
|
| 27 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu} # following micro_batch_size_per_gpu
|
| 28 |
+
tensor_model_parallel_size: 1
|
| 29 |
+
- max_model_len: 3600
|
| 30 |
+
+ max_model_len: 7200 #3600 why** 14400
|
| 31 |
+
prompt_length: 1 # useless. Just put it here
|
| 32 |
+
response_length: 400 # single-turn response length
|
| 33 |
+
- gpu_memory_utilization: 0.5
|
| 34 |
+
+ gpu_memory_utilization: 0.7
|
| 35 |
+
max_num_batched_tokens: 8192 # set only when enable_chunked_prefill is true
|
| 36 |
+
temperature: 1
|
| 37 |
+
rollout_filter_ratio: 0.25
|
| 38 |
+
@@ -90,26 +91,28 @@ algorithm:
|
| 39 |
+
kl_coef: 0.000
|
| 40 |
+
|
| 41 |
+
trainer:
|
| 42 |
+
- project_name: ragen_latest
|
| 43 |
+
+ project_name:
|
| 44 |
+
experiment_name: test
|
| 45 |
+
local_log_dir: "results/"
|
| 46 |
+
- save_freq: 100
|
| 47 |
+
+ save_freq: -1
|
| 48 |
+
total_training_steps: 200
|
| 49 |
+
validation_steps: 1 # validation instances = validation_steps * val_env_groups * group_size
|
| 50 |
+
val_before_train: True
|
| 51 |
+
n_gpus_per_node: 1
|
| 52 |
+
test_freq: 10
|
| 53 |
+
generations_to_log_to_wandb:
|
| 54 |
+
+ train: 128
|
| 55 |
+
val: 20
|
| 56 |
+
logger: [ 'console', 'wandb' ]
|
| 57 |
+
max_actor_ckpt_to_keep: 1
|
| 58 |
+
max_critic_ckpt_to_keep: 1
|
| 59 |
+
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
|
| 60 |
+
|
| 61 |
+
agent_proxy:
|
| 62 |
+
max_context_window: -1 # set a value > 0 to enable context window for long trajectory
|
| 63 |
+
- max_turn: 5
|
| 64 |
+
+ max_turn: 25 #25 why** 700
|
| 65 |
+
action_sep: "||"
|
| 66 |
+
- max_actions_per_turn: 2 # how many actions can be output at most in a single turn
|
| 67 |
+
+ max_actions_per_turn: 1 # how many actions can be output at most in a single turn
|
| 68 |
+
use_turn_scores: False # important to GAE when applying token-level rewards to token-level advantages. If False, will take the sum of scores as the reward for the last turn.
|
| 69 |
+
enable_think: True # False -> no think RL
|
| 70 |
+
reward_normalization:
|
| 71 |
+
@@ -126,11 +129,11 @@ es_manager:
|
| 72 |
+
tags: ["CoordSokoban"]
|
| 73 |
+
n_groups: [8] # If not set, all env names divide nums equally. Under the same group, the env config and env seed (prompt) are equal in each generation
|
| 74 |
+
val:
|
| 75 |
+
- env_groups: 32
|
| 76 |
+
- group_size: 16 # should be set to 1 because when val temperature is set to 0 and group size > 1, there will be repetitive prompts which leads to same trajectory.
|
| 77 |
+
+ env_groups: 256
|
| 78 |
+
+ group_size: 1 # should be set to 1 because when val temperature is set to 0 and group size > 1, there will be repetitive prompts which leads to same trajectory.
|
| 79 |
+
env_configs:
|
| 80 |
+
tags: ["CoordSokoban"]
|
| 81 |
+
- n_groups: [32] # TODO: If not set, all env names divide nums equally. Under the same group, the env config and env seed (prompt) are equal in each generation
|
| 82 |
+
+ n_groups: [256] # TODO: If not set, all env names divide nums equally. Under the same group, the env config and env seed (prompt) are equal in each generation
|
| 83 |
+
|
| 84 |
+
ctx_manager:
|
| 85 |
+
generation: # go to vllm
|
| 86 |
+
diff --git a/config/envs.yaml b/config/envs.yaml
|
| 87 |
+
index 1002ac8..ba3ac6f 100644
|
| 88 |
+
--- a/config/envs.yaml
|
| 89 |
+
+++ b/config/envs.yaml
|
| 90 |
+
@@ -2,6 +2,7 @@ custom_envs:
|
| 91 |
+
SimpleSokoban:
|
| 92 |
+
env_type: sokoban
|
| 93 |
+
max_actions_per_traj: 10 # used in environment state manager to control the actual max actions executed per trajectory
|
| 94 |
+
+ # ORIGNAL env_instruction
|
| 95 |
+
env_instruction: |
|
| 96 |
+
You are solving the Sokoban puzzle.
|
| 97 |
+
You are the player and you need to push all boxes to targets.
|
| 98 |
+
@@ -12,7 +13,7 @@ custom_envs:
|
| 99 |
+
env_config: # keys should be a subset of SokobanConfig
|
| 100 |
+
dim_x: 6
|
| 101 |
+
dim_y: 6
|
| 102 |
+
- num_boxes: 1
|
| 103 |
+
+ num_boxes: 2
|
| 104 |
+
max_steps: 100
|
| 105 |
+
|
| 106 |
+
LargerSokoban:
|
| 107 |
+
@@ -65,7 +66,7 @@ custom_envs:
|
| 108 |
+
env_config: # keys should be a subset of SokobanConfig
|
| 109 |
+
dim_x: 6
|
| 110 |
+
dim_y: 6
|
| 111 |
+
- num_boxes: 1
|
| 112 |
+
+ num_boxes: 2
|
| 113 |
+
max_steps: 100
|
| 114 |
+
observation_format: "grid_coord"
|
| 115 |
+
|
| 116 |
+
@@ -111,14 +112,14 @@ custom_envs:
|
| 117 |
+
|
| 118 |
+
FrozenLake:
|
| 119 |
+
env_type: frozen_lake
|
| 120 |
+
- max_actions_per_traj: 10
|
| 121 |
+
+ max_actions_per_traj: 25
|
| 122 |
+
env_instruction: "You are solving the FrozenLake puzzle. Forbid the whole and go to the target. You may move to the unintended direction due to the slippery ice. Example answer format: <think>To forbid the hole and go to the target, I should go left then go up.</think><answer>Left || Up</answer>"
|
| 123 |
+
max_tokens: 100
|
| 124 |
+
env_config: null
|
| 125 |
+
|
| 126 |
+
CoordFrozenLake:
|
| 127 |
+
env_type: frozen_lake
|
| 128 |
+
- max_actions_per_traj: 10
|
| 129 |
+
+ max_actions_per_traj: 25
|
| 130 |
+
env_instruction: |
|
| 131 |
+
You are solving the FrozenLake puzzle. The observation includes both a symbol grid and zero-indexed coordinates for the start, goal, player, and any holes.
|
| 132 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner (5, 5).
|
| 133 |
+
@@ -195,4 +196,80 @@ custom_envs:
|
| 134 |
+
max_actions_per_traj: 30
|
| 135 |
+
env_instruction: "You are a Lean theorem prover. Given a Lean theorem statement, propose a sequence of tactics that completes the proof. Think step by step about which tactics to apply next. Provide tactics separated by '||', for example <answer>intro || simp || rfl</answer>."
|
| 136 |
+
max_tokens: 512
|
| 137 |
+
- env_config: null # Please refer to ragen/env/lean/config.py for a full list of parameters.
|
| 138 |
+
|
| 139 |
+
+ env_config: null # Please refer to ragen/env/lean/config.py for a full list of parameters.
|
| 140 |
+
+
|
| 141 |
+
+
|
| 142 |
+
+ game_2048:
|
| 143 |
+
+ env_type: game_2048
|
| 144 |
+
+ max_actions_per_traj: 700
|
| 145 |
+
+ env_instruction: |
|
| 146 |
+
+ You are playing the 2048 game on a 4x4 grid. Merge equal tiles by sliding Up, Right, Down, or Left.
|
| 147 |
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with a single action.
|
| 148 |
+
+ Example: <answer>Up</answer>
|
| 149 |
+
+ max_tokens: 8192
|
| 150 |
+
+ env_config: null
|
| 151 |
+
+
|
| 152 |
+
+ blackjack:
|
| 153 |
+
+ env_type: blackjack
|
| 154 |
+
+ max_actions_per_traj: 10
|
| 155 |
+
+ env_instruction: |
|
| 156 |
+
+ You are playing Blackjack against a dealer. The dealer must hit on 16 or less and stand on 17 or more.
|
| 157 |
+
+ Choose either Stick or Hit. Respond with a single action.
|
| 158 |
+
+ Example: <answer>Hit</answer>
|
| 159 |
+
+ max_tokens: 64
|
| 160 |
+
+ env_config: null
|
| 161 |
+
+
|
| 162 |
+
+ rubikscube:
|
| 163 |
+
+ env_type: rubikscube
|
| 164 |
+
+ max_actions_per_traj: 20
|
| 165 |
+
+ env_instruction: |
|
| 166 |
+
+ You are solving a 2x2 Rubik's Cube (Pocket Cube). The goal is to restore the cube so that each of the faces consists of a single, unique color.
|
| 167 |
+
+ Available actions use standard Singmaster notation for face rotations: U, U', D, D', L, L', R, R', F, F', B, B'.
|
| 168 |
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
|
| 169 |
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., 'R'). A letter with prime (') means 90° counter-clockwise (e.g., "R'").
|
| 170 |
+
+ Respond with a sequence of actions separated by "||".
|
| 171 |
+
+ Example: <answer>U</answer>
|
| 172 |
+
+ max_tokens: 96
|
| 173 |
+
+ env_config:
|
| 174 |
+
+ scramble_depth: 1
|
| 175 |
+
+ max_steps: 20
|
| 176 |
+
+ render_mode: "text"
|
| 177 |
+
+
|
| 178 |
+
+ SimpleSudoku:
|
| 179 |
+
+ env_type: sudoku
|
| 180 |
+
+ max_actions_per_traj: 20
|
| 181 |
+
+ env_instruction: |
|
| 182 |
+
+ You are solving a Sudoku puzzle. Fill in the grid so that every row, column, and 2x2 box contains the numbers 1-4 without repetition.
|
| 183 |
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are shown as dots (.).
|
| 184 |
+
+ Place numbers one at a time using the format, for example: <answer>place 1 at row 2 col 3</answer> or <answer>1,2,3</answer>
|
| 185 |
+
+ The environment will provide feedback on valid/invalid moves and show conflicts if any occur.
|
| 186 |
+
+ max_tokens: 150
|
| 187 |
+
+ parallel_friendly: false
|
| 188 |
+
+ max_workers: 32
|
| 189 |
+
+ env_config:
|
| 190 |
+
+ grid_size: 4
|
| 191 |
+
+ difficulty: "easy"
|
| 192 |
+
+ render_format: "with_feedback"
|
| 193 |
+
+ show_conflicts: false
|
| 194 |
+
+ show_valid_numbers: false
|
| 195 |
+
+ max_steps: 20
|
| 196 |
+
+
|
| 197 |
+
+ MediumSudoku:
|
| 198 |
+
+ env_type: sudoku
|
| 199 |
+
+ max_actions_per_traj: 30
|
| 200 |
+
+ env_instruction: |
|
| 201 |
+
+ You are solving a Sudoku puzzle. Fill in the grid so that every row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 202 |
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are shown as dots (.).
|
| 203 |
+
+ Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer> or <answer>2,3,5</answer>
|
| 204 |
+
+ The environment will provide feedback on valid/invalid moves and show conflicts if any occur.
|
| 205 |
+
+ max_tokens: 150
|
| 206 |
+
+ parallel_friendly: false
|
| 207 |
+
+ max_workers: 32
|
| 208 |
+
+ env_config:
|
| 209 |
+
+ grid_size: 9
|
| 210 |
+
+ difficulty: "medium"
|
| 211 |
+
+ render_format: "with_feedback"
|
| 212 |
+
+ show_conflicts: true
|
| 213 |
+
+ show_valid_numbers: true
|
| 214 |
+
+ max_steps: 81
|
| 215 |
+
+
|
| 216 |
+
diff --git a/config/eval.yaml b/config/eval.yaml
|
| 217 |
+
index e65f3a5..7775fd1 100644
|
| 218 |
+
--- a/config/eval.yaml
|
| 219 |
+
+++ b/config/eval.yaml
|
| 220 |
+
@@ -1,14 +1,15 @@
|
| 221 |
+
defaults:
|
| 222 |
+
- envs
|
| 223 |
+
-
|
| 224 |
+
+enable_response_mask: True
|
| 225 |
+
system:
|
| 226 |
+
- CUDA_VISIBLE_DEVICES: "0"
|
| 227 |
+
+ CUDA_VISIBLE_DEVICES: "0,1,2,3,4,5,6,7"
|
| 228 |
+
|
| 229 |
+
seed:
|
| 230 |
+
train: 10000
|
| 231 |
+
val: 123
|
| 232 |
+
|
| 233 |
+
-model_path: Qwen/Qwen2.5-3B-Instruct
|
| 234 |
+
+model_path: /mnt/general/share/model/openai/gpt-oss-20b
|
| 235 |
+
+# /mnt/general/share/model/tyzhu/SPA-frozenlake-qwen2.5-1.5b-instruct
|
| 236 |
+
|
| 237 |
+
lora:
|
| 238 |
+
rank: 0
|
| 239 |
+
@@ -24,9 +25,9 @@ actor_rollout_ref:
|
| 240 |
+
rollout:
|
| 241 |
+
name: vllm
|
| 242 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 243 |
+
- tensor_model_parallel_size: 1
|
| 244 |
+
+ tensor_model_parallel_size: 8
|
| 245 |
+
dtype: bfloat16
|
| 246 |
+
- max_model_len: 3600
|
| 247 |
+
+ max_model_len: 7200
|
| 248 |
+
prompt_length: 1
|
| 249 |
+
response_length: 400
|
| 250 |
+
gpu_memory_utilization: 0.9
|
| 251 |
+
@@ -35,6 +36,7 @@ actor_rollout_ref:
|
| 252 |
+
free_cache_engine: True
|
| 253 |
+
enable_chunked_prefill: False
|
| 254 |
+
disable_log_stats: False
|
| 255 |
+
+ do_sample: True
|
| 256 |
+
val_kwargs:
|
| 257 |
+
do_sample: True
|
| 258 |
+
temperature: 0.5
|
| 259 |
+
@@ -44,9 +46,9 @@ actor_rollout_ref:
|
| 260 |
+
|
| 261 |
+
agent_proxy:
|
| 262 |
+
max_context_window: -1
|
| 263 |
+
- max_turn: 5
|
| 264 |
+
+ max_turn: 25
|
| 265 |
+
action_sep: "||"
|
| 266 |
+
- max_actions_per_turn: 2
|
| 267 |
+
+ max_actions_per_turn: 1
|
| 268 |
+
use_turn_scores: False
|
| 269 |
+
enable_think: True
|
| 270 |
+
reward_normalization:
|
| 271 |
+
@@ -59,13 +61,13 @@ es_manager:
|
| 272 |
+
env_groups: 8
|
| 273 |
+
group_size: 16
|
| 274 |
+
env_configs:
|
| 275 |
+
- tags: ["CoordSokoban"]
|
| 276 |
+
+ tags: ["BanditTest"]
|
| 277 |
+
n_groups: [8]
|
| 278 |
+
val:
|
| 279 |
+
env_groups: 32
|
| 280 |
+
- group_size: 16
|
| 281 |
+
+ group_size: 128
|
| 282 |
+
env_configs:
|
| 283 |
+
- tags: ["CoordSokoban"]
|
| 284 |
+
+ tags: ["BanditTest"]
|
| 285 |
+
n_groups: [32]
|
| 286 |
+
|
| 287 |
+
ctx_manager:
|
| 288 |
+
diff --git a/config/evaluate_api_llm.yaml b/config/evaluate_api_llm.yaml
|
| 289 |
+
index b21c95e..e2e6761 100644
|
| 290 |
+
--- a/config/evaluate_api_llm.yaml
|
| 291 |
+
+++ b/config/evaluate_api_llm.yaml
|
| 292 |
+
@@ -1,8 +1,11 @@
|
| 293 |
+
+#export OPENAI_BASE_URL="https://api.ohmygpt.com/v1"
|
| 294 |
+
+#export OPENAI_API_KEY="sk-o4sMxBkN5BB100C4D4a3T3BlBkFJF7791CA39EA14ca98041"
|
| 295 |
+
+#python -m ragen.eval_api hydra.searchpath='[file://./verl/verl/trainer/config]'
|
| 296 |
+
defaults:
|
| 297 |
+
- base # this is a symbolic link to the verl/verl/trainer/config/ppo_trainer.yaml file
|
| 298 |
+
|
| 299 |
+
model_config:
|
| 300 |
+
- model_name: gpt-4o # should be registered in model_info
|
| 301 |
+
+ model_name: ark-deepseek-v3-250324 # should be registered in model_info
|
| 302 |
+
max_concurrency: 16
|
| 303 |
+
|
| 304 |
+
model_info:
|
| 305 |
+
@@ -24,9 +27,9 @@ model_info:
|
| 306 |
+
generation_kwargs:
|
| 307 |
+
temperature: 0
|
| 308 |
+
max_tokens: 512 # max_completion_tokens if o1-mini
|
| 309 |
+
- gpt-4o:
|
| 310 |
+
+ gpt-4o-mini:
|
| 311 |
+
provider_name: openai
|
| 312 |
+
- model_name: gpt-4o
|
| 313 |
+
+ model_name: gpt-4o-mini
|
| 314 |
+
generation_kwargs:
|
| 315 |
+
temperature: 0
|
| 316 |
+
max_tokens: 512 # max_completion_tokens if o1-mini
|
| 317 |
+
@@ -36,21 +39,42 @@ model_info:
|
| 318 |
+
generation_kwargs:
|
| 319 |
+
temperature: 0
|
| 320 |
+
max_completion_tokens: 512
|
| 321 |
+
+ ark-deepseek-v3-250324:
|
| 322 |
+
+ provider_name: openai
|
| 323 |
+
+ model_name: ark-deepseek-v3-250324
|
| 324 |
+
+ generation_kwargs:
|
| 325 |
+
+ temperature: 0
|
| 326 |
+
+ max_completion_tokens: 512
|
| 327 |
+
deepseek-v3:
|
| 328 |
+
provider_name: deepseek
|
| 329 |
+
model_name: deepseek-chat
|
| 330 |
+
generation_kwargs:
|
| 331 |
+
temperature: 0
|
| 332 |
+
max_completion_tokens: 512
|
| 333 |
+
+ glm-4.6:
|
| 334 |
+
+ provider_name: openai
|
| 335 |
+
+ model_name: glm-4.6
|
| 336 |
+
+ generation_kwargs:
|
| 337 |
+
+ temperature: 0
|
| 338 |
+
+ max_completion_tokens: 512
|
| 339 |
+
+ TA/openai/gpt-oss-120b:
|
| 340 |
+
+ provider_name: openai
|
| 341 |
+
+ model_name: TA/openai/gpt-oss-120b
|
| 342 |
+
+ generation_kwargs:
|
| 343 |
+
+ temperature: 0
|
| 344 |
+
+ max_tokens: 8192
|
| 345 |
+
+ # max_retries: 5
|
| 346 |
+
|
| 347 |
+
-
|
| 348 |
+
-
|
| 349 |
+
+agent_proxy:
|
| 350 |
+
+ max_turn: 5
|
| 351 |
+
es_manager:
|
| 352 |
+
val:
|
| 353 |
+
- env_groups: 256
|
| 354 |
+
+ env_groups: 128
|
| 355 |
+
group_size: 1 # should be set to 1 because val temperature is set to 0 and same prompt leads to same output
|
| 356 |
+
env_configs:
|
| 357 |
+
- tags: ["CoordSokoban"]
|
| 358 |
+
- n_groups: [256] # If not set, all env names divide nums equally. Under the same group, the env config and env seed (prompt) are equal in each generation
|
| 359 |
+
+ tags: ["rubikscube"]
|
| 360 |
+
+ n_groups: [128] # If not set, all env names divide nums equally. Under the same group, the env config and env seed (prompt) are equal in each generation
|
| 361 |
+
|
| 362 |
+
|
| 363 |
+
+rollout:
|
| 364 |
+
+ max_model_len: 7200
|
| 365 |
+
|
| 366 |
+
Submodule external/webshop-minimal contains modified content
|
| 367 |
+
diff --git a/external/webshop-minimal/requirements.txt b/external/webshop-minimal/requirements.txt
|
| 368 |
+
index 5a1b04f..238ed5a 100644
|
| 369 |
+
--- a/external/webshop-minimal/requirements.txt
|
| 370 |
+
+++ b/external/webshop-minimal/requirements.txt
|
| 371 |
+
@@ -4,7 +4,7 @@ flask
|
| 372 |
+
html2text
|
| 373 |
+
rank_bm25
|
| 374 |
+
pyserini
|
| 375 |
+
-faiss-cpu
|
| 376 |
+
+faiss-gpu
|
| 377 |
+
thefuzz
|
| 378 |
+
gdown
|
| 379 |
+
spacy
|
| 380 |
+
diff --git a/ragen/env/__init__.py b/ragen/env/__init__.py
|
| 381 |
+
index b0f3461..bc6838e 100644
|
| 382 |
+
--- a/ragen/env/__init__.py
|
| 383 |
+
+++ b/ragen/env/__init__.py
|
| 384 |
+
@@ -12,6 +12,14 @@ from .metamathqa.env import MetaMathQAEnv
|
| 385 |
+
from .metamathqa.config import MetaMathQAEnvConfig
|
| 386 |
+
from .lean.config import LeanEnvConfig
|
| 387 |
+
from .lean.env import LeanEnv
|
| 388 |
+
+from .game_2048.config import Game2048EnvConfig
|
| 389 |
+
+from .game_2048.env import Game2048Env
|
| 390 |
+
+from .blackjack.config import BlackjackEnvConfig
|
| 391 |
+
+from .blackjack.env import BlackjackEnv
|
| 392 |
+
+from .rubikscube.config import RubiksCube2x2Config
|
| 393 |
+
+from .rubikscube.env import RubiksCube2x2Env
|
| 394 |
+
+from .sudoku.config import SudokuEnvConfig
|
| 395 |
+
+from .sudoku.env import SudokuEnv
|
| 396 |
+
|
| 397 |
+
|
| 398 |
+
REGISTERED_ENVS = {
|
| 399 |
+
@@ -22,6 +30,10 @@ REGISTERED_ENVS = {
|
| 400 |
+
# 'alfworld': AlfredTXTEnv,
|
| 401 |
+
'metamathqa': MetaMathQAEnv,
|
| 402 |
+
'lean': LeanEnv,
|
| 403 |
+
+ 'game_2048': Game2048Env,
|
| 404 |
+
+ 'blackjack': BlackjackEnv,
|
| 405 |
+
+ 'rubikscube': RubiksCube2x2Env,
|
| 406 |
+
+ 'sudoku': SudokuEnv,
|
| 407 |
+
}
|
| 408 |
+
|
| 409 |
+
REGISTERED_ENV_CONFIGS = {
|
| 410 |
+
@@ -32,6 +44,10 @@ REGISTERED_ENV_CONFIGS = {
|
| 411 |
+
# 'alfworld': AlfredEnvConfig,
|
| 412 |
+
'metamathqa': MetaMathQAEnvConfig,
|
| 413 |
+
'lean': LeanEnvConfig,
|
| 414 |
+
+ 'game_2048': Game2048EnvConfig,
|
| 415 |
+
+ 'blackjack': BlackjackEnvConfig,
|
| 416 |
+
+ 'rubikscube': RubiksCube2x2Config,
|
| 417 |
+
+ 'sudoku': SudokuEnvConfig,
|
| 418 |
+
}
|
| 419 |
+
|
| 420 |
+
try:
|
| 421 |
+
diff --git a/ragen/env/frozen_lake/config.py b/ragen/env/frozen_lake/config.py
|
| 422 |
+
index de054f4..9950c34 100644
|
| 423 |
+
--- a/ragen/env/frozen_lake/config.py
|
| 424 |
+
+++ b/ragen/env/frozen_lake/config.py
|
| 425 |
+
@@ -8,7 +8,7 @@ class FrozenLakeEnvConfig:
|
| 426 |
+
size: int = 4
|
| 427 |
+
p: float = 0.9
|
| 428 |
+
success_rate: float = 0.8
|
| 429 |
+
- is_slippery: bool = True
|
| 430 |
+
+ is_slippery: bool = False
|
| 431 |
+
map_seed: Optional[int] = None
|
| 432 |
+
render_mode: str = "text"
|
| 433 |
+
observation_format: str = "grid"
|
| 434 |
+
diff --git a/ragen/env/frozen_lake/env.py b/ragen/env/frozen_lake/env.py
|
| 435 |
+
index 9ee3add..eef11d8 100644
|
| 436 |
+
--- a/ragen/env/frozen_lake/env.py
|
| 437 |
+
+++ b/ragen/env/frozen_lake/env.py
|
| 438 |
+
@@ -13,6 +13,7 @@ from ragen.env.base import BaseDiscreteActionEnv
|
| 439 |
+
class FrozenLakeEnv(BaseDiscreteActionEnv, GymFrozenLakeEnv):
|
| 440 |
+
def __init__(self, config: FrozenLakeEnvConfig = FrozenLakeEnvConfig()):
|
| 441 |
+
# Using mappings directly from config
|
| 442 |
+
+ # import pdb;pdb.set_trace()
|
| 443 |
+
self.config = config
|
| 444 |
+
self.GRID_LOOKUP = config.grid_lookup
|
| 445 |
+
self.ACTION_LOOKUP = config.action_lookup
|
| 446 |
+
@@ -95,6 +96,7 @@ class FrozenLakeEnv(BaseDiscreteActionEnv, GymFrozenLakeEnv):
|
| 447 |
+
if __name__ == "__main__":
|
| 448 |
+
import matplotlib.pyplot as plt
|
| 449 |
+
config = FrozenLakeEnvConfig(size=4, is_slippery=True)
|
| 450 |
+
+ # import pdb;pdb.set_trace()
|
| 451 |
+
env = FrozenLakeEnv(config)
|
| 452 |
+
print(env.reset())
|
| 453 |
+
while True:
|
| 454 |
+
diff --git a/ragen/env/sokoban/env.py b/ragen/env/sokoban/env.py
|
| 455 |
+
index 17cd636..6922b54 100644
|
| 456 |
+
--- a/ragen/env/sokoban/env.py
|
| 457 |
+
+++ b/ragen/env/sokoban/env.py
|
| 458 |
+
@@ -33,6 +33,7 @@ class SokobanEnv(BaseDiscreteActionEnv, GymSokobanEnv):
|
| 459 |
+
def reset(self, seed=None, mode=None):
|
| 460 |
+
try:
|
| 461 |
+
with all_seed(seed):
|
| 462 |
+
+ # import pdb;pdb.set_trace()
|
| 463 |
+
self.room_fixed, self.room_state, self.box_mapping, action_sequence = generate_room(
|
| 464 |
+
dim=self.dim_room,
|
| 465 |
+
num_steps=self.num_gen_steps,
|
| 466 |
+
diff --git a/ragen/llm_agent/agent_proxy.py b/ragen/llm_agent/agent_proxy.py
|
| 467 |
+
index c25b50d..f6c4088 100644
|
| 468 |
+
--- a/ragen/llm_agent/agent_proxy.py
|
| 469 |
+
+++ b/ragen/llm_agent/agent_proxy.py
|
| 470 |
+
@@ -287,6 +287,7 @@ def main(config):
|
| 471 |
+
proxy = LLMAgentProxy(config, actor_wg, tokenizer)
|
| 472 |
+
import time
|
| 473 |
+
start_time = time.time()
|
| 474 |
+
+ # import pdb;pdb.set_trace()
|
| 475 |
+
rollouts = proxy.rollout(
|
| 476 |
+
DataProto(
|
| 477 |
+
batch=None,
|
| 478 |
+
diff --git a/ragen/llm_agent/base_llm.py b/ragen/llm_agent/base_llm.py
|
| 479 |
+
index 358a2eb..b6f7797 100644
|
| 480 |
+
--- a/ragen/llm_agent/base_llm.py
|
| 481 |
+
+++ b/ragen/llm_agent/base_llm.py
|
| 482 |
+
@@ -33,6 +33,7 @@ class OpenAIProvider(LLMProvider):
|
| 483 |
+
raise ValueError("OpenAI API key not provided and not found in environment variables")
|
| 484 |
+
|
| 485 |
+
self.client = AsyncOpenAI(api_key=self.api_key)
|
| 486 |
+
+ # import pdb;pdb.set_trace()
|
| 487 |
+
|
| 488 |
+
async def generate(self, messages: List[Dict[str, str]], **kwargs) -> LLMResponse:
|
| 489 |
+
if "o1-mini" in self.model_name:
|
| 490 |
+
@@ -46,10 +47,7 @@ class OpenAIProvider(LLMProvider):
|
| 491 |
+
)
|
| 492 |
+
if response.choices[0].finish_reason in ['length', 'content_filter']:
|
| 493 |
+
raise ValueError("Content filtered or length exceeded")
|
| 494 |
+
- return LLMResponse(
|
| 495 |
+
- content=response.choices[0].message.content,
|
| 496 |
+
- model_name=response.model
|
| 497 |
+
- )
|
| 498 |
+
+ return LLMResponse(content=response.choices[0].message.content,model_name=response.model)
|
| 499 |
+
|
| 500 |
+
class DeepSeekProvider(LLMProvider):
|
| 501 |
+
"""DeepSeek API provider implementation"""
|
| 502 |
+
@@ -199,7 +197,7 @@ class ConcurrentLLM:
|
| 503 |
+
|
| 504 |
+
# Queue to store unfinished or failed tasks
|
| 505 |
+
current_batch = messages_list.copy()
|
| 506 |
+
- max_retries = kwargs.get("max_retries", 100)
|
| 507 |
+
+ max_retries = kwargs.get("max_retries", 10)
|
| 508 |
+
retry_count = 0
|
| 509 |
+
|
| 510 |
+
while current_batch and retry_count < max_retries:
|
| 511 |
+
diff --git a/ragen/llm_agent/ctx_manager.py b/ragen/llm_agent/ctx_manager.py
|
| 512 |
+
index 905247a..af20a01 100644
|
| 513 |
+
--- a/ragen/llm_agent/ctx_manager.py
|
| 514 |
+
+++ b/ragen/llm_agent/ctx_manager.py
|
| 515 |
+
@@ -88,6 +88,7 @@ class ContextManager:
|
| 516 |
+
Initialize the ContextManager.
|
| 517 |
+
Processor is used to process the image data.
|
| 518 |
+
"""
|
| 519 |
+
+ # import pdb;pdb.set_trace()
|
| 520 |
+
self.config = config
|
| 521 |
+
self.tokenizer = tokenizer
|
| 522 |
+
self.processor = processor
|
| 523 |
+
@@ -311,7 +312,7 @@ class ContextManager:
|
| 524 |
+
|
| 525 |
+
llm_input_texts.append(text_with_prompt)
|
| 526 |
+
messages_list.append(messages)
|
| 527 |
+
-
|
| 528 |
+
+ # import pdb;pdb.set_trace()
|
| 529 |
+
inputs = self.tokenizer(llm_input_texts, return_tensors="pt", padding=True, padding_side="left", truncation=False) # We have truncated previously, truncation in tokenizer may cause issues.
|
| 530 |
+
input_ids, attention_mask = inputs.input_ids, inputs.attention_mask
|
| 531 |
+
position_ids = (attention_mask.cumsum(dim=-1) - 1).clamp(min=0)
|
| 532 |
+
@@ -353,6 +354,30 @@ class ContextManager:
|
| 533 |
+
key: np.sum(value) / self.env_nums[key.split("/")[0]]
|
| 534 |
+
for key, value in metrics.items()
|
| 535 |
+
}
|
| 536 |
+
+ # Derived metrics for wandb logging
|
| 537 |
+
+ try:
|
| 538 |
+
+ # charts/avg_episode_return: average across all 2048 env groups
|
| 539 |
+
+ ep_keys = [k for k in metrics.keys() if k.endswith('/episodic_return')]
|
| 540 |
+
+ if len(ep_keys) > 0:
|
| 541 |
+
+ ep_vals = []
|
| 542 |
+
+ for k in ep_keys:
|
| 543 |
+
+ tag = k.split('/')[0]
|
| 544 |
+
+ denom = self.env_nums.get(tag, max(1, len(metrics[k])))
|
| 545 |
+
+ ep_vals.append(float(np.sum(metrics[k]) / denom))
|
| 546 |
+
+ mean_metrics["charts/avg_episode_return"] = float(np.mean(ep_vals))
|
| 547 |
+
+ except Exception:
|
| 548 |
+
+ pass
|
| 549 |
+
+ try:
|
| 550 |
+
+ # rollout/max_tile: max over all envs in this batch
|
| 551 |
+
+ tile_keys = [k for k in metrics.keys() if k.endswith('/max_tile')]
|
| 552 |
+
+ if len(tile_keys) > 0:
|
| 553 |
+
+ tile_vals = []
|
| 554 |
+
+ for k in tile_keys:
|
| 555 |
+
+ tile_vals.extend(metrics[k])
|
| 556 |
+
+ if len(tile_vals) > 0:
|
| 557 |
+
+ mean_metrics["rollout/max_tile"] = int(np.max(tile_vals))
|
| 558 |
+
+ except Exception:
|
| 559 |
+
+ pass
|
| 560 |
+
for key, values in metrics.items():
|
| 561 |
+
if not isinstance(values, list):
|
| 562 |
+
continue
|
| 563 |
+
diff --git a/ragen/llm_agent/es_manager.py b/ragen/llm_agent/es_manager.py
|
| 564 |
+
index b87a2b3..1a49d3e 100644
|
| 565 |
+
--- a/ragen/llm_agent/es_manager.py
|
| 566 |
+
+++ b/ragen/llm_agent/es_manager.py
|
| 567 |
+
@@ -128,18 +128,40 @@ class EnvStateManager:
|
| 568 |
+
env_outputs: List[Dict]
|
| 569 |
+
{env_id: int, history: List[Dict][{state: str, actions: List[str], reward: float, info: Dict, llm_response: str, llm_raw_response: str, (Optional)images: List[PIL.Image.Image]}]}
|
| 570 |
+
"""
|
| 571 |
+
+ # def _execute_actions(env, actions):
|
| 572 |
+
+ # acc_reward, turn_info, turn_done = 0, {}, False
|
| 573 |
+
+ # executed_actions = []
|
| 574 |
+
+ # for action in actions:
|
| 575 |
+
+ # _, reward, done, info = env.step(action)
|
| 576 |
+
+ # acc_reward += reward
|
| 577 |
+
+ # turn_info.update(info) # NOTE: currently use last info for multi-action
|
| 578 |
+
+ # executed_actions.append(action)
|
| 579 |
+
+ # if done:
|
| 580 |
+
+ # turn_done = True
|
| 581 |
+
+ # break
|
| 582 |
+
+
|
| 583 |
+
+ # return acc_reward, turn_info, turn_done, executed_actions
|
| 584 |
+
def _execute_actions(env, actions):
|
| 585 |
+
- acc_reward, turn_info, turn_done = 0, {}, False
|
| 586 |
+
+ acc_reward, turn_info, turn_done = 0.0, {}, False
|
| 587 |
+
+ raw_acc_reward = 0.0
|
| 588 |
+
executed_actions = []
|
| 589 |
+
for action in actions:
|
| 590 |
+
_, reward, done, info = env.step(action)
|
| 591 |
+
- acc_reward += reward
|
| 592 |
+
+ acc_reward += float(reward)
|
| 593 |
+
+ try:
|
| 594 |
+
+ raw_acc_reward += float(info.get('raw_reward', 0.0))
|
| 595 |
+
+ except Exception:
|
| 596 |
+
+ pass
|
| 597 |
+
turn_info.update(info) # NOTE: currently use last info for multi-action
|
| 598 |
+
executed_actions.append(action)
|
| 599 |
+
if done:
|
| 600 |
+
turn_done = True
|
| 601 |
+
break
|
| 602 |
+
-
|
| 603 |
+
+ # Overwrite per-turn raw_reward to reflect the sum across all executed actions in this turn
|
| 604 |
+
+ try:
|
| 605 |
+
+ turn_info['raw_reward'] = float(raw_acc_reward)
|
| 606 |
+
+ except Exception:
|
| 607 |
+
+ pass
|
| 608 |
+
return acc_reward, turn_info, turn_done, executed_actions
|
| 609 |
+
|
| 610 |
+
def _log_env_state(status, history, cur_obs, max_actions_per_traj, executed_actions, all_actions, acc_reward, turn_done, turn_info, env_input):
|
| 611 |
+
@@ -198,6 +220,18 @@ class EnvStateManager:
|
| 612 |
+
'success': float(status.terminated and (not status.truncated)),
|
| 613 |
+
'num_actions': status.num_actions,
|
| 614 |
+
}
|
| 615 |
+
+ # Add episodic-level metrics
|
| 616 |
+
+ # try:
|
| 617 |
+
+ # # Sum of per-turn rewards equals the episodic return (env-shaped reward)
|
| 618 |
+
+ # env_metric['episodic_return'] = float(sum(status.rewards))
|
| 619 |
+
+ # except Exception:
|
| 620 |
+
+ # pass
|
| 621 |
+
+ try:
|
| 622 |
+
+ # Final max tile on the board at the end of the rollout
|
| 623 |
+
+ import numpy as _np
|
| 624 |
+
+ env_metric['max_tile'] = int(_np.max(entry['env'].grid))
|
| 625 |
+
+ except Exception:
|
| 626 |
+
+ pass
|
| 627 |
+
custom_metric = {}
|
| 628 |
+
for turn in cache['history']:
|
| 629 |
+
for k, v in turn.get('info', {}).items():
|
| 630 |
+
@@ -212,6 +246,12 @@ class EnvStateManager:
|
| 631 |
+
"Skipping non-numeric metric '%s' with value %r for env %s.",
|
| 632 |
+
k, v, entry['tag']
|
| 633 |
+
)
|
| 634 |
+
+ # Add episodic_return as the SUM of raw_reward across steps (align with CleanRL)
|
| 635 |
+
+ try:
|
| 636 |
+
+ if 'raw_reward' in custom_metric:
|
| 637 |
+
+ env_metric['episodic_return'] = float(np.sum(custom_metric['raw_reward']))
|
| 638 |
+
+ except Exception:
|
| 639 |
+
+ pass
|
| 640 |
+
for k, v in custom_metric.items():
|
| 641 |
+
# TODO: Move TURN_LVL_METRICS into the environment
|
| 642 |
+
if "webshop" not in cache['tag'].lower() or ("webshop" in cache['tag'].lower() and k in TURN_LVL_METRICS):
|
| 643 |
+
@@ -219,7 +259,12 @@ class EnvStateManager:
|
| 644 |
+
else:
|
| 645 |
+
env_metric['traj_sum/' + k] = np.sum(v)
|
| 646 |
+
|
| 647 |
+
-
|
| 648 |
+
+ try:
|
| 649 |
+
+ if 'score' in custom_metric and len(custom_metric['score']) > 0:
|
| 650 |
+
+ env_metric['final_score'] = float(custom_metric['score'][-1])
|
| 651 |
+
+ except Exception:
|
| 652 |
+
+ pass
|
| 653 |
+
+
|
| 654 |
+
cache['history'][-1]['metrics'] = custom_metric
|
| 655 |
+
env_metric = {f"{entry['tag']}/{k}": v for k, v in env_metric.items()}
|
| 656 |
+
cache['metrics'] = env_metric
|
| 657 |
+
diff --git a/requirements.txt b/requirements.txt
|
| 658 |
+
index 2fd756e..9b521bf 100644
|
| 659 |
+
--- a/requirements.txt
|
| 660 |
+
+++ b/requirements.txt
|
| 661 |
+
@@ -7,7 +7,6 @@ accelerate
|
| 662 |
+
codetiming
|
| 663 |
+
datasets
|
| 664 |
+
dill
|
| 665 |
+
-flash-attn==2.7.4.post1
|
| 666 |
+
hydra-core
|
| 667 |
+
numpy
|
| 668 |
+
pandas
|
| 669 |
+
@@ -15,19 +14,19 @@ pybind11
|
| 670 |
+
ray>=2.10
|
| 671 |
+
tensordict>=0.8.0,<0.9.0
|
| 672 |
+
transformers
|
| 673 |
+
-vllm==0.8.2
|
| 674 |
+
+vllm==0.8.5
|
| 675 |
+
wandb
|
| 676 |
+
gymnasium
|
| 677 |
+
gymnasium[toy-text]
|
| 678 |
+
|
| 679 |
+
pyarrow>=15.0.0
|
| 680 |
+
pylatexenc
|
| 681 |
+
-torchdata
|
| 682 |
+
+# torchdata
|
| 683 |
+
debugpy
|
| 684 |
+
|
| 685 |
+
together
|
| 686 |
+
anthropic
|
| 687 |
+
-faiss-cpu==1.11.0
|
| 688 |
+
+faiss-gpu
|
| 689 |
+
|
| 690 |
+
# This is optional, but needs to be installed with main requirements if you want to use webshop
|
| 691 |
+
-r external/webshop-minimal/requirements.txt
|
| 692 |
+
diff --git a/scripts/setup_ragen.sh b/scripts/setup_ragen.sh
|
| 693 |
+
index f9a7cd9..85a93c4 100644
|
| 694 |
+
--- a/scripts/setup_ragen.sh
|
| 695 |
+
+++ b/scripts/setup_ragen.sh
|
| 696 |
+
@@ -94,10 +94,10 @@ main() {
|
| 697 |
+
pip install torch==2.5.0 --index-url https://download.pytorch.org/whl/cu124
|
| 698 |
+
|
| 699 |
+
print_step "Installing flash-attention..."
|
| 700 |
+
- pip3 install flash-attn==2.7.4.post1 --no-build-isolation
|
| 701 |
+
+ # pip3 install flash-attn==2.7.4.post1 --no-build-isolation
|
| 702 |
+
else
|
| 703 |
+
print_step "Installing PyTorch without CUDA support..."
|
| 704 |
+
- pip install torch==2.5.0
|
| 705 |
+
+ pip install torch==2.4.0
|
| 706 |
+
fi
|
| 707 |
+
|
| 708 |
+
# Install remaining requirements
|
| 709 |
+
@@ -137,8 +137,8 @@ main() {
|
| 710 |
+
conda install conda-forge::gdown
|
| 711 |
+
mkdir -p external/webshop-minimal/webshop_minimal/data/full
|
| 712 |
+
cd external/webshop-minimal/webshop_minimal/data/full
|
| 713 |
+
- gdown https://drive.google.com/uc?id=1A2whVgOO0euk5O13n2iYDM0bQRkkRduB # items_shuffle
|
| 714 |
+
- gdown https://drive.google.com/uc?id=1s2j6NgHljiZzQNL3veZaAiyW_qDEgBNi # items_ins_v2
|
| 715 |
+
+ # gdown https://drive.google.com/uc?id=1A2whVgOO0euk5O13n2iYDM0bQRkkRduB # items_shuffle
|
| 716 |
+
+ # gdown https://drive.google.com/uc?id=1s2j6NgHljiZzQNL3veZaAiyW_qDEgBNi # items_ins_v2
|
| 717 |
+
cd ../../../../..
|
| 718 |
+
|
| 719 |
+
echo -e "${GREEN}Installation completed successfully!${NC}"
|
| 720 |
+
diff --git a/train_all.sh b/train_all.sh
|
| 721 |
+
index 0157306..33035f5 100755
|
| 722 |
+
--- a/train_all.sh
|
| 723 |
+
+++ b/train_all.sh
|
| 724 |
+
@@ -6,246 +6,257 @@ USE_GRPO="algorithm.adv_estimator=grpo"
|
| 725 |
+
USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 726 |
+
USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 727 |
+
|
| 728 |
+
+
|
| 729 |
+
+# python train.py --config-name _8_2048 system.CUDA_VISIBLE_DEVICES="'0,1,2,3'" trainer.project_name=ragen_latest_qwen_25_15b_it trainer.n_gpus_per_node=4 model_path=Qwen/Qwen2.5-0.5B-Instruct trainer.experiment_name=game_2048 $USE_PPO $USE_BASE
|
| 730 |
+
+
|
| 731 |
+
+# python train.py --config-name _10_rubikscube system.CUDA_VISIBLE_DEVICES="'0,1'" trainer.project_name=ragen_latest_qwen_05B_it trainer.n_gpus_per_node=2 model_path=Qwen/Qwen2.5-0.5B-Instruct trainer.experiment_name=rubikscube-1 $USE_PPO $USE_BASE
|
| 732 |
+
+# python train.py --config-name _10_rubikscube system.CUDA_VISIBLE_DEVICES="'2,3'" trainer.project_name=ragen_latest_qwen_25_15b_it trainer.n_gpus_per_node=2 model_path=Qwen/Qwen2.5-1.5B-Instruct trainer.experiment_name=rubikscube-2 $USE_PPO $USE_BASE
|
| 733 |
+
+# python train.py --config-name _10_rubikscube system.CUDA_VISIBLE_DEVICES="'4,5'" trainer.project_name=ragen_latest_qwen_25_3b_it trainer.n_gpus_per_node=2 model_path=Qwen/Qwen2.5-3B-Instruct trainer.experiment_name=rubikscube-2 $USE_PPO $USE_BASE
|
| 734 |
+
+python train.py --config-name _10_rubikscube system.CUDA_VISIBLE_DEVICES="'6,7'" trainer.project_name=ragen_latest_qwen_05B_it trainer.n_gpus_per_node=2 model_path=Qwen/Qwen2.5-0.5B-Instruct trainer.experiment_name=rubikscube-3 $USE_PPO $USE_BASE
|
| 735 |
+
+
|
| 736 |
+
# Section 3.1&3.2 - General Observations
|
| 737 |
+
-python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=bandit-ppo $USE_PPO $USE_BASE &
|
| 738 |
+
-python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=bandit-grpo $USE_GRPO $USE_BASE &
|
| 739 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=sokoban-ppo $USE_PPO $USE_BASE &
|
| 740 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-grpo $USE_GRPO $USE_BASE &
|
| 741 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=frozen_lake-ppo $USE_PPO $USE_BASE &
|
| 742 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=frozen_lake-grpo $USE_GRPO $USE_BASE &
|
| 743 |
+
+# python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="'6,7'" trainer.project_name=ragen_latest_qwen_25_15b_it trainer.n_gpus_per_node=2 model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask trainer.experiment_name=bandit-ppo-multitask $USE_PPO $USE_BASE &
|
| 744 |
+
+# python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="'7'" trainer.n_gpus_per_node=1 trainer.experiment_name=bandit-ppo-frommlp $USE_PPO $USE_BASE
|
| 745 |
+
|
| 746 |
+
-# Section 4.1 - Filtering and critic
|
| 747 |
+
-# 0.25
|
| 748 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-ppo-rolloutfilter0.25 actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_PPO &
|
| 749 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_GRPO &
|
| 750 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=frozen_lake-ppo actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_PPO &
|
| 751 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=frozen_lake-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_GRPO &
|
| 752 |
+
-
|
| 753 |
+
-wait
|
| 754 |
+
-
|
| 755 |
+
-# 0.5
|
| 756 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-ppo-rolloutfilter0.5 actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_PPO &
|
| 757 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_GRPO &
|
| 758 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=frozen_lake-ppo actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_PPO &
|
| 759 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=frozen_lake-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_GRPO &
|
| 760 |
+
-
|
| 761 |
+
-# 0.75
|
| 762 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-ppo-rolloutfilter0.75 actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_PPO &
|
| 763 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_GRPO &
|
| 764 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=frozen_lake-ppo actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_PPO &
|
| 765 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=frozen_lake-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_GRPO &
|
| 766 |
+
-
|
| 767 |
+
-wait
|
| 768 |
+
-
|
| 769 |
+
-# Section 4.2 - Ablation on Critic/ClipHigh/KL. Start from Basic and add more components. The best setting for StarPO in agent is rollout_filter+Critic+Cliphigh+NoKL
|
| 770 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-base-grpo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_GRPO &
|
| 771 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-base-ppo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 772 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=sokoban-base-ppo-cliphigh algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.28 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 773 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-base-ppo-nokl algorithm.kl_ctrl.kl_coef=0.000 actor_rollout_ref.actor.kl_loss_coef=0.000 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 774 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=frozenlake-base-grpo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_GRPO &
|
| 775 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=frozenlake-base-ppo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 776 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=frozenlake-base-ppo-cliphigh algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.28 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 777 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=frozenlake-base-ppo-nokl algorithm.kl_ctrl.kl_coef=0.000 actor_rollout_ref.actor.kl_loss_coef=0.000 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 778 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="'0,1'" trainer.project_name=ragen_latest_qwen_25_15b_it trainer.n_gpus_per_node=2 model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask trainer.experiment_name=sokoban-ppo-box1-multitask $USE_PPO $USE_BASE
|
| 779 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-grpo $USE_GRPO $USE_BASE &
|
| 780 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="'2,3'" trainer.project_name=ragen_latest_qwen_25_15b_it trainer.n_gpus_per_node=2 model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask trainer.experiment_name=frozen_lake-ppo-slippery-multitask $USE_PPO $USE_BASE
|
| 781 |
+
|
| 782 |
+
-wait
|
| 783 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="'4,5,6,7'" trainer.project_name=ragen_latest_qwen_25_3b_it trainer.n_gpus_per_node=4 model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_multitask trainer.experiment_name=frozen_lake-ppo-slippery-multitask $USE_PPO $USE_BASE
|
| 784 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="'4,5,6,7'" trainer.n_gpus_per_node=4 model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask trainer.experiment_name=frozen_lake-ppo-slippery-multitask $USE_PPO $USE_BASE
|
| 785 |
+
|
| 786 |
+
-# Section 5.1 - Reasoning Helps Generalization
|
| 787 |
+
+# # Section 4.1 - Filtering and critic
|
| 788 |
+
+# # 0.25
|
| 789 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-ppo-rolloutfilter0.25 actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_PPO &
|
| 790 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_GRPO &
|
| 791 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=frozen_lake-ppo actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_PPO &
|
| 792 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=frozen_lake-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_GRPO &
|
| 793 |
+
|
| 794 |
+
-python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=bandit-generalization \
|
| 795 |
+
- custom_envs.Bandit.env_config.lo_arm_name="Engineer" \
|
| 796 |
+
- custom_envs.Bandit.env_config.hi_arm_name="Teacher" \
|
| 797 |
+
- custom_envs.BanditTest.env_config.lo_arm_name="Trader" \
|
| 798 |
+
- custom_envs.BanditTest.env_config.hi_arm_name="Librarian"
|
| 799 |
+
+# wait
|
| 800 |
+
|
| 801 |
+
-python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=bandit-generalization-nothink \
|
| 802 |
+
- custom_envs.Bandit.env_config.lo_arm_name="Engineer" \
|
| 803 |
+
- custom_envs.Bandit.env_config.hi_arm_name="Teacher" \
|
| 804 |
+
- custom_envs.BanditTest.env_config.lo_arm_name="Trader" \
|
| 805 |
+
- custom_envs.BanditTest.env_config.hi_arm_name="Librarian" \
|
| 806 |
+
- agent_proxy.enable_think=False
|
| 807 |
+
+# # 0.5
|
| 808 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-ppo-rolloutfilter0.5 actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_PPO &
|
| 809 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_GRPO &
|
| 810 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=frozen_lake-ppo actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_PPO &
|
| 811 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=frozen_lake-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_GRPO &
|
| 812 |
+
+
|
| 813 |
+
+# # 0.75
|
| 814 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-ppo-rolloutfilter0.75 actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_PPO &
|
| 815 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_GRPO &
|
| 816 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=frozen_lake-ppo actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_PPO &
|
| 817 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=frozen_lake-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_GRPO &
|
| 818 |
+
|
| 819 |
+
-python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=bandit-generalization-rev \
|
| 820 |
+
- custom_envs.Bandit.env_config.lo_arm_name="Teacher" \
|
| 821 |
+
- custom_envs.Bandit.env_config.hi_arm_name="Engineer" \
|
| 822 |
+
- custom_envs.BanditTest.env_config.lo_arm_name="Librarian" \
|
| 823 |
+
- custom_envs.BanditTest.env_config.hi_arm_name="Trader"
|
| 824 |
+
+# wait
|
| 825 |
+
|
| 826 |
+
-python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=bandit-generalization-rev-nothink \
|
| 827 |
+
- custom_envs.Bandit.env_config.lo_arm_name="Teacher" \
|
| 828 |
+
- custom_envs.Bandit.env_config.hi_arm_name="Engineer" \
|
| 829 |
+
- custom_envs.BanditTest.env_config.lo_arm_name="Librarian" \
|
| 830 |
+
- custom_envs.BanditTest.env_config.hi_arm_name="Trader" \
|
| 831 |
+
- agent_proxy.enable_think=False
|
| 832 |
+
+# # Section 4.2 - Ablation on Critic/ClipHigh/KL. Start from Basic and add more components. The best setting for StarPO in agent is rollout_filter+Critic+Cliphigh+NoKL
|
| 833 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-base-grpo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_GRPO &
|
| 834 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-base-ppo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 835 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=sokoban-base-ppo-cliphigh algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.28 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 836 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-base-ppo-nokl algorithm.kl_ctrl.kl_coef=0.000 actor_rollout_ref.actor.kl_loss_coef=0.000 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 837 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=frozenlake-base-grpo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_GRPO &
|
| 838 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=frozenlake-base-ppo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 839 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=frozenlake-base-ppo-cliphigh algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.28 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 840 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=frozenlake-base-ppo-nokl algorithm.kl_ctrl.kl_coef=0.000 actor_rollout_ref.actor.kl_loss_coef=0.000 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 841 |
+
|
| 842 |
+
+# wait
|
| 843 |
+
|
| 844 |
+
-SOKOBAN_GENERALIZATION_CONFIG="es_manager.val.env_groups=512 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[SimpleSokoban,LargerSokoban,SokobanDifferentGridVocab,FrozenLake] es_manager.val.env_configs.n_groups=[128,128,128,128]"
|
| 845 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization $SOKOBAN_GENERALIZATION_CONFIG trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/sokoban-generalization micro_batch_size_per_gpu=8 model_path=Qwen/Qwen2.5-1.5B-Instruct&
|
| 846 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-generalization-nothink $SOKOBAN_GENERALIZATION_CONFIG agent_proxy.enable_think=False &
|
| 847 |
+
+# # Section 5.1 - Reasoning Helps Generalization
|
| 848 |
+
|
| 849 |
+
+# python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=bandit-generalization \
|
| 850 |
+
+# custom_envs.Bandit.env_config.lo_arm_name="Engineer" \
|
| 851 |
+
+# custom_envs.Bandit.env_config.hi_arm_name="Teacher" \
|
| 852 |
+
+# custom_envs.BanditTest.env_config.lo_arm_name="Trader" \
|
| 853 |
+
+# custom_envs.BanditTest.env_config.hi_arm_name="Librarian"
|
| 854 |
+
|
| 855 |
+
-# SOKOBAN_GENERALIZATION_CONFIG="es_manager.val.env_groups=128 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[SokobanDifferentGridVocab] es_manager.val.env_configs.n_groups=[128]"
|
| 856 |
+
-# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-generalization $SOKOBAN_GENERALIZATION_CONFIG &
|
| 857 |
+
+# python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=bandit-generalization-nothink \
|
| 858 |
+
+# custom_envs.Bandit.env_config.lo_arm_name="Engineer" \
|
| 859 |
+
+# custom_envs.Bandit.env_config.hi_arm_name="Teacher" \
|
| 860 |
+
+# custom_envs.BanditTest.env_config.lo_arm_name="Trader" \
|
| 861 |
+
+# custom_envs.BanditTest.env_config.hi_arm_name="Librarian" \
|
| 862 |
+
+# agent_proxy.enable_think=False
|
| 863 |
+
|
| 864 |
+
+# python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=bandit-generalization-rev \
|
| 865 |
+
+# custom_envs.Bandit.env_config.lo_arm_name="Teacher" \
|
| 866 |
+
+# custom_envs.Bandit.env_config.hi_arm_name="Engineer" \
|
| 867 |
+
+# custom_envs.BanditTest.env_config.lo_arm_name="Librarian" \
|
| 868 |
+
+# custom_envs.BanditTest.env_config.hi_arm_name="Trader"
|
| 869 |
+
|
| 870 |
+
-# COMPOSITIONALITY_CONFIG="es_manager.train.env_groups=16 es_manager.train.env_configs.tags=[Bandit,SimpleSokoban] es_manager.train.env_configs.n_groups=[8,8] es_manager.val.env_groups=512 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[Bandit,SimpleSokoban,LargerSokoban,FrozenLake] es_manager.val.env_configs.n_groups=[128,128,128,128] actor_rollout_ref.rollout.rollout_filter_ratio=1" # NOTE that we don't filter out low-var rollout in this setting
|
| 871 |
+
-# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=compositional-generalization $COMPOSITIONALITY_CONFIG &
|
| 872 |
+
-# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=compositional-generalization-nothink $COMPOSITIONALITY_CONFIG agent_proxy.enable_think=False &
|
| 873 |
+
+# python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=bandit-generalization-rev-nothink \
|
| 874 |
+
+# custom_envs.Bandit.env_config.lo_arm_name="Teacher" \
|
| 875 |
+
+# custom_envs.Bandit.env_config.hi_arm_name="Engineer" \
|
| 876 |
+
+# custom_envs.BanditTest.env_config.lo_arm_name="Librarian" \
|
| 877 |
+
+# custom_envs.BanditTest.env_config.hi_arm_name="Trader" \
|
| 878 |
+
+# agent_proxy.enable_think=False
|
| 879 |
+
|
| 880 |
+
-wait
|
| 881 |
+
|
| 882 |
+
-# Section 5.2 - what leads to better reasoning?
|
| 883 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-generalization-qwen2.5-0.5b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-0.5B-Instruct &
|
| 884 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-generalization-qwen2.5-1.5b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-1.5B-Instruct &
|
| 885 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization-qwen2.5-3b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-3B-Instruct trainer.n_gpus_per_node=2 &
|
| 886 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5,6,7\" trainer.n_gpus_per_node=4 trainer.experiment_name=sokoban-generalization-qwen2.5-7b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-7B-Instruct trainer.n_gpus_per_node=4 &
|
| 887 |
+
+# SOKOBAN_GENERALIZATION_CONFIG="es_manager.val.env_groups=512 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[SimpleSokoban,LargerSokoban,SokobanDifferentGridVocab,FrozenLake] es_manager.val.env_configs.n_groups=[128,128,128,128]"
|
| 888 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization $SOKOBAN_GENERALIZATION_CONFIG trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/sokoban-generalization micro_batch_size_per_gpu=8 model_path=Qwen/Qwen2.5-1.5B-Instruct&
|
| 889 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-generalization-nothink $SOKOBAN_GENERALIZATION_CONFIG agent_proxy.enable_think=False &
|
| 890 |
+
|
| 891 |
+
-wait
|
| 892 |
+
|
| 893 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-generalization-qwen2.5-0.5b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-0.5B &
|
| 894 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-generalization-qwen2.5-1.5b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-1.5B &
|
| 895 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization-qwen2.5-3b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-3B &
|
| 896 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5,6,7\" trainer.n_gpus_per_node=4 trainer.experiment_name=sokoban-generalization-qwen2.5-7b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-7B &
|
| 897 |
+
+# # SOKOBAN_GENERALIZATION_CONFIG="es_manager.val.env_groups=128 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[SokobanDifferentGridVocab] es_manager.val.env_configs.n_groups=[128]"
|
| 898 |
+
+# # python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-generalization $SOKOBAN_GENERALIZATION_CONFIG &
|
| 899 |
+
|
| 900 |
+
-wait
|
| 901 |
+
|
| 902 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1,2,3\" trainer.n_gpus_per_node=4 trainer.n_gpus_per_node=4 trainer.experiment_name=sokoban-generalization-qwen2.5-7b-r1 $SOKOBAN_GENERALIZATION_CONFIG model_path=deepseek-ai/DeepSeek-R1-Distill-Qwen-7B &
|
| 903 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization-qwen2.5-1.5b-r1 $SOKOBAN_GENERALIZATION_CONFIG model_path=deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B &
|
| 904 |
+
+# # COMPOSITIONALITY_CONFIG="es_manager.train.env_groups=16 es_manager.train.env_configs.tags=[Bandit,SimpleSokoban] es_manager.train.env_configs.n_groups=[8,8] es_manager.val.env_groups=512 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[Bandit,SimpleSokoban,LargerSokoban,FrozenLake] es_manager.val.env_configs.n_groups=[128,128,128,128] actor_rollout_ref.rollout.rollout_filter_ratio=1" # NOTE that we don't filter out low-var rollout in this setting
|
| 905 |
+
+# # python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=compositional-generalization $COMPOSITIONALITY_CONFIG &
|
| 906 |
+
+# # python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=compositional-generalization-nothink $COMPOSITIONALITY_CONFIG agent_proxy.enable_think=False &
|
| 907 |
+
|
| 908 |
+
+# wait
|
| 909 |
+
|
| 910 |
+
-wait
|
| 911 |
+
+# # Section 5.2 - what leads to better reasoning?
|
| 912 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-generalization-qwen2.5-0.5b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-0.5B-Instruct &
|
| 913 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-generalization-qwen2.5-1.5b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-1.5B-Instruct &
|
| 914 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization-qwen2.5-3b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-3B-Instruct trainer.n_gpus_per_node=2 &
|
| 915 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5,6,7\" trainer.n_gpus_per_node=4 trainer.experiment_name=sokoban-generalization-qwen2.5-7b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-7B-Instruct trainer.n_gpus_per_node=4 &
|
| 916 |
+
|
| 917 |
+
-# Section 6.1 varying action count
|
| 918 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-action-count-1 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=5 custom_envs.LargerSokoban.max_actions_per_traj=5 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=5 custom_envs.FrozenLake.max_actions_per_traj=5 agent_proxy.max_actions_per_turn=1 &
|
| 919 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-action-count-2 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=10 custom_envs.LargerSokoban.max_actions_per_traj=10 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=10 custom_envs.FrozenLake.max_actions_per_traj=10 agent_proxy.max_actions_per_turn=2 &
|
| 920 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=sokoban-action-count-3 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=15 custom_envs.LargerSokoban.max_actions_per_traj=15 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=15 custom_envs.FrozenLake.max_actions_per_traj=15 agent_proxy.max_actions_per_turn=3 &
|
| 921 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-action-count-4 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=20 custom_envs.LargerSokoban.max_actions_per_traj=20 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=20 custom_envs.FrozenLake.max_actions_per_traj=20 agent_proxy.max_actions_per_turn=4 &
|
| 922 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-action-count-5 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=25 custom_envs.LargerSokoban.max_actions_per_traj=25 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=25 custom_envs.FrozenLake.max_actions_per_traj=25 agent_proxy.max_actions_per_turn=5 &
|
| 923 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-action-count-6 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=30 custom_envs.LargerSokoban.max_actions_per_traj=30 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=30 custom_envs.FrozenLake.max_actions_per_traj=30 agent_proxy.max_actions_per_turn=6 &
|
| 924 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=sokoban-action-count-7 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=35 custom_envs.LargerSokoban.max_actions_per_traj=35 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=35 custom_envs.FrozenLake.max_actions_per_traj=35 agent_proxy.max_actions_per_turn=7 &
|
| 925 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=sokoban-action-count-8 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=40 custom_envs.LargerSokoban.max_actions_per_traj=40 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=40 custom_envs.FrozenLake.max_actions_per_traj=40 agent_proxy.max_actions_per_turn=8 &
|
| 926 |
+
+# wait
|
| 927 |
+
|
| 928 |
+
-# section 6.2 Varying prompt diversity
|
| 929 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-prompt-diversity-4 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=4 es_manager.train.group_size=32 es_manager.train.env_configs.n_groups=[4] &
|
| 930 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-prompt-diversity-8 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=8 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[8] &
|
| 931 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=sokoban-prompt-diversity-16 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=16 es_manager.train.group_size=8 es_manager.train.env_configs.n_groups=[16] &
|
| 932 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-prompt-diversity-32 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=32 es_manager.train.group_size=4 es_manager.train.env_configs.n_groups=[32] &
|
| 933 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-prompt-diversity-64 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=64 es_manager.train.group_size=2 es_manager.train.env_configs.n_groups=[64] &
|
| 934 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-prompt-diversity-128 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=128 es_manager.train.group_size=1 es_manager.train.env_configs.n_groups=[128] &
|
| 935 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-generalization-qwen2.5-0.5b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-0.5B &
|
| 936 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-generalization-qwen2.5-1.5b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-1.5B &
|
| 937 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization-qwen2.5-3b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-3B &
|
| 938 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5,6,7\" trainer.n_gpus_per_node=4 trainer.experiment_name=sokoban-generalization-qwen2.5-7b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-7B &
|
| 939 |
+
|
| 940 |
+
-wait
|
| 941 |
+
+# wait
|
| 942 |
+
|
| 943 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=sokoban-online-2 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=16 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[16] trainer.total_training_steps=100 trainer.test_freq=5 &
|
| 944 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1,2,3\" trainer.n_gpus_per_node=4 trainer.n_gpus_per_node=4 trainer.experiment_name=sokoban-generalization-qwen2.5-7b-r1 $SOKOBAN_GENERALIZATION_CONFIG model_path=deepseek-ai/DeepSeek-R1-Distill-Qwen-7B &
|
| 945 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization-qwen2.5-1.5b-r1 $SOKOBAN_GENERALIZATION_CONFIG model_path=deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B &
|
| 946 |
+
|
| 947 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=sokoban-online-5 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=40 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[40] trainer.total_training_steps=40 trainer.test_freq=2 &
|
| 948 |
+
|
| 949 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-online-10 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=80 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[80] trainer.total_training_steps=80 trainer.test_freq=1 &
|
| 950 |
+
+# wait
|
| 951 |
+
|
| 952 |
+
+# # Section 6.1 varying action count
|
| 953 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-action-count-1 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=5 custom_envs.LargerSokoban.max_actions_per_traj=5 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=5 custom_envs.FrozenLake.max_actions_per_traj=5 agent_proxy.max_actions_per_turn=1 &
|
| 954 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-action-count-2 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=10 custom_envs.LargerSokoban.max_actions_per_traj=10 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=10 custom_envs.FrozenLake.max_actions_per_traj=10 agent_proxy.max_actions_per_turn=2 &
|
| 955 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=sokoban-action-count-3 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=15 custom_envs.LargerSokoban.max_actions_per_traj=15 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=15 custom_envs.FrozenLake.max_actions_per_traj=15 agent_proxy.max_actions_per_turn=3 &
|
| 956 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-action-count-4 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=20 custom_envs.LargerSokoban.max_actions_per_traj=20 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=20 custom_envs.FrozenLake.max_actions_per_traj=20 agent_proxy.max_actions_per_turn=4 &
|
| 957 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-action-count-5 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=25 custom_envs.LargerSokoban.max_actions_per_traj=25 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=25 custom_envs.FrozenLake.max_actions_per_traj=25 agent_proxy.max_actions_per_turn=5 &
|
| 958 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-action-count-6 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=30 custom_envs.LargerSokoban.max_actions_per_traj=30 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=30 custom_envs.FrozenLake.max_actions_per_traj=30 agent_proxy.max_actions_per_turn=6 &
|
| 959 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=sokoban-action-count-7 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=35 custom_envs.LargerSokoban.max_actions_per_traj=35 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=35 custom_envs.FrozenLake.max_actions_per_traj=35 agent_proxy.max_actions_per_turn=7 &
|
| 960 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=sokoban-action-count-8 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=40 custom_envs.LargerSokoban.max_actions_per_traj=40 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=40 custom_envs.FrozenLake.max_actions_per_traj=40 agent_proxy.max_actions_per_turn=8 &
|
| 961 |
+
|
| 962 |
+
+# # section 6.2 Varying prompt diversity
|
| 963 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-prompt-diversity-4 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=4 es_manager.train.group_size=32 es_manager.train.env_configs.n_groups=[4] &
|
| 964 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-prompt-diversity-8 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=8 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[8] &
|
| 965 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=sokoban-prompt-diversity-16 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=16 es_manager.train.group_size=8 es_manager.train.env_configs.n_groups=[16] &
|
| 966 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-prompt-diversity-32 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=32 es_manager.train.group_size=4 es_manager.train.env_configs.n_groups=[32] &
|
| 967 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-prompt-diversity-64 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=64 es_manager.train.group_size=2 es_manager.train.env_configs.n_groups=[64] &
|
| 968 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-prompt-diversity-128 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=128 es_manager.train.group_size=1 es_manager.train.env_configs.n_groups=[128] &
|
| 969 |
+
|
| 970 |
+
+# wait
|
| 971 |
+
|
| 972 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=sokoban-online-2 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=16 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[16] trainer.total_training_steps=100 trainer.test_freq=5 &
|
| 973 |
+
|
| 974 |
+
-# Extension: Training 7B reasoning model
|
| 975 |
+
-SOKOBAN_GENERALIZATION_CONFIG="es_manager.val.env_groups=512 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[SimpleSokoban,LargerSokoban,SokobanDifferentGridVocab,FrozenLake] es_manager.val.env_configs.n_groups=[128,128,128,128]"
|
| 976 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1,2,3,4,5,6,7\" trainer.n_gpus_per_node=8 trainer.experiment_name=sokoban-generalization-qwen2.5-3b-instruct-largescale $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-3B-Instruct es_manager.train.env_groups=8 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[8] micro_batch_size_per_gpu=8 ppo_mini_batch_size=64 actor_rollout_ref.rollout.response_length=1024 actor_rollout_ref.rollout.max_model_len=6400 trainer.test_freq=5 actor_rollout_ref.rollout.max_num_batched_tokens=24000 micro_batch_size_per_gpu=2 actor_rollout_ref.rollout.rollout_filter_ratio=1 &
|
| 977 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=sokoban-online-5 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=40 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[40] trainer.total_training_steps=40 trainer.test_freq=2 &
|
| 978 |
+
|
| 979 |
+
-python -m ragen.llm_agent.agent_proxy model_path=Qwen/Qwen2.5-3B-Instruct system.CUDA_VISIBLE_DEVICES=\"0,1,2,3,4,5,6,7\" trainer.n_gpus_per_node=8 actor_rollout_ref.rollout.tensor_model_parallel_size=4 actor_rollout_ref.rollout.response_length=2048 actor_rollout_ref.rollout.max_model_len=12800
|
| 980 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-online-10 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=80 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[80] trainer.total_training_steps=80 trainer.test_freq=1 &
|
| 981 |
+
|
| 982 |
+
-# trainer.save_freq=50 trainer.default_local_dir=/mnt/local/cache/exp_name
|
| 983 |
+
|
| 984 |
+
-# USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 985 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0\" trainer.n_gpus_per_node=1 trainer.experiment_name=sokoban-final enable_response_mask=True trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/sokoban-generalization &
|
| 986 |
+
|
| 987 |
+
-python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES=\"1\" trainer.n_gpus_per_node=1 trainer.experiment_name=bandit-final enable_response_mask=True trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/bandit-generalization &
|
| 988 |
+
|
| 989 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES=\"1\" trainer.n_gpus_per_node=1 trainer.experiment_name=frozenlake-final enable_response_mask=True trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/frozenlake-generalization &
|
| 990 |
+
|
| 991 |
+
+# # Extension: Training 7B reasoning model
|
| 992 |
+
+# SOKOBAN_GENERALIZATION_CONFIG="es_manager.val.env_groups=512 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[SimpleSokoban,LargerSokoban,SokobanDifferentGridVocab,FrozenLake] es_manager.val.env_configs.n_groups=[128,128,128,128]"
|
| 993 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1,2,3,4,5,6,7\" trainer.n_gpus_per_node=8 trainer.experiment_name=sokoban-generalization-qwen2.5-3b-instruct-largescale $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-3B-Instruct es_manager.train.env_groups=8 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[8] micro_batch_size_per_gpu=8 ppo_mini_batch_size=64 actor_rollout_ref.rollout.response_length=1024 actor_rollout_ref.rollout.max_model_len=6400 trainer.test_freq=5 actor_rollout_ref.rollout.max_num_batched_tokens=24000 micro_batch_size_per_gpu=2 actor_rollout_ref.rollout.rollout_filter_ratio=1 &
|
| 994 |
+
|
| 995 |
+
+# python -m ragen.llm_agent.agent_proxy model_path=Qwen/Qwen2.5-3B-Instruct system.CUDA_VISIBLE_DEVICES=\"0,1,2,3,4,5,6,7\" trainer.n_gpus_per_node=8 actor_rollout_ref.rollout.tensor_model_parallel_size=4 actor_rollout_ref.rollout.response_length=2048 actor_rollout_ref.rollout.max_model_len=12800
|
| 996 |
+
|
| 997 |
+
+# # trainer.save_freq=50 trainer.default_local_dir=/mnt/local/cache/exp_name
|
| 998 |
+
|
| 999 |
+
-# USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1000 |
+
-# USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1001 |
+
-# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0\" trainer.n_gpus_per_node=1 trainer.experiment_name=sokoban-ppo $USE_PPO $USE_BASE ppo_mini_batch_size=64 enable_response_mask=True &
|
| 1002 |
+
+# # USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1003 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0\" trainer.n_gpus_per_node=1 trainer.experiment_name=sokoban-final enable_response_mask=True trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/sokoban-generalization &
|
| 1004 |
+
|
| 1005 |
+
+# python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES=\"1\" trainer.n_gpus_per_node=1 trainer.experiment_name=bandit-final enable_response_mask=True trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/bandit-generalization &
|
| 1006 |
+
|
| 1007 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-s-grpo algorithm.adv_estimator=grpo agent_proxy.reward_normalization.method=mean_std &
|
| 1008 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES=\"1\" trainer.n_gpus_per_node=1 trainer.experiment_name=frozenlake-final enable_response_mask=True trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/frozenlake-generalization &
|
| 1009 |
+
|
| 1010 |
+
-# enable_response_mask: False
|
| 1011 |
+
-# grpo_advantage_length_weight: True
|
| 1012 |
+
|
| 1013 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-s-grpo-1-5b algorithm.adv_estimator=grpo agent_proxy.reward_normalization.method=mean_std agent_proxy.max_actions_per_turn=5 custom_envs.SimpleSokoban.max_actions_per_traj=25 enable_response_mask=True grpo_advantage_length_weight=False model_path=Qwen/Qwen2.5-1.5B-Instruct &
|
| 1014 |
+
|
| 1015 |
+
|
| 1016 |
+
-# extension: 7B with lora. Currently NOT recommended to use lora: within current version of vllm, this could result in rollouts slower than non-lora by 100%
|
| 1017 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1,2,3\" trainer.n_gpus_per_node=4 model_path=Qwen/Qwen2.5-7B-Instruct trainer.experiment_name=sokoban_7b_instruct_lora_newversion lora.rank=16
|
| 1018 |
+
+# # USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1019 |
+
+# # USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1020 |
+
+# # python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0\" trainer.n_gpus_per_node=1 trainer.experiment_name=sokoban-ppo $USE_PPO $USE_BASE ppo_mini_batch_size=64 enable_response_mask=True &
|
| 1021 |
+
|
| 1022 |
+
-# extension: bi-level gae
|
| 1023 |
+
-python train.py trainer.experiment_name=sokoban-bi-level-gae-final \
|
| 1024 |
+
- system.CUDA_VISIBLE_DEVICES=\"0,1,2,3\" trainer.n_gpus_per_node=4 actor_rollout_ref.rollout.tensor_model_parallel_size=2 \
|
| 1025 |
+
- model_path=Qwen/Qwen2.5-0.5B-Instruct \
|
| 1026 |
+
- algorithm.bi_level_gae=True algorithm.high_level_gamma=0.95 \
|
| 1027 |
+
- agent_proxy.use_turn_scores=True \
|
| 1028 |
+
- actor_rollout_ref.rollout.tp_size_check=False
|
| 1029 |
+
|
| 1030 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-s-grpo algorithm.adv_estimator=grpo agent_proxy.reward_normalization.method=mean_std &
|
| 1031 |
+
|
| 1032 |
+
-# extension: webshop
|
| 1033 |
+
-USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1034 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 \
|
| 1035 |
+
- trainer.experiment_name=webshop-3b-ppo-s $USE_PPO \
|
| 1036 |
+
- trainer.nnodes=1 &
|
| 1037 |
+
+# # enable_response_mask: False
|
| 1038 |
+
+# # grpo_advantage_length_weight: True
|
| 1039 |
+
|
| 1040 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-s-grpo-1-5b algorithm.adv_estimator=grpo agent_proxy.reward_normalization.method=mean_std agent_proxy.max_actions_per_turn=5 custom_envs.SimpleSokoban.max_actions_per_traj=25 enable_response_mask=True grpo_advantage_length_weight=False model_path=Qwen/Qwen2.5-1.5B-Instruct &
|
| 1041 |
+
|
| 1042 |
+
-USE_GRPO="algorithm.adv_estimator=grpo" # by default.
|
| 1043 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 \
|
| 1044 |
+
- trainer.experiment_name=webshop-3b-grpo-s $USE_GRPO \
|
| 1045 |
+
- trainer.nnodes=1 &
|
| 1046 |
+
|
| 1047 |
+
-# StarPO ppo
|
| 1048 |
+
-USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1049 |
+
-USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1050 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"4,5\" trainer.n_gpus_per_node=2 \
|
| 1051 |
+
- trainer.experiment_name=webshop-3b-ppo $USE_PPO $USE_BASE \
|
| 1052 |
+
- es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1053 |
+
- trainer.nnodes=1 &
|
| 1054 |
+
+# # extension: 7B with lora. Currently NOT recommended to use lora: within current version of vllm, this could result in rollouts slower than non-lora by 100%
|
| 1055 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1,2,3\" trainer.n_gpus_per_node=4 model_path=Qwen/Qwen2.5-7B-Instruct trainer.experiment_name=sokoban_7b_instruct_lora_newversion lora.rank=16
|
| 1056 |
+
|
| 1057 |
+
-# StarPO grpo
|
| 1058 |
+
-USE_GRPO="algorithm.adv_estimator=grpo"
|
| 1059 |
+
-USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1060 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"6,7\" trainer.n_gpus_per_node=2 \
|
| 1061 |
+
- trainer.experiment_name=webshop-3b-grpo $USE_GRPO $USE_BASE \
|
| 1062 |
+
- es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1063 |
+
- trainer.nnodes=1 &
|
| 1064 |
+
+# # extension: bi-level gae
|
| 1065 |
+
+# python train.py trainer.experiment_name=sokoban-bi-level-gae-final \
|
| 1066 |
+
+# system.CUDA_VISIBLE_DEVICES=\"0,1,2,3\" trainer.n_gpus_per_node=4 actor_rollout_ref.rollout.tensor_model_parallel_size=2 \
|
| 1067 |
+
+# model_path=Qwen/Qwen2.5-0.5B-Instruct \
|
| 1068 |
+
+# algorithm.bi_level_gae=True algorithm.high_level_gamma=0.95 \
|
| 1069 |
+
+# agent_proxy.use_turn_scores=True \
|
| 1070 |
+
+# actor_rollout_ref.rollout.tp_size_check=False
|
| 1071 |
+
|
| 1072 |
+
|
| 1073 |
+
-# normal:sokoban
|
| 1074 |
+
-# extension: sokoban
|
| 1075 |
+
-USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1076 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 \
|
| 1077 |
+
- trainer.experiment_name=sokoban-3b-ppo-s $USE_PPO \
|
| 1078 |
+
- trainer.nnodes=1 &
|
| 1079 |
+
+# # extension: webshop
|
| 1080 |
+
+# USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1081 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 \
|
| 1082 |
+
+# trainer.experiment_name=webshop-3b-ppo-s $USE_PPO \
|
| 1083 |
+
+# trainer.nnodes=1 &
|
| 1084 |
+
|
| 1085 |
+
|
| 1086 |
+
-USE_GRPO="algorithm.adv_estimator=grpo" # by default.
|
| 1087 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 \
|
| 1088 |
+
- trainer.experiment_name=sokoban-3b-grpo-s $USE_GRPO \
|
| 1089 |
+
- trainer.nnodes=1 &
|
| 1090 |
+
+# USE_GRPO="algorithm.adv_estimator=grpo" # by default.
|
| 1091 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 \
|
| 1092 |
+
+# trainer.experiment_name=webshop-3b-grpo-s $USE_GRPO \
|
| 1093 |
+
+# trainer.nnodes=1 &
|
| 1094 |
+
|
| 1095 |
+
-# StarPO ppo
|
| 1096 |
+
-USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1097 |
+
-USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1098 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5\" trainer.n_gpus_per_node=2 \
|
| 1099 |
+
- trainer.experiment_name=sokoban-3b-ppo $USE_PPO $USE_BASE \
|
| 1100 |
+
- es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1101 |
+
- trainer.nnodes=1 &
|
| 1102 |
+
+# # StarPO ppo
|
| 1103 |
+
+# USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1104 |
+
+# USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1105 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"4,5\" trainer.n_gpus_per_node=2 \
|
| 1106 |
+
+# trainer.experiment_name=webshop-3b-ppo $USE_PPO $USE_BASE \
|
| 1107 |
+
+# es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1108 |
+
+# trainer.nnodes=1 &
|
| 1109 |
+
|
| 1110 |
+
-# StarPO grpo
|
| 1111 |
+
-USE_GRPO="algorithm.adv_estimator=grpo"
|
| 1112 |
+
-USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1113 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"6,7\" trainer.n_gpus_per_node=2 \
|
| 1114 |
+
- trainer.experiment_name=sokoban-3b-grpo $USE_GRPO $USE_BASE \
|
| 1115 |
+
- es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1116 |
+
- trainer.nnodes=1 &
|
| 1117 |
+
+# # StarPO grpo
|
| 1118 |
+
+# USE_GRPO="algorithm.adv_estimator=grpo"
|
| 1119 |
+
+# USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1120 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"6,7\" trainer.n_gpus_per_node=2 \
|
| 1121 |
+
+# trainer.experiment_name=webshop-3b-grpo $USE_GRPO $USE_BASE \
|
| 1122 |
+
+# es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1123 |
+
+# trainer.nnodes=1 &
|
| 1124 |
+
+
|
| 1125 |
+
+
|
| 1126 |
+
+# # normal:sokoban
|
| 1127 |
+
+# # extension: sokoban
|
| 1128 |
+
+# USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1129 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 \
|
| 1130 |
+
+# trainer.experiment_name=sokoban-3b-ppo-s $USE_PPO \
|
| 1131 |
+
+# trainer.nnodes=1 &
|
| 1132 |
+
+
|
| 1133 |
+
+
|
| 1134 |
+
+# USE_GRPO="algorithm.adv_estimator=grpo" # by default.
|
| 1135 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 \
|
| 1136 |
+
+# trainer.experiment_name=sokoban-3b-grpo-s $USE_GRPO \
|
| 1137 |
+
+# trainer.nnodes=1 &
|
| 1138 |
+
+
|
| 1139 |
+
+# # StarPO ppo
|
| 1140 |
+
+# USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1141 |
+
+# USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1142 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5\" trainer.n_gpus_per_node=2 \
|
| 1143 |
+
+# trainer.experiment_name=sokoban-3b-ppo $USE_PPO $USE_BASE \
|
| 1144 |
+
+# es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1145 |
+
+# trainer.nnodes=1 &
|
| 1146 |
+
+
|
| 1147 |
+
+# # StarPO grpo
|
| 1148 |
+
+# USE_GRPO="algorithm.adv_estimator=grpo"
|
| 1149 |
+
+# USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1150 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"6,7\" trainer.n_gpus_per_node=2 \
|
| 1151 |
+
+# trainer.experiment_name=sokoban-3b-grpo $USE_GRPO $USE_BASE \
|
| 1152 |
+
+# es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1153 |
+
+# trainer.nnodes=1 &
|
| 1154 |
+
|
| 1155 |
+
|
| 1156 |
+
|
| 1157 |
+
-python train.py \
|
| 1158 |
+
- trainer.experiment_name=3b-full-ppo-test system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2
|
| 1159 |
+
|
| 1160 |
+
+# python train.py \
|
| 1161 |
+
+# trainer.experiment_name=3b-full-ppo-test system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2
|
| 1162 |
+
|
wandb/run-20251218_182331-3lp68bhy/files/diff_8d73639b99b38265453f898b8d6af7d4af50d56e.patch
ADDED
|
@@ -0,0 +1,1162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/config/base.yaml b/config/base.yaml
|
| 2 |
+
index a1659e4..9df6250 100644
|
| 3 |
+
--- a/config/base.yaml
|
| 4 |
+
+++ b/config/base.yaml
|
| 5 |
+
@@ -9,15 +9,16 @@ seed:
|
| 6 |
+
train: 10000
|
| 7 |
+
val: 123
|
| 8 |
+
|
| 9 |
+
-micro_batch_size_per_gpu: 4
|
| 10 |
+
+micro_batch_size_per_gpu: 1
|
| 11 |
+
ppo_mini_batch_size: 32
|
| 12 |
+
-model_path: Qwen/Qwen2.5-3B-Instruct
|
| 13 |
+
+model_path: /mnt/general/share/model/Qwen/Qwen2.5-0.5B-Instruct
|
| 14 |
+
+# Qwen/Qwen2.5-0.5B-Instruct
|
| 15 |
+
enable_response_mask: True # Enabling response mask could improve stability of rollout/old_log_prob, as P(st|history) are no longer calculated in loss here. See https://docs.google.com/document/d/1bg7obeiKTExuHHBl5uOiSpec5uLDZ2Tgvxy6li5pHX4/edit?usp=sharing for more details.
|
| 16 |
+
grpo_advantage_length_weight: False # if you do not enable this and critic/advantage_estimator is GRPO, and the critic/advantages/mean is too low, then you can try enabling this to encourage reasoning and forbid collapse
|
| 17 |
+
|
| 18 |
+
lora:
|
| 19 |
+
rank: 0
|
| 20 |
+
- alpha: 64
|
| 21 |
+
+ alpha: 16
|
| 22 |
+
target_modules: all-linear
|
| 23 |
+
|
| 24 |
+
actor_rollout_ref:
|
| 25 |
+
@@ -46,10 +47,10 @@ actor_rollout_ref:
|
| 26 |
+
name: vllm
|
| 27 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu} # following micro_batch_size_per_gpu
|
| 28 |
+
tensor_model_parallel_size: 1
|
| 29 |
+
- max_model_len: 3600
|
| 30 |
+
+ max_model_len: 7200 #3600 why** 14400
|
| 31 |
+
prompt_length: 1 # useless. Just put it here
|
| 32 |
+
response_length: 400 # single-turn response length
|
| 33 |
+
- gpu_memory_utilization: 0.5
|
| 34 |
+
+ gpu_memory_utilization: 0.7
|
| 35 |
+
max_num_batched_tokens: 8192 # set only when enable_chunked_prefill is true
|
| 36 |
+
temperature: 1
|
| 37 |
+
rollout_filter_ratio: 0.25
|
| 38 |
+
@@ -90,26 +91,28 @@ algorithm:
|
| 39 |
+
kl_coef: 0.000
|
| 40 |
+
|
| 41 |
+
trainer:
|
| 42 |
+
- project_name: ragen_latest
|
| 43 |
+
+ project_name:
|
| 44 |
+
experiment_name: test
|
| 45 |
+
local_log_dir: "results/"
|
| 46 |
+
- save_freq: 100
|
| 47 |
+
+ save_freq: -1
|
| 48 |
+
total_training_steps: 200
|
| 49 |
+
validation_steps: 1 # validation instances = validation_steps * val_env_groups * group_size
|
| 50 |
+
val_before_train: True
|
| 51 |
+
n_gpus_per_node: 1
|
| 52 |
+
test_freq: 10
|
| 53 |
+
generations_to_log_to_wandb:
|
| 54 |
+
+ train: 128
|
| 55 |
+
val: 20
|
| 56 |
+
logger: [ 'console', 'wandb' ]
|
| 57 |
+
max_actor_ckpt_to_keep: 1
|
| 58 |
+
max_critic_ckpt_to_keep: 1
|
| 59 |
+
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
|
| 60 |
+
|
| 61 |
+
agent_proxy:
|
| 62 |
+
max_context_window: -1 # set a value > 0 to enable context window for long trajectory
|
| 63 |
+
- max_turn: 5
|
| 64 |
+
+ max_turn: 25 #25 why** 700
|
| 65 |
+
action_sep: "||"
|
| 66 |
+
- max_actions_per_turn: 2 # how many actions can be output at most in a single turn
|
| 67 |
+
+ max_actions_per_turn: 1 # how many actions can be output at most in a single turn
|
| 68 |
+
use_turn_scores: False # important to GAE when applying token-level rewards to token-level advantages. If False, will take the sum of scores as the reward for the last turn.
|
| 69 |
+
enable_think: True # False -> no think RL
|
| 70 |
+
reward_normalization:
|
| 71 |
+
@@ -126,11 +129,11 @@ es_manager:
|
| 72 |
+
tags: ["CoordSokoban"]
|
| 73 |
+
n_groups: [8] # If not set, all env names divide nums equally. Under the same group, the env config and env seed (prompt) are equal in each generation
|
| 74 |
+
val:
|
| 75 |
+
- env_groups: 32
|
| 76 |
+
- group_size: 16 # should be set to 1 because when val temperature is set to 0 and group size > 1, there will be repetitive prompts which leads to same trajectory.
|
| 77 |
+
+ env_groups: 256
|
| 78 |
+
+ group_size: 1 # should be set to 1 because when val temperature is set to 0 and group size > 1, there will be repetitive prompts which leads to same trajectory.
|
| 79 |
+
env_configs:
|
| 80 |
+
tags: ["CoordSokoban"]
|
| 81 |
+
- n_groups: [32] # TODO: If not set, all env names divide nums equally. Under the same group, the env config and env seed (prompt) are equal in each generation
|
| 82 |
+
+ n_groups: [256] # TODO: If not set, all env names divide nums equally. Under the same group, the env config and env seed (prompt) are equal in each generation
|
| 83 |
+
|
| 84 |
+
ctx_manager:
|
| 85 |
+
generation: # go to vllm
|
| 86 |
+
diff --git a/config/envs.yaml b/config/envs.yaml
|
| 87 |
+
index 1002ac8..ba3ac6f 100644
|
| 88 |
+
--- a/config/envs.yaml
|
| 89 |
+
+++ b/config/envs.yaml
|
| 90 |
+
@@ -2,6 +2,7 @@ custom_envs:
|
| 91 |
+
SimpleSokoban:
|
| 92 |
+
env_type: sokoban
|
| 93 |
+
max_actions_per_traj: 10 # used in environment state manager to control the actual max actions executed per trajectory
|
| 94 |
+
+ # ORIGNAL env_instruction
|
| 95 |
+
env_instruction: |
|
| 96 |
+
You are solving the Sokoban puzzle.
|
| 97 |
+
You are the player and you need to push all boxes to targets.
|
| 98 |
+
@@ -12,7 +13,7 @@ custom_envs:
|
| 99 |
+
env_config: # keys should be a subset of SokobanConfig
|
| 100 |
+
dim_x: 6
|
| 101 |
+
dim_y: 6
|
| 102 |
+
- num_boxes: 1
|
| 103 |
+
+ num_boxes: 2
|
| 104 |
+
max_steps: 100
|
| 105 |
+
|
| 106 |
+
LargerSokoban:
|
| 107 |
+
@@ -65,7 +66,7 @@ custom_envs:
|
| 108 |
+
env_config: # keys should be a subset of SokobanConfig
|
| 109 |
+
dim_x: 6
|
| 110 |
+
dim_y: 6
|
| 111 |
+
- num_boxes: 1
|
| 112 |
+
+ num_boxes: 2
|
| 113 |
+
max_steps: 100
|
| 114 |
+
observation_format: "grid_coord"
|
| 115 |
+
|
| 116 |
+
@@ -111,14 +112,14 @@ custom_envs:
|
| 117 |
+
|
| 118 |
+
FrozenLake:
|
| 119 |
+
env_type: frozen_lake
|
| 120 |
+
- max_actions_per_traj: 10
|
| 121 |
+
+ max_actions_per_traj: 25
|
| 122 |
+
env_instruction: "You are solving the FrozenLake puzzle. Forbid the whole and go to the target. You may move to the unintended direction due to the slippery ice. Example answer format: <think>To forbid the hole and go to the target, I should go left then go up.</think><answer>Left || Up</answer>"
|
| 123 |
+
max_tokens: 100
|
| 124 |
+
env_config: null
|
| 125 |
+
|
| 126 |
+
CoordFrozenLake:
|
| 127 |
+
env_type: frozen_lake
|
| 128 |
+
- max_actions_per_traj: 10
|
| 129 |
+
+ max_actions_per_traj: 25
|
| 130 |
+
env_instruction: |
|
| 131 |
+
You are solving the FrozenLake puzzle. The observation includes both a symbol grid and zero-indexed coordinates for the start, goal, player, and any holes.
|
| 132 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner (5, 5).
|
| 133 |
+
@@ -195,4 +196,80 @@ custom_envs:
|
| 134 |
+
max_actions_per_traj: 30
|
| 135 |
+
env_instruction: "You are a Lean theorem prover. Given a Lean theorem statement, propose a sequence of tactics that completes the proof. Think step by step about which tactics to apply next. Provide tactics separated by '||', for example <answer>intro || simp || rfl</answer>."
|
| 136 |
+
max_tokens: 512
|
| 137 |
+
- env_config: null # Please refer to ragen/env/lean/config.py for a full list of parameters.
|
| 138 |
+
|
| 139 |
+
+ env_config: null # Please refer to ragen/env/lean/config.py for a full list of parameters.
|
| 140 |
+
+
|
| 141 |
+
+
|
| 142 |
+
+ game_2048:
|
| 143 |
+
+ env_type: game_2048
|
| 144 |
+
+ max_actions_per_traj: 700
|
| 145 |
+
+ env_instruction: |
|
| 146 |
+
+ You are playing the 2048 game on a 4x4 grid. Merge equal tiles by sliding Up, Right, Down, or Left.
|
| 147 |
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with a single action.
|
| 148 |
+
+ Example: <answer>Up</answer>
|
| 149 |
+
+ max_tokens: 8192
|
| 150 |
+
+ env_config: null
|
| 151 |
+
+
|
| 152 |
+
+ blackjack:
|
| 153 |
+
+ env_type: blackjack
|
| 154 |
+
+ max_actions_per_traj: 10
|
| 155 |
+
+ env_instruction: |
|
| 156 |
+
+ You are playing Blackjack against a dealer. The dealer must hit on 16 or less and stand on 17 or more.
|
| 157 |
+
+ Choose either Stick or Hit. Respond with a single action.
|
| 158 |
+
+ Example: <answer>Hit</answer>
|
| 159 |
+
+ max_tokens: 64
|
| 160 |
+
+ env_config: null
|
| 161 |
+
+
|
| 162 |
+
+ rubikscube:
|
| 163 |
+
+ env_type: rubikscube
|
| 164 |
+
+ max_actions_per_traj: 20
|
| 165 |
+
+ env_instruction: |
|
| 166 |
+
+ You are solving a 2x2 Rubik's Cube (Pocket Cube). The goal is to restore the cube so that each of the faces consists of a single, unique color.
|
| 167 |
+
+ Available actions use standard Singmaster notation for face rotations: U, U', D, D', L, L', R, R', F, F', B, B'.
|
| 168 |
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
|
| 169 |
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., 'R'). A letter with prime (') means 90° counter-clockwise (e.g., "R'").
|
| 170 |
+
+ Respond with a sequence of actions separated by "||".
|
| 171 |
+
+ Example: <answer>U</answer>
|
| 172 |
+
+ max_tokens: 96
|
| 173 |
+
+ env_config:
|
| 174 |
+
+ scramble_depth: 1
|
| 175 |
+
+ max_steps: 20
|
| 176 |
+
+ render_mode: "text"
|
| 177 |
+
+
|
| 178 |
+
+ SimpleSudoku:
|
| 179 |
+
+ env_type: sudoku
|
| 180 |
+
+ max_actions_per_traj: 20
|
| 181 |
+
+ env_instruction: |
|
| 182 |
+
+ You are solving a Sudoku puzzle. Fill in the grid so that every row, column, and 2x2 box contains the numbers 1-4 without repetition.
|
| 183 |
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are shown as dots (.).
|
| 184 |
+
+ Place numbers one at a time using the format, for example: <answer>place 1 at row 2 col 3</answer> or <answer>1,2,3</answer>
|
| 185 |
+
+ The environment will provide feedback on valid/invalid moves and show conflicts if any occur.
|
| 186 |
+
+ max_tokens: 150
|
| 187 |
+
+ parallel_friendly: false
|
| 188 |
+
+ max_workers: 32
|
| 189 |
+
+ env_config:
|
| 190 |
+
+ grid_size: 4
|
| 191 |
+
+ difficulty: "easy"
|
| 192 |
+
+ render_format: "with_feedback"
|
| 193 |
+
+ show_conflicts: false
|
| 194 |
+
+ show_valid_numbers: false
|
| 195 |
+
+ max_steps: 20
|
| 196 |
+
+
|
| 197 |
+
+ MediumSudoku:
|
| 198 |
+
+ env_type: sudoku
|
| 199 |
+
+ max_actions_per_traj: 30
|
| 200 |
+
+ env_instruction: |
|
| 201 |
+
+ You are solving a Sudoku puzzle. Fill in the grid so that every row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 202 |
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are shown as dots (.).
|
| 203 |
+
+ Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer> or <answer>2,3,5</answer>
|
| 204 |
+
+ The environment will provide feedback on valid/invalid moves and show conflicts if any occur.
|
| 205 |
+
+ max_tokens: 150
|
| 206 |
+
+ parallel_friendly: false
|
| 207 |
+
+ max_workers: 32
|
| 208 |
+
+ env_config:
|
| 209 |
+
+ grid_size: 9
|
| 210 |
+
+ difficulty: "medium"
|
| 211 |
+
+ render_format: "with_feedback"
|
| 212 |
+
+ show_conflicts: true
|
| 213 |
+
+ show_valid_numbers: true
|
| 214 |
+
+ max_steps: 81
|
| 215 |
+
+
|
| 216 |
+
diff --git a/config/eval.yaml b/config/eval.yaml
|
| 217 |
+
index e65f3a5..7775fd1 100644
|
| 218 |
+
--- a/config/eval.yaml
|
| 219 |
+
+++ b/config/eval.yaml
|
| 220 |
+
@@ -1,14 +1,15 @@
|
| 221 |
+
defaults:
|
| 222 |
+
- envs
|
| 223 |
+
-
|
| 224 |
+
+enable_response_mask: True
|
| 225 |
+
system:
|
| 226 |
+
- CUDA_VISIBLE_DEVICES: "0"
|
| 227 |
+
+ CUDA_VISIBLE_DEVICES: "0,1,2,3,4,5,6,7"
|
| 228 |
+
|
| 229 |
+
seed:
|
| 230 |
+
train: 10000
|
| 231 |
+
val: 123
|
| 232 |
+
|
| 233 |
+
-model_path: Qwen/Qwen2.5-3B-Instruct
|
| 234 |
+
+model_path: /mnt/general/share/model/openai/gpt-oss-20b
|
| 235 |
+
+# /mnt/general/share/model/tyzhu/SPA-frozenlake-qwen2.5-1.5b-instruct
|
| 236 |
+
|
| 237 |
+
lora:
|
| 238 |
+
rank: 0
|
| 239 |
+
@@ -24,9 +25,9 @@ actor_rollout_ref:
|
| 240 |
+
rollout:
|
| 241 |
+
name: vllm
|
| 242 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 243 |
+
- tensor_model_parallel_size: 1
|
| 244 |
+
+ tensor_model_parallel_size: 8
|
| 245 |
+
dtype: bfloat16
|
| 246 |
+
- max_model_len: 3600
|
| 247 |
+
+ max_model_len: 7200
|
| 248 |
+
prompt_length: 1
|
| 249 |
+
response_length: 400
|
| 250 |
+
gpu_memory_utilization: 0.9
|
| 251 |
+
@@ -35,6 +36,7 @@ actor_rollout_ref:
|
| 252 |
+
free_cache_engine: True
|
| 253 |
+
enable_chunked_prefill: False
|
| 254 |
+
disable_log_stats: False
|
| 255 |
+
+ do_sample: True
|
| 256 |
+
val_kwargs:
|
| 257 |
+
do_sample: True
|
| 258 |
+
temperature: 0.5
|
| 259 |
+
@@ -44,9 +46,9 @@ actor_rollout_ref:
|
| 260 |
+
|
| 261 |
+
agent_proxy:
|
| 262 |
+
max_context_window: -1
|
| 263 |
+
- max_turn: 5
|
| 264 |
+
+ max_turn: 25
|
| 265 |
+
action_sep: "||"
|
| 266 |
+
- max_actions_per_turn: 2
|
| 267 |
+
+ max_actions_per_turn: 1
|
| 268 |
+
use_turn_scores: False
|
| 269 |
+
enable_think: True
|
| 270 |
+
reward_normalization:
|
| 271 |
+
@@ -59,13 +61,13 @@ es_manager:
|
| 272 |
+
env_groups: 8
|
| 273 |
+
group_size: 16
|
| 274 |
+
env_configs:
|
| 275 |
+
- tags: ["CoordSokoban"]
|
| 276 |
+
+ tags: ["BanditTest"]
|
| 277 |
+
n_groups: [8]
|
| 278 |
+
val:
|
| 279 |
+
env_groups: 32
|
| 280 |
+
- group_size: 16
|
| 281 |
+
+ group_size: 128
|
| 282 |
+
env_configs:
|
| 283 |
+
- tags: ["CoordSokoban"]
|
| 284 |
+
+ tags: ["BanditTest"]
|
| 285 |
+
n_groups: [32]
|
| 286 |
+
|
| 287 |
+
ctx_manager:
|
| 288 |
+
diff --git a/config/evaluate_api_llm.yaml b/config/evaluate_api_llm.yaml
|
| 289 |
+
index b21c95e..e2e6761 100644
|
| 290 |
+
--- a/config/evaluate_api_llm.yaml
|
| 291 |
+
+++ b/config/evaluate_api_llm.yaml
|
| 292 |
+
@@ -1,8 +1,11 @@
|
| 293 |
+
+#export OPENAI_BASE_URL="https://api.ohmygpt.com/v1"
|
| 294 |
+
+#export OPENAI_API_KEY="sk-o4sMxBkN5BB100C4D4a3T3BlBkFJF7791CA39EA14ca98041"
|
| 295 |
+
+#python -m ragen.eval_api hydra.searchpath='[file://./verl/verl/trainer/config]'
|
| 296 |
+
defaults:
|
| 297 |
+
- base # this is a symbolic link to the verl/verl/trainer/config/ppo_trainer.yaml file
|
| 298 |
+
|
| 299 |
+
model_config:
|
| 300 |
+
- model_name: gpt-4o # should be registered in model_info
|
| 301 |
+
+ model_name: ark-deepseek-v3-250324 # should be registered in model_info
|
| 302 |
+
max_concurrency: 16
|
| 303 |
+
|
| 304 |
+
model_info:
|
| 305 |
+
@@ -24,9 +27,9 @@ model_info:
|
| 306 |
+
generation_kwargs:
|
| 307 |
+
temperature: 0
|
| 308 |
+
max_tokens: 512 # max_completion_tokens if o1-mini
|
| 309 |
+
- gpt-4o:
|
| 310 |
+
+ gpt-4o-mini:
|
| 311 |
+
provider_name: openai
|
| 312 |
+
- model_name: gpt-4o
|
| 313 |
+
+ model_name: gpt-4o-mini
|
| 314 |
+
generation_kwargs:
|
| 315 |
+
temperature: 0
|
| 316 |
+
max_tokens: 512 # max_completion_tokens if o1-mini
|
| 317 |
+
@@ -36,21 +39,42 @@ model_info:
|
| 318 |
+
generation_kwargs:
|
| 319 |
+
temperature: 0
|
| 320 |
+
max_completion_tokens: 512
|
| 321 |
+
+ ark-deepseek-v3-250324:
|
| 322 |
+
+ provider_name: openai
|
| 323 |
+
+ model_name: ark-deepseek-v3-250324
|
| 324 |
+
+ generation_kwargs:
|
| 325 |
+
+ temperature: 0
|
| 326 |
+
+ max_completion_tokens: 512
|
| 327 |
+
deepseek-v3:
|
| 328 |
+
provider_name: deepseek
|
| 329 |
+
model_name: deepseek-chat
|
| 330 |
+
generation_kwargs:
|
| 331 |
+
temperature: 0
|
| 332 |
+
max_completion_tokens: 512
|
| 333 |
+
+ glm-4.6:
|
| 334 |
+
+ provider_name: openai
|
| 335 |
+
+ model_name: glm-4.6
|
| 336 |
+
+ generation_kwargs:
|
| 337 |
+
+ temperature: 0
|
| 338 |
+
+ max_completion_tokens: 512
|
| 339 |
+
+ TA/openai/gpt-oss-120b:
|
| 340 |
+
+ provider_name: openai
|
| 341 |
+
+ model_name: TA/openai/gpt-oss-120b
|
| 342 |
+
+ generation_kwargs:
|
| 343 |
+
+ temperature: 0
|
| 344 |
+
+ max_tokens: 8192
|
| 345 |
+
+ # max_retries: 5
|
| 346 |
+
|
| 347 |
+
-
|
| 348 |
+
-
|
| 349 |
+
+agent_proxy:
|
| 350 |
+
+ max_turn: 5
|
| 351 |
+
es_manager:
|
| 352 |
+
val:
|
| 353 |
+
- env_groups: 256
|
| 354 |
+
+ env_groups: 128
|
| 355 |
+
group_size: 1 # should be set to 1 because val temperature is set to 0 and same prompt leads to same output
|
| 356 |
+
env_configs:
|
| 357 |
+
- tags: ["CoordSokoban"]
|
| 358 |
+
- n_groups: [256] # If not set, all env names divide nums equally. Under the same group, the env config and env seed (prompt) are equal in each generation
|
| 359 |
+
+ tags: ["rubikscube"]
|
| 360 |
+
+ n_groups: [128] # If not set, all env names divide nums equally. Under the same group, the env config and env seed (prompt) are equal in each generation
|
| 361 |
+
|
| 362 |
+
|
| 363 |
+
+rollout:
|
| 364 |
+
+ max_model_len: 7200
|
| 365 |
+
|
| 366 |
+
Submodule external/webshop-minimal contains modified content
|
| 367 |
+
diff --git a/external/webshop-minimal/requirements.txt b/external/webshop-minimal/requirements.txt
|
| 368 |
+
index 5a1b04f..238ed5a 100644
|
| 369 |
+
--- a/external/webshop-minimal/requirements.txt
|
| 370 |
+
+++ b/external/webshop-minimal/requirements.txt
|
| 371 |
+
@@ -4,7 +4,7 @@ flask
|
| 372 |
+
html2text
|
| 373 |
+
rank_bm25
|
| 374 |
+
pyserini
|
| 375 |
+
-faiss-cpu
|
| 376 |
+
+faiss-gpu
|
| 377 |
+
thefuzz
|
| 378 |
+
gdown
|
| 379 |
+
spacy
|
| 380 |
+
diff --git a/ragen/env/__init__.py b/ragen/env/__init__.py
|
| 381 |
+
index b0f3461..bc6838e 100644
|
| 382 |
+
--- a/ragen/env/__init__.py
|
| 383 |
+
+++ b/ragen/env/__init__.py
|
| 384 |
+
@@ -12,6 +12,14 @@ from .metamathqa.env import MetaMathQAEnv
|
| 385 |
+
from .metamathqa.config import MetaMathQAEnvConfig
|
| 386 |
+
from .lean.config import LeanEnvConfig
|
| 387 |
+
from .lean.env import LeanEnv
|
| 388 |
+
+from .game_2048.config import Game2048EnvConfig
|
| 389 |
+
+from .game_2048.env import Game2048Env
|
| 390 |
+
+from .blackjack.config import BlackjackEnvConfig
|
| 391 |
+
+from .blackjack.env import BlackjackEnv
|
| 392 |
+
+from .rubikscube.config import RubiksCube2x2Config
|
| 393 |
+
+from .rubikscube.env import RubiksCube2x2Env
|
| 394 |
+
+from .sudoku.config import SudokuEnvConfig
|
| 395 |
+
+from .sudoku.env import SudokuEnv
|
| 396 |
+
|
| 397 |
+
|
| 398 |
+
REGISTERED_ENVS = {
|
| 399 |
+
@@ -22,6 +30,10 @@ REGISTERED_ENVS = {
|
| 400 |
+
# 'alfworld': AlfredTXTEnv,
|
| 401 |
+
'metamathqa': MetaMathQAEnv,
|
| 402 |
+
'lean': LeanEnv,
|
| 403 |
+
+ 'game_2048': Game2048Env,
|
| 404 |
+
+ 'blackjack': BlackjackEnv,
|
| 405 |
+
+ 'rubikscube': RubiksCube2x2Env,
|
| 406 |
+
+ 'sudoku': SudokuEnv,
|
| 407 |
+
}
|
| 408 |
+
|
| 409 |
+
REGISTERED_ENV_CONFIGS = {
|
| 410 |
+
@@ -32,6 +44,10 @@ REGISTERED_ENV_CONFIGS = {
|
| 411 |
+
# 'alfworld': AlfredEnvConfig,
|
| 412 |
+
'metamathqa': MetaMathQAEnvConfig,
|
| 413 |
+
'lean': LeanEnvConfig,
|
| 414 |
+
+ 'game_2048': Game2048EnvConfig,
|
| 415 |
+
+ 'blackjack': BlackjackEnvConfig,
|
| 416 |
+
+ 'rubikscube': RubiksCube2x2Config,
|
| 417 |
+
+ 'sudoku': SudokuEnvConfig,
|
| 418 |
+
}
|
| 419 |
+
|
| 420 |
+
try:
|
| 421 |
+
diff --git a/ragen/env/frozen_lake/config.py b/ragen/env/frozen_lake/config.py
|
| 422 |
+
index de054f4..9950c34 100644
|
| 423 |
+
--- a/ragen/env/frozen_lake/config.py
|
| 424 |
+
+++ b/ragen/env/frozen_lake/config.py
|
| 425 |
+
@@ -8,7 +8,7 @@ class FrozenLakeEnvConfig:
|
| 426 |
+
size: int = 4
|
| 427 |
+
p: float = 0.9
|
| 428 |
+
success_rate: float = 0.8
|
| 429 |
+
- is_slippery: bool = True
|
| 430 |
+
+ is_slippery: bool = False
|
| 431 |
+
map_seed: Optional[int] = None
|
| 432 |
+
render_mode: str = "text"
|
| 433 |
+
observation_format: str = "grid"
|
| 434 |
+
diff --git a/ragen/env/frozen_lake/env.py b/ragen/env/frozen_lake/env.py
|
| 435 |
+
index 9ee3add..eef11d8 100644
|
| 436 |
+
--- a/ragen/env/frozen_lake/env.py
|
| 437 |
+
+++ b/ragen/env/frozen_lake/env.py
|
| 438 |
+
@@ -13,6 +13,7 @@ from ragen.env.base import BaseDiscreteActionEnv
|
| 439 |
+
class FrozenLakeEnv(BaseDiscreteActionEnv, GymFrozenLakeEnv):
|
| 440 |
+
def __init__(self, config: FrozenLakeEnvConfig = FrozenLakeEnvConfig()):
|
| 441 |
+
# Using mappings directly from config
|
| 442 |
+
+ # import pdb;pdb.set_trace()
|
| 443 |
+
self.config = config
|
| 444 |
+
self.GRID_LOOKUP = config.grid_lookup
|
| 445 |
+
self.ACTION_LOOKUP = config.action_lookup
|
| 446 |
+
@@ -95,6 +96,7 @@ class FrozenLakeEnv(BaseDiscreteActionEnv, GymFrozenLakeEnv):
|
| 447 |
+
if __name__ == "__main__":
|
| 448 |
+
import matplotlib.pyplot as plt
|
| 449 |
+
config = FrozenLakeEnvConfig(size=4, is_slippery=True)
|
| 450 |
+
+ # import pdb;pdb.set_trace()
|
| 451 |
+
env = FrozenLakeEnv(config)
|
| 452 |
+
print(env.reset())
|
| 453 |
+
while True:
|
| 454 |
+
diff --git a/ragen/env/sokoban/env.py b/ragen/env/sokoban/env.py
|
| 455 |
+
index 17cd636..6922b54 100644
|
| 456 |
+
--- a/ragen/env/sokoban/env.py
|
| 457 |
+
+++ b/ragen/env/sokoban/env.py
|
| 458 |
+
@@ -33,6 +33,7 @@ class SokobanEnv(BaseDiscreteActionEnv, GymSokobanEnv):
|
| 459 |
+
def reset(self, seed=None, mode=None):
|
| 460 |
+
try:
|
| 461 |
+
with all_seed(seed):
|
| 462 |
+
+ # import pdb;pdb.set_trace()
|
| 463 |
+
self.room_fixed, self.room_state, self.box_mapping, action_sequence = generate_room(
|
| 464 |
+
dim=self.dim_room,
|
| 465 |
+
num_steps=self.num_gen_steps,
|
| 466 |
+
diff --git a/ragen/llm_agent/agent_proxy.py b/ragen/llm_agent/agent_proxy.py
|
| 467 |
+
index c25b50d..f6c4088 100644
|
| 468 |
+
--- a/ragen/llm_agent/agent_proxy.py
|
| 469 |
+
+++ b/ragen/llm_agent/agent_proxy.py
|
| 470 |
+
@@ -287,6 +287,7 @@ def main(config):
|
| 471 |
+
proxy = LLMAgentProxy(config, actor_wg, tokenizer)
|
| 472 |
+
import time
|
| 473 |
+
start_time = time.time()
|
| 474 |
+
+ # import pdb;pdb.set_trace()
|
| 475 |
+
rollouts = proxy.rollout(
|
| 476 |
+
DataProto(
|
| 477 |
+
batch=None,
|
| 478 |
+
diff --git a/ragen/llm_agent/base_llm.py b/ragen/llm_agent/base_llm.py
|
| 479 |
+
index 358a2eb..b6f7797 100644
|
| 480 |
+
--- a/ragen/llm_agent/base_llm.py
|
| 481 |
+
+++ b/ragen/llm_agent/base_llm.py
|
| 482 |
+
@@ -33,6 +33,7 @@ class OpenAIProvider(LLMProvider):
|
| 483 |
+
raise ValueError("OpenAI API key not provided and not found in environment variables")
|
| 484 |
+
|
| 485 |
+
self.client = AsyncOpenAI(api_key=self.api_key)
|
| 486 |
+
+ # import pdb;pdb.set_trace()
|
| 487 |
+
|
| 488 |
+
async def generate(self, messages: List[Dict[str, str]], **kwargs) -> LLMResponse:
|
| 489 |
+
if "o1-mini" in self.model_name:
|
| 490 |
+
@@ -46,10 +47,7 @@ class OpenAIProvider(LLMProvider):
|
| 491 |
+
)
|
| 492 |
+
if response.choices[0].finish_reason in ['length', 'content_filter']:
|
| 493 |
+
raise ValueError("Content filtered or length exceeded")
|
| 494 |
+
- return LLMResponse(
|
| 495 |
+
- content=response.choices[0].message.content,
|
| 496 |
+
- model_name=response.model
|
| 497 |
+
- )
|
| 498 |
+
+ return LLMResponse(content=response.choices[0].message.content,model_name=response.model)
|
| 499 |
+
|
| 500 |
+
class DeepSeekProvider(LLMProvider):
|
| 501 |
+
"""DeepSeek API provider implementation"""
|
| 502 |
+
@@ -199,7 +197,7 @@ class ConcurrentLLM:
|
| 503 |
+
|
| 504 |
+
# Queue to store unfinished or failed tasks
|
| 505 |
+
current_batch = messages_list.copy()
|
| 506 |
+
- max_retries = kwargs.get("max_retries", 100)
|
| 507 |
+
+ max_retries = kwargs.get("max_retries", 10)
|
| 508 |
+
retry_count = 0
|
| 509 |
+
|
| 510 |
+
while current_batch and retry_count < max_retries:
|
| 511 |
+
diff --git a/ragen/llm_agent/ctx_manager.py b/ragen/llm_agent/ctx_manager.py
|
| 512 |
+
index 905247a..af20a01 100644
|
| 513 |
+
--- a/ragen/llm_agent/ctx_manager.py
|
| 514 |
+
+++ b/ragen/llm_agent/ctx_manager.py
|
| 515 |
+
@@ -88,6 +88,7 @@ class ContextManager:
|
| 516 |
+
Initialize the ContextManager.
|
| 517 |
+
Processor is used to process the image data.
|
| 518 |
+
"""
|
| 519 |
+
+ # import pdb;pdb.set_trace()
|
| 520 |
+
self.config = config
|
| 521 |
+
self.tokenizer = tokenizer
|
| 522 |
+
self.processor = processor
|
| 523 |
+
@@ -311,7 +312,7 @@ class ContextManager:
|
| 524 |
+
|
| 525 |
+
llm_input_texts.append(text_with_prompt)
|
| 526 |
+
messages_list.append(messages)
|
| 527 |
+
-
|
| 528 |
+
+ # import pdb;pdb.set_trace()
|
| 529 |
+
inputs = self.tokenizer(llm_input_texts, return_tensors="pt", padding=True, padding_side="left", truncation=False) # We have truncated previously, truncation in tokenizer may cause issues.
|
| 530 |
+
input_ids, attention_mask = inputs.input_ids, inputs.attention_mask
|
| 531 |
+
position_ids = (attention_mask.cumsum(dim=-1) - 1).clamp(min=0)
|
| 532 |
+
@@ -353,6 +354,30 @@ class ContextManager:
|
| 533 |
+
key: np.sum(value) / self.env_nums[key.split("/")[0]]
|
| 534 |
+
for key, value in metrics.items()
|
| 535 |
+
}
|
| 536 |
+
+ # Derived metrics for wandb logging
|
| 537 |
+
+ try:
|
| 538 |
+
+ # charts/avg_episode_return: average across all 2048 env groups
|
| 539 |
+
+ ep_keys = [k for k in metrics.keys() if k.endswith('/episodic_return')]
|
| 540 |
+
+ if len(ep_keys) > 0:
|
| 541 |
+
+ ep_vals = []
|
| 542 |
+
+ for k in ep_keys:
|
| 543 |
+
+ tag = k.split('/')[0]
|
| 544 |
+
+ denom = self.env_nums.get(tag, max(1, len(metrics[k])))
|
| 545 |
+
+ ep_vals.append(float(np.sum(metrics[k]) / denom))
|
| 546 |
+
+ mean_metrics["charts/avg_episode_return"] = float(np.mean(ep_vals))
|
| 547 |
+
+ except Exception:
|
| 548 |
+
+ pass
|
| 549 |
+
+ try:
|
| 550 |
+
+ # rollout/max_tile: max over all envs in this batch
|
| 551 |
+
+ tile_keys = [k for k in metrics.keys() if k.endswith('/max_tile')]
|
| 552 |
+
+ if len(tile_keys) > 0:
|
| 553 |
+
+ tile_vals = []
|
| 554 |
+
+ for k in tile_keys:
|
| 555 |
+
+ tile_vals.extend(metrics[k])
|
| 556 |
+
+ if len(tile_vals) > 0:
|
| 557 |
+
+ mean_metrics["rollout/max_tile"] = int(np.max(tile_vals))
|
| 558 |
+
+ except Exception:
|
| 559 |
+
+ pass
|
| 560 |
+
for key, values in metrics.items():
|
| 561 |
+
if not isinstance(values, list):
|
| 562 |
+
continue
|
| 563 |
+
diff --git a/ragen/llm_agent/es_manager.py b/ragen/llm_agent/es_manager.py
|
| 564 |
+
index b87a2b3..1a49d3e 100644
|
| 565 |
+
--- a/ragen/llm_agent/es_manager.py
|
| 566 |
+
+++ b/ragen/llm_agent/es_manager.py
|
| 567 |
+
@@ -128,18 +128,40 @@ class EnvStateManager:
|
| 568 |
+
env_outputs: List[Dict]
|
| 569 |
+
{env_id: int, history: List[Dict][{state: str, actions: List[str], reward: float, info: Dict, llm_response: str, llm_raw_response: str, (Optional)images: List[PIL.Image.Image]}]}
|
| 570 |
+
"""
|
| 571 |
+
+ # def _execute_actions(env, actions):
|
| 572 |
+
+ # acc_reward, turn_info, turn_done = 0, {}, False
|
| 573 |
+
+ # executed_actions = []
|
| 574 |
+
+ # for action in actions:
|
| 575 |
+
+ # _, reward, done, info = env.step(action)
|
| 576 |
+
+ # acc_reward += reward
|
| 577 |
+
+ # turn_info.update(info) # NOTE: currently use last info for multi-action
|
| 578 |
+
+ # executed_actions.append(action)
|
| 579 |
+
+ # if done:
|
| 580 |
+
+ # turn_done = True
|
| 581 |
+
+ # break
|
| 582 |
+
+
|
| 583 |
+
+ # return acc_reward, turn_info, turn_done, executed_actions
|
| 584 |
+
def _execute_actions(env, actions):
|
| 585 |
+
- acc_reward, turn_info, turn_done = 0, {}, False
|
| 586 |
+
+ acc_reward, turn_info, turn_done = 0.0, {}, False
|
| 587 |
+
+ raw_acc_reward = 0.0
|
| 588 |
+
executed_actions = []
|
| 589 |
+
for action in actions:
|
| 590 |
+
_, reward, done, info = env.step(action)
|
| 591 |
+
- acc_reward += reward
|
| 592 |
+
+ acc_reward += float(reward)
|
| 593 |
+
+ try:
|
| 594 |
+
+ raw_acc_reward += float(info.get('raw_reward', 0.0))
|
| 595 |
+
+ except Exception:
|
| 596 |
+
+ pass
|
| 597 |
+
turn_info.update(info) # NOTE: currently use last info for multi-action
|
| 598 |
+
executed_actions.append(action)
|
| 599 |
+
if done:
|
| 600 |
+
turn_done = True
|
| 601 |
+
break
|
| 602 |
+
-
|
| 603 |
+
+ # Overwrite per-turn raw_reward to reflect the sum across all executed actions in this turn
|
| 604 |
+
+ try:
|
| 605 |
+
+ turn_info['raw_reward'] = float(raw_acc_reward)
|
| 606 |
+
+ except Exception:
|
| 607 |
+
+ pass
|
| 608 |
+
return acc_reward, turn_info, turn_done, executed_actions
|
| 609 |
+
|
| 610 |
+
def _log_env_state(status, history, cur_obs, max_actions_per_traj, executed_actions, all_actions, acc_reward, turn_done, turn_info, env_input):
|
| 611 |
+
@@ -198,6 +220,18 @@ class EnvStateManager:
|
| 612 |
+
'success': float(status.terminated and (not status.truncated)),
|
| 613 |
+
'num_actions': status.num_actions,
|
| 614 |
+
}
|
| 615 |
+
+ # Add episodic-level metrics
|
| 616 |
+
+ # try:
|
| 617 |
+
+ # # Sum of per-turn rewards equals the episodic return (env-shaped reward)
|
| 618 |
+
+ # env_metric['episodic_return'] = float(sum(status.rewards))
|
| 619 |
+
+ # except Exception:
|
| 620 |
+
+ # pass
|
| 621 |
+
+ try:
|
| 622 |
+
+ # Final max tile on the board at the end of the rollout
|
| 623 |
+
+ import numpy as _np
|
| 624 |
+
+ env_metric['max_tile'] = int(_np.max(entry['env'].grid))
|
| 625 |
+
+ except Exception:
|
| 626 |
+
+ pass
|
| 627 |
+
custom_metric = {}
|
| 628 |
+
for turn in cache['history']:
|
| 629 |
+
for k, v in turn.get('info', {}).items():
|
| 630 |
+
@@ -212,6 +246,12 @@ class EnvStateManager:
|
| 631 |
+
"Skipping non-numeric metric '%s' with value %r for env %s.",
|
| 632 |
+
k, v, entry['tag']
|
| 633 |
+
)
|
| 634 |
+
+ # Add episodic_return as the SUM of raw_reward across steps (align with CleanRL)
|
| 635 |
+
+ try:
|
| 636 |
+
+ if 'raw_reward' in custom_metric:
|
| 637 |
+
+ env_metric['episodic_return'] = float(np.sum(custom_metric['raw_reward']))
|
| 638 |
+
+ except Exception:
|
| 639 |
+
+ pass
|
| 640 |
+
for k, v in custom_metric.items():
|
| 641 |
+
# TODO: Move TURN_LVL_METRICS into the environment
|
| 642 |
+
if "webshop" not in cache['tag'].lower() or ("webshop" in cache['tag'].lower() and k in TURN_LVL_METRICS):
|
| 643 |
+
@@ -219,7 +259,12 @@ class EnvStateManager:
|
| 644 |
+
else:
|
| 645 |
+
env_metric['traj_sum/' + k] = np.sum(v)
|
| 646 |
+
|
| 647 |
+
-
|
| 648 |
+
+ try:
|
| 649 |
+
+ if 'score' in custom_metric and len(custom_metric['score']) > 0:
|
| 650 |
+
+ env_metric['final_score'] = float(custom_metric['score'][-1])
|
| 651 |
+
+ except Exception:
|
| 652 |
+
+ pass
|
| 653 |
+
+
|
| 654 |
+
cache['history'][-1]['metrics'] = custom_metric
|
| 655 |
+
env_metric = {f"{entry['tag']}/{k}": v for k, v in env_metric.items()}
|
| 656 |
+
cache['metrics'] = env_metric
|
| 657 |
+
diff --git a/requirements.txt b/requirements.txt
|
| 658 |
+
index 2fd756e..9b521bf 100644
|
| 659 |
+
--- a/requirements.txt
|
| 660 |
+
+++ b/requirements.txt
|
| 661 |
+
@@ -7,7 +7,6 @@ accelerate
|
| 662 |
+
codetiming
|
| 663 |
+
datasets
|
| 664 |
+
dill
|
| 665 |
+
-flash-attn==2.7.4.post1
|
| 666 |
+
hydra-core
|
| 667 |
+
numpy
|
| 668 |
+
pandas
|
| 669 |
+
@@ -15,19 +14,19 @@ pybind11
|
| 670 |
+
ray>=2.10
|
| 671 |
+
tensordict>=0.8.0,<0.9.0
|
| 672 |
+
transformers
|
| 673 |
+
-vllm==0.8.2
|
| 674 |
+
+vllm==0.8.5
|
| 675 |
+
wandb
|
| 676 |
+
gymnasium
|
| 677 |
+
gymnasium[toy-text]
|
| 678 |
+
|
| 679 |
+
pyarrow>=15.0.0
|
| 680 |
+
pylatexenc
|
| 681 |
+
-torchdata
|
| 682 |
+
+# torchdata
|
| 683 |
+
debugpy
|
| 684 |
+
|
| 685 |
+
together
|
| 686 |
+
anthropic
|
| 687 |
+
-faiss-cpu==1.11.0
|
| 688 |
+
+faiss-gpu
|
| 689 |
+
|
| 690 |
+
# This is optional, but needs to be installed with main requirements if you want to use webshop
|
| 691 |
+
-r external/webshop-minimal/requirements.txt
|
| 692 |
+
diff --git a/scripts/setup_ragen.sh b/scripts/setup_ragen.sh
|
| 693 |
+
index f9a7cd9..85a93c4 100644
|
| 694 |
+
--- a/scripts/setup_ragen.sh
|
| 695 |
+
+++ b/scripts/setup_ragen.sh
|
| 696 |
+
@@ -94,10 +94,10 @@ main() {
|
| 697 |
+
pip install torch==2.5.0 --index-url https://download.pytorch.org/whl/cu124
|
| 698 |
+
|
| 699 |
+
print_step "Installing flash-attention..."
|
| 700 |
+
- pip3 install flash-attn==2.7.4.post1 --no-build-isolation
|
| 701 |
+
+ # pip3 install flash-attn==2.7.4.post1 --no-build-isolation
|
| 702 |
+
else
|
| 703 |
+
print_step "Installing PyTorch without CUDA support..."
|
| 704 |
+
- pip install torch==2.5.0
|
| 705 |
+
+ pip install torch==2.4.0
|
| 706 |
+
fi
|
| 707 |
+
|
| 708 |
+
# Install remaining requirements
|
| 709 |
+
@@ -137,8 +137,8 @@ main() {
|
| 710 |
+
conda install conda-forge::gdown
|
| 711 |
+
mkdir -p external/webshop-minimal/webshop_minimal/data/full
|
| 712 |
+
cd external/webshop-minimal/webshop_minimal/data/full
|
| 713 |
+
- gdown https://drive.google.com/uc?id=1A2whVgOO0euk5O13n2iYDM0bQRkkRduB # items_shuffle
|
| 714 |
+
- gdown https://drive.google.com/uc?id=1s2j6NgHljiZzQNL3veZaAiyW_qDEgBNi # items_ins_v2
|
| 715 |
+
+ # gdown https://drive.google.com/uc?id=1A2whVgOO0euk5O13n2iYDM0bQRkkRduB # items_shuffle
|
| 716 |
+
+ # gdown https://drive.google.com/uc?id=1s2j6NgHljiZzQNL3veZaAiyW_qDEgBNi # items_ins_v2
|
| 717 |
+
cd ../../../../..
|
| 718 |
+
|
| 719 |
+
echo -e "${GREEN}Installation completed successfully!${NC}"
|
| 720 |
+
diff --git a/train_all.sh b/train_all.sh
|
| 721 |
+
index 0157306..33035f5 100755
|
| 722 |
+
--- a/train_all.sh
|
| 723 |
+
+++ b/train_all.sh
|
| 724 |
+
@@ -6,246 +6,257 @@ USE_GRPO="algorithm.adv_estimator=grpo"
|
| 725 |
+
USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 726 |
+
USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 727 |
+
|
| 728 |
+
+
|
| 729 |
+
+# python train.py --config-name _8_2048 system.CUDA_VISIBLE_DEVICES="'0,1,2,3'" trainer.project_name=ragen_latest_qwen_25_15b_it trainer.n_gpus_per_node=4 model_path=Qwen/Qwen2.5-0.5B-Instruct trainer.experiment_name=game_2048 $USE_PPO $USE_BASE
|
| 730 |
+
+
|
| 731 |
+
+# python train.py --config-name _10_rubikscube system.CUDA_VISIBLE_DEVICES="'0,1'" trainer.project_name=ragen_latest_qwen_05B_it trainer.n_gpus_per_node=2 model_path=Qwen/Qwen2.5-0.5B-Instruct trainer.experiment_name=rubikscube-1 $USE_PPO $USE_BASE
|
| 732 |
+
+# python train.py --config-name _10_rubikscube system.CUDA_VISIBLE_DEVICES="'2,3'" trainer.project_name=ragen_latest_qwen_25_15b_it trainer.n_gpus_per_node=2 model_path=Qwen/Qwen2.5-1.5B-Instruct trainer.experiment_name=rubikscube-2 $USE_PPO $USE_BASE
|
| 733 |
+
+# python train.py --config-name _10_rubikscube system.CUDA_VISIBLE_DEVICES="'4,5'" trainer.project_name=ragen_latest_qwen_25_3b_it trainer.n_gpus_per_node=2 model_path=Qwen/Qwen2.5-3B-Instruct trainer.experiment_name=rubikscube-2 $USE_PPO $USE_BASE
|
| 734 |
+
+python train.py --config-name _10_rubikscube system.CUDA_VISIBLE_DEVICES="'6,7'" trainer.project_name=ragen_latest_qwen_05B_it trainer.n_gpus_per_node=2 model_path=Qwen/Qwen2.5-0.5B-Instruct trainer.experiment_name=rubikscube-3 $USE_PPO $USE_BASE
|
| 735 |
+
+
|
| 736 |
+
# Section 3.1&3.2 - General Observations
|
| 737 |
+
-python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=bandit-ppo $USE_PPO $USE_BASE &
|
| 738 |
+
-python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=bandit-grpo $USE_GRPO $USE_BASE &
|
| 739 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=sokoban-ppo $USE_PPO $USE_BASE &
|
| 740 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-grpo $USE_GRPO $USE_BASE &
|
| 741 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=frozen_lake-ppo $USE_PPO $USE_BASE &
|
| 742 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=frozen_lake-grpo $USE_GRPO $USE_BASE &
|
| 743 |
+
+# python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="'6,7'" trainer.project_name=ragen_latest_qwen_25_15b_it trainer.n_gpus_per_node=2 model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask trainer.experiment_name=bandit-ppo-multitask $USE_PPO $USE_BASE &
|
| 744 |
+
+# python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="'7'" trainer.n_gpus_per_node=1 trainer.experiment_name=bandit-ppo-frommlp $USE_PPO $USE_BASE
|
| 745 |
+
|
| 746 |
+
-# Section 4.1 - Filtering and critic
|
| 747 |
+
-# 0.25
|
| 748 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-ppo-rolloutfilter0.25 actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_PPO &
|
| 749 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_GRPO &
|
| 750 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=frozen_lake-ppo actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_PPO &
|
| 751 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=frozen_lake-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_GRPO &
|
| 752 |
+
-
|
| 753 |
+
-wait
|
| 754 |
+
-
|
| 755 |
+
-# 0.5
|
| 756 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-ppo-rolloutfilter0.5 actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_PPO &
|
| 757 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_GRPO &
|
| 758 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=frozen_lake-ppo actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_PPO &
|
| 759 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=frozen_lake-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_GRPO &
|
| 760 |
+
-
|
| 761 |
+
-# 0.75
|
| 762 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-ppo-rolloutfilter0.75 actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_PPO &
|
| 763 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_GRPO &
|
| 764 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=frozen_lake-ppo actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_PPO &
|
| 765 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=frozen_lake-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_GRPO &
|
| 766 |
+
-
|
| 767 |
+
-wait
|
| 768 |
+
-
|
| 769 |
+
-# Section 4.2 - Ablation on Critic/ClipHigh/KL. Start from Basic and add more components. The best setting for StarPO in agent is rollout_filter+Critic+Cliphigh+NoKL
|
| 770 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-base-grpo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_GRPO &
|
| 771 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-base-ppo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 772 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=sokoban-base-ppo-cliphigh algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.28 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 773 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-base-ppo-nokl algorithm.kl_ctrl.kl_coef=0.000 actor_rollout_ref.actor.kl_loss_coef=0.000 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 774 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=frozenlake-base-grpo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_GRPO &
|
| 775 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=frozenlake-base-ppo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 776 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=frozenlake-base-ppo-cliphigh algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.28 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 777 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=frozenlake-base-ppo-nokl algorithm.kl_ctrl.kl_coef=0.000 actor_rollout_ref.actor.kl_loss_coef=0.000 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 778 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="'0,1'" trainer.project_name=ragen_latest_qwen_25_15b_it trainer.n_gpus_per_node=2 model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask trainer.experiment_name=sokoban-ppo-box1-multitask $USE_PPO $USE_BASE
|
| 779 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-grpo $USE_GRPO $USE_BASE &
|
| 780 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="'2,3'" trainer.project_name=ragen_latest_qwen_25_15b_it trainer.n_gpus_per_node=2 model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask trainer.experiment_name=frozen_lake-ppo-slippery-multitask $USE_PPO $USE_BASE
|
| 781 |
+
|
| 782 |
+
-wait
|
| 783 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="'4,5,6,7'" trainer.project_name=ragen_latest_qwen_25_3b_it trainer.n_gpus_per_node=4 model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_multitask trainer.experiment_name=frozen_lake-ppo-slippery-multitask $USE_PPO $USE_BASE
|
| 784 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="'4,5,6,7'" trainer.n_gpus_per_node=4 model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask trainer.experiment_name=frozen_lake-ppo-slippery-multitask $USE_PPO $USE_BASE
|
| 785 |
+
|
| 786 |
+
-# Section 5.1 - Reasoning Helps Generalization
|
| 787 |
+
+# # Section 4.1 - Filtering and critic
|
| 788 |
+
+# # 0.25
|
| 789 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-ppo-rolloutfilter0.25 actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_PPO &
|
| 790 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_GRPO &
|
| 791 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=frozen_lake-ppo actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_PPO &
|
| 792 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=frozen_lake-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.25 $USE_GRPO &
|
| 793 |
+
|
| 794 |
+
-python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=bandit-generalization \
|
| 795 |
+
- custom_envs.Bandit.env_config.lo_arm_name="Engineer" \
|
| 796 |
+
- custom_envs.Bandit.env_config.hi_arm_name="Teacher" \
|
| 797 |
+
- custom_envs.BanditTest.env_config.lo_arm_name="Trader" \
|
| 798 |
+
- custom_envs.BanditTest.env_config.hi_arm_name="Librarian"
|
| 799 |
+
+# wait
|
| 800 |
+
|
| 801 |
+
-python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=bandit-generalization-nothink \
|
| 802 |
+
- custom_envs.Bandit.env_config.lo_arm_name="Engineer" \
|
| 803 |
+
- custom_envs.Bandit.env_config.hi_arm_name="Teacher" \
|
| 804 |
+
- custom_envs.BanditTest.env_config.lo_arm_name="Trader" \
|
| 805 |
+
- custom_envs.BanditTest.env_config.hi_arm_name="Librarian" \
|
| 806 |
+
- agent_proxy.enable_think=False
|
| 807 |
+
+# # 0.5
|
| 808 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-ppo-rolloutfilter0.5 actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_PPO &
|
| 809 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_GRPO &
|
| 810 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=frozen_lake-ppo actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_PPO &
|
| 811 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=frozen_lake-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.5 $USE_GRPO &
|
| 812 |
+
+
|
| 813 |
+
+# # 0.75
|
| 814 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-ppo-rolloutfilter0.75 actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_PPO &
|
| 815 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_GRPO &
|
| 816 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=frozen_lake-ppo actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_PPO &
|
| 817 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=frozen_lake-grpo actor_rollout_ref.rollout.rollout_filter_ratio=0.75 $USE_GRPO &
|
| 818 |
+
|
| 819 |
+
-python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=bandit-generalization-rev \
|
| 820 |
+
- custom_envs.Bandit.env_config.lo_arm_name="Teacher" \
|
| 821 |
+
- custom_envs.Bandit.env_config.hi_arm_name="Engineer" \
|
| 822 |
+
- custom_envs.BanditTest.env_config.lo_arm_name="Librarian" \
|
| 823 |
+
- custom_envs.BanditTest.env_config.hi_arm_name="Trader"
|
| 824 |
+
+# wait
|
| 825 |
+
|
| 826 |
+
-python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=bandit-generalization-rev-nothink \
|
| 827 |
+
- custom_envs.Bandit.env_config.lo_arm_name="Teacher" \
|
| 828 |
+
- custom_envs.Bandit.env_config.hi_arm_name="Engineer" \
|
| 829 |
+
- custom_envs.BanditTest.env_config.lo_arm_name="Librarian" \
|
| 830 |
+
- custom_envs.BanditTest.env_config.hi_arm_name="Trader" \
|
| 831 |
+
- agent_proxy.enable_think=False
|
| 832 |
+
+# # Section 4.2 - Ablation on Critic/ClipHigh/KL. Start from Basic and add more components. The best setting for StarPO in agent is rollout_filter+Critic+Cliphigh+NoKL
|
| 833 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-base-grpo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_GRPO &
|
| 834 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-base-ppo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 835 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=sokoban-base-ppo-cliphigh algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.28 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 836 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-base-ppo-nokl algorithm.kl_ctrl.kl_coef=0.000 actor_rollout_ref.actor.kl_loss_coef=0.000 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 837 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=frozenlake-base-grpo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_GRPO &
|
| 838 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=frozenlake-base-ppo algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 839 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=frozenlake-base-ppo-cliphigh algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.28 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 840 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=frozenlake-base-ppo-nokl algorithm.kl_ctrl.kl_coef=0.000 actor_rollout_ref.actor.kl_loss_coef=0.000 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1 $USE_PPO &
|
| 841 |
+
|
| 842 |
+
+# wait
|
| 843 |
+
|
| 844 |
+
-SOKOBAN_GENERALIZATION_CONFIG="es_manager.val.env_groups=512 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[SimpleSokoban,LargerSokoban,SokobanDifferentGridVocab,FrozenLake] es_manager.val.env_configs.n_groups=[128,128,128,128]"
|
| 845 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization $SOKOBAN_GENERALIZATION_CONFIG trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/sokoban-generalization micro_batch_size_per_gpu=8 model_path=Qwen/Qwen2.5-1.5B-Instruct&
|
| 846 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-generalization-nothink $SOKOBAN_GENERALIZATION_CONFIG agent_proxy.enable_think=False &
|
| 847 |
+
+# # Section 5.1 - Reasoning Helps Generalization
|
| 848 |
+
|
| 849 |
+
+# python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=bandit-generalization \
|
| 850 |
+
+# custom_envs.Bandit.env_config.lo_arm_name="Engineer" \
|
| 851 |
+
+# custom_envs.Bandit.env_config.hi_arm_name="Teacher" \
|
| 852 |
+
+# custom_envs.BanditTest.env_config.lo_arm_name="Trader" \
|
| 853 |
+
+# custom_envs.BanditTest.env_config.hi_arm_name="Librarian"
|
| 854 |
+
|
| 855 |
+
-# SOKOBAN_GENERALIZATION_CONFIG="es_manager.val.env_groups=128 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[SokobanDifferentGridVocab] es_manager.val.env_configs.n_groups=[128]"
|
| 856 |
+
-# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-generalization $SOKOBAN_GENERALIZATION_CONFIG &
|
| 857 |
+
+# python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=bandit-generalization-nothink \
|
| 858 |
+
+# custom_envs.Bandit.env_config.lo_arm_name="Engineer" \
|
| 859 |
+
+# custom_envs.Bandit.env_config.hi_arm_name="Teacher" \
|
| 860 |
+
+# custom_envs.BanditTest.env_config.lo_arm_name="Trader" \
|
| 861 |
+
+# custom_envs.BanditTest.env_config.hi_arm_name="Librarian" \
|
| 862 |
+
+# agent_proxy.enable_think=False
|
| 863 |
+
|
| 864 |
+
+# python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=bandit-generalization-rev \
|
| 865 |
+
+# custom_envs.Bandit.env_config.lo_arm_name="Teacher" \
|
| 866 |
+
+# custom_envs.Bandit.env_config.hi_arm_name="Engineer" \
|
| 867 |
+
+# custom_envs.BanditTest.env_config.lo_arm_name="Librarian" \
|
| 868 |
+
+# custom_envs.BanditTest.env_config.hi_arm_name="Trader"
|
| 869 |
+
|
| 870 |
+
-# COMPOSITIONALITY_CONFIG="es_manager.train.env_groups=16 es_manager.train.env_configs.tags=[Bandit,SimpleSokoban] es_manager.train.env_configs.n_groups=[8,8] es_manager.val.env_groups=512 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[Bandit,SimpleSokoban,LargerSokoban,FrozenLake] es_manager.val.env_configs.n_groups=[128,128,128,128] actor_rollout_ref.rollout.rollout_filter_ratio=1" # NOTE that we don't filter out low-var rollout in this setting
|
| 871 |
+
-# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=compositional-generalization $COMPOSITIONALITY_CONFIG &
|
| 872 |
+
-# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=compositional-generalization-nothink $COMPOSITIONALITY_CONFIG agent_proxy.enable_think=False &
|
| 873 |
+
+# python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=bandit-generalization-rev-nothink \
|
| 874 |
+
+# custom_envs.Bandit.env_config.lo_arm_name="Teacher" \
|
| 875 |
+
+# custom_envs.Bandit.env_config.hi_arm_name="Engineer" \
|
| 876 |
+
+# custom_envs.BanditTest.env_config.lo_arm_name="Librarian" \
|
| 877 |
+
+# custom_envs.BanditTest.env_config.hi_arm_name="Trader" \
|
| 878 |
+
+# agent_proxy.enable_think=False
|
| 879 |
+
|
| 880 |
+
-wait
|
| 881 |
+
|
| 882 |
+
-# Section 5.2 - what leads to better reasoning?
|
| 883 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-generalization-qwen2.5-0.5b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-0.5B-Instruct &
|
| 884 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-generalization-qwen2.5-1.5b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-1.5B-Instruct &
|
| 885 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization-qwen2.5-3b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-3B-Instruct trainer.n_gpus_per_node=2 &
|
| 886 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5,6,7\" trainer.n_gpus_per_node=4 trainer.experiment_name=sokoban-generalization-qwen2.5-7b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-7B-Instruct trainer.n_gpus_per_node=4 &
|
| 887 |
+
+# SOKOBAN_GENERALIZATION_CONFIG="es_manager.val.env_groups=512 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[SimpleSokoban,LargerSokoban,SokobanDifferentGridVocab,FrozenLake] es_manager.val.env_configs.n_groups=[128,128,128,128]"
|
| 888 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization $SOKOBAN_GENERALIZATION_CONFIG trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/sokoban-generalization micro_batch_size_per_gpu=8 model_path=Qwen/Qwen2.5-1.5B-Instruct&
|
| 889 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-generalization-nothink $SOKOBAN_GENERALIZATION_CONFIG agent_proxy.enable_think=False &
|
| 890 |
+
|
| 891 |
+
-wait
|
| 892 |
+
|
| 893 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-generalization-qwen2.5-0.5b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-0.5B &
|
| 894 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-generalization-qwen2.5-1.5b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-1.5B &
|
| 895 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization-qwen2.5-3b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-3B &
|
| 896 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5,6,7\" trainer.n_gpus_per_node=4 trainer.experiment_name=sokoban-generalization-qwen2.5-7b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-7B &
|
| 897 |
+
+# # SOKOBAN_GENERALIZATION_CONFIG="es_manager.val.env_groups=128 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[SokobanDifferentGridVocab] es_manager.val.env_configs.n_groups=[128]"
|
| 898 |
+
+# # python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-generalization $SOKOBAN_GENERALIZATION_CONFIG &
|
| 899 |
+
|
| 900 |
+
-wait
|
| 901 |
+
|
| 902 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1,2,3\" trainer.n_gpus_per_node=4 trainer.n_gpus_per_node=4 trainer.experiment_name=sokoban-generalization-qwen2.5-7b-r1 $SOKOBAN_GENERALIZATION_CONFIG model_path=deepseek-ai/DeepSeek-R1-Distill-Qwen-7B &
|
| 903 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization-qwen2.5-1.5b-r1 $SOKOBAN_GENERALIZATION_CONFIG model_path=deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B &
|
| 904 |
+
+# # COMPOSITIONALITY_CONFIG="es_manager.train.env_groups=16 es_manager.train.env_configs.tags=[Bandit,SimpleSokoban] es_manager.train.env_configs.n_groups=[8,8] es_manager.val.env_groups=512 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[Bandit,SimpleSokoban,LargerSokoban,FrozenLake] es_manager.val.env_configs.n_groups=[128,128,128,128] actor_rollout_ref.rollout.rollout_filter_ratio=1" # NOTE that we don't filter out low-var rollout in this setting
|
| 905 |
+
+# # python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=compositional-generalization $COMPOSITIONALITY_CONFIG &
|
| 906 |
+
+# # python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=compositional-generalization-nothink $COMPOSITIONALITY_CONFIG agent_proxy.enable_think=False &
|
| 907 |
+
|
| 908 |
+
+# wait
|
| 909 |
+
|
| 910 |
+
-wait
|
| 911 |
+
+# # Section 5.2 - what leads to better reasoning?
|
| 912 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-generalization-qwen2.5-0.5b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-0.5B-Instruct &
|
| 913 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-generalization-qwen2.5-1.5b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-1.5B-Instruct &
|
| 914 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization-qwen2.5-3b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-3B-Instruct trainer.n_gpus_per_node=2 &
|
| 915 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5,6,7\" trainer.n_gpus_per_node=4 trainer.experiment_name=sokoban-generalization-qwen2.5-7b-instruct $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-7B-Instruct trainer.n_gpus_per_node=4 &
|
| 916 |
+
|
| 917 |
+
-# Section 6.1 varying action count
|
| 918 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-action-count-1 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=5 custom_envs.LargerSokoban.max_actions_per_traj=5 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=5 custom_envs.FrozenLake.max_actions_per_traj=5 agent_proxy.max_actions_per_turn=1 &
|
| 919 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-action-count-2 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=10 custom_envs.LargerSokoban.max_actions_per_traj=10 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=10 custom_envs.FrozenLake.max_actions_per_traj=10 agent_proxy.max_actions_per_turn=2 &
|
| 920 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=sokoban-action-count-3 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=15 custom_envs.LargerSokoban.max_actions_per_traj=15 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=15 custom_envs.FrozenLake.max_actions_per_traj=15 agent_proxy.max_actions_per_turn=3 &
|
| 921 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-action-count-4 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=20 custom_envs.LargerSokoban.max_actions_per_traj=20 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=20 custom_envs.FrozenLake.max_actions_per_traj=20 agent_proxy.max_actions_per_turn=4 &
|
| 922 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-action-count-5 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=25 custom_envs.LargerSokoban.max_actions_per_traj=25 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=25 custom_envs.FrozenLake.max_actions_per_traj=25 agent_proxy.max_actions_per_turn=5 &
|
| 923 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-action-count-6 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=30 custom_envs.LargerSokoban.max_actions_per_traj=30 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=30 custom_envs.FrozenLake.max_actions_per_traj=30 agent_proxy.max_actions_per_turn=6 &
|
| 924 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=sokoban-action-count-7 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=35 custom_envs.LargerSokoban.max_actions_per_traj=35 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=35 custom_envs.FrozenLake.max_actions_per_traj=35 agent_proxy.max_actions_per_turn=7 &
|
| 925 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=sokoban-action-count-8 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=40 custom_envs.LargerSokoban.max_actions_per_traj=40 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=40 custom_envs.FrozenLake.max_actions_per_traj=40 agent_proxy.max_actions_per_turn=8 &
|
| 926 |
+
+# wait
|
| 927 |
+
|
| 928 |
+
-# section 6.2 Varying prompt diversity
|
| 929 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-prompt-diversity-4 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=4 es_manager.train.group_size=32 es_manager.train.env_configs.n_groups=[4] &
|
| 930 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-prompt-diversity-8 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=8 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[8] &
|
| 931 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=sokoban-prompt-diversity-16 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=16 es_manager.train.group_size=8 es_manager.train.env_configs.n_groups=[16] &
|
| 932 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-prompt-diversity-32 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=32 es_manager.train.group_size=4 es_manager.train.env_configs.n_groups=[32] &
|
| 933 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-prompt-diversity-64 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=64 es_manager.train.group_size=2 es_manager.train.env_configs.n_groups=[64] &
|
| 934 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-prompt-diversity-128 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=128 es_manager.train.group_size=1 es_manager.train.env_configs.n_groups=[128] &
|
| 935 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-generalization-qwen2.5-0.5b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-0.5B &
|
| 936 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-generalization-qwen2.5-1.5b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-1.5B &
|
| 937 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization-qwen2.5-3b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-3B &
|
| 938 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5,6,7\" trainer.n_gpus_per_node=4 trainer.experiment_name=sokoban-generalization-qwen2.5-7b $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-7B &
|
| 939 |
+
|
| 940 |
+
-wait
|
| 941 |
+
+# wait
|
| 942 |
+
|
| 943 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=sokoban-online-2 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=16 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[16] trainer.total_training_steps=100 trainer.test_freq=5 &
|
| 944 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1,2,3\" trainer.n_gpus_per_node=4 trainer.n_gpus_per_node=4 trainer.experiment_name=sokoban-generalization-qwen2.5-7b-r1 $SOKOBAN_GENERALIZATION_CONFIG model_path=deepseek-ai/DeepSeek-R1-Distill-Qwen-7B &
|
| 945 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-generalization-qwen2.5-1.5b-r1 $SOKOBAN_GENERALIZATION_CONFIG model_path=deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B &
|
| 946 |
+
|
| 947 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=sokoban-online-5 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=40 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[40] trainer.total_training_steps=40 trainer.test_freq=2 &
|
| 948 |
+
|
| 949 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-online-10 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=80 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[80] trainer.total_training_steps=80 trainer.test_freq=1 &
|
| 950 |
+
+# wait
|
| 951 |
+
|
| 952 |
+
+# # Section 6.1 varying action count
|
| 953 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-action-count-1 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=5 custom_envs.LargerSokoban.max_actions_per_traj=5 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=5 custom_envs.FrozenLake.max_actions_per_traj=5 agent_proxy.max_actions_per_turn=1 &
|
| 954 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-action-count-2 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=10 custom_envs.LargerSokoban.max_actions_per_traj=10 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=10 custom_envs.FrozenLake.max_actions_per_traj=10 agent_proxy.max_actions_per_turn=2 &
|
| 955 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=sokoban-action-count-3 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=15 custom_envs.LargerSokoban.max_actions_per_traj=15 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=15 custom_envs.FrozenLake.max_actions_per_traj=15 agent_proxy.max_actions_per_turn=3 &
|
| 956 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-action-count-4 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=20 custom_envs.LargerSokoban.max_actions_per_traj=20 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=20 custom_envs.FrozenLake.max_actions_per_traj=20 agent_proxy.max_actions_per_turn=4 &
|
| 957 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-action-count-5 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=25 custom_envs.LargerSokoban.max_actions_per_traj=25 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=25 custom_envs.FrozenLake.max_actions_per_traj=25 agent_proxy.max_actions_per_turn=5 &
|
| 958 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-action-count-6 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=30 custom_envs.LargerSokoban.max_actions_per_traj=30 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=30 custom_envs.FrozenLake.max_actions_per_traj=30 agent_proxy.max_actions_per_turn=6 &
|
| 959 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=sokoban-action-count-7 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=35 custom_envs.LargerSokoban.max_actions_per_traj=35 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=35 custom_envs.FrozenLake.max_actions_per_traj=35 agent_proxy.max_actions_per_turn=7 &
|
| 960 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=sokoban-action-count-8 $SOKOBAN_GENERALIZATION_CONFIG custom_envs.SimpleSokoban.max_actions_per_traj=40 custom_envs.LargerSokoban.max_actions_per_traj=40 custom_envs.SokobanDifferentGridVocab.max_actions_per_traj=40 custom_envs.FrozenLake.max_actions_per_traj=40 agent_proxy.max_actions_per_turn=8 &
|
| 961 |
+
|
| 962 |
+
+# # section 6.2 Varying prompt diversity
|
| 963 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-prompt-diversity-4 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=4 es_manager.train.group_size=32 es_manager.train.env_configs.n_groups=[4] &
|
| 964 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="1" trainer.experiment_name=sokoban-prompt-diversity-8 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=8 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[8] &
|
| 965 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="2" trainer.experiment_name=sokoban-prompt-diversity-16 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=16 es_manager.train.group_size=8 es_manager.train.env_configs.n_groups=[16] &
|
| 966 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="3" trainer.experiment_name=sokoban-prompt-diversity-32 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=32 es_manager.train.group_size=4 es_manager.train.env_configs.n_groups=[32] &
|
| 967 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="4" trainer.experiment_name=sokoban-prompt-diversity-64 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=64 es_manager.train.group_size=2 es_manager.train.env_configs.n_groups=[64] &
|
| 968 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="5" trainer.experiment_name=sokoban-prompt-diversity-128 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=128 es_manager.train.group_size=1 es_manager.train.env_configs.n_groups=[128] &
|
| 969 |
+
|
| 970 |
+
+# wait
|
| 971 |
+
|
| 972 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="6" trainer.experiment_name=sokoban-online-2 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=16 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[16] trainer.total_training_steps=100 trainer.test_freq=5 &
|
| 973 |
+
|
| 974 |
+
-# Extension: Training 7B reasoning model
|
| 975 |
+
-SOKOBAN_GENERALIZATION_CONFIG="es_manager.val.env_groups=512 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[SimpleSokoban,LargerSokoban,SokobanDifferentGridVocab,FrozenLake] es_manager.val.env_configs.n_groups=[128,128,128,128]"
|
| 976 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1,2,3,4,5,6,7\" trainer.n_gpus_per_node=8 trainer.experiment_name=sokoban-generalization-qwen2.5-3b-instruct-largescale $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-3B-Instruct es_manager.train.env_groups=8 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[8] micro_batch_size_per_gpu=8 ppo_mini_batch_size=64 actor_rollout_ref.rollout.response_length=1024 actor_rollout_ref.rollout.max_model_len=6400 trainer.test_freq=5 actor_rollout_ref.rollout.max_num_batched_tokens=24000 micro_batch_size_per_gpu=2 actor_rollout_ref.rollout.rollout_filter_ratio=1 &
|
| 977 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="7" trainer.experiment_name=sokoban-online-5 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=40 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[40] trainer.total_training_steps=40 trainer.test_freq=2 &
|
| 978 |
+
|
| 979 |
+
-python -m ragen.llm_agent.agent_proxy model_path=Qwen/Qwen2.5-3B-Instruct system.CUDA_VISIBLE_DEVICES=\"0,1,2,3,4,5,6,7\" trainer.n_gpus_per_node=8 actor_rollout_ref.rollout.tensor_model_parallel_size=4 actor_rollout_ref.rollout.response_length=2048 actor_rollout_ref.rollout.max_model_len=12800
|
| 980 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES="0" trainer.experiment_name=sokoban-online-10 $SOKOBAN_GENERALIZATION_CONFIG es_manager.train.env_groups=80 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[80] trainer.total_training_steps=80 trainer.test_freq=1 &
|
| 981 |
+
|
| 982 |
+
-# trainer.save_freq=50 trainer.default_local_dir=/mnt/local/cache/exp_name
|
| 983 |
+
|
| 984 |
+
-# USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 985 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0\" trainer.n_gpus_per_node=1 trainer.experiment_name=sokoban-final enable_response_mask=True trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/sokoban-generalization &
|
| 986 |
+
|
| 987 |
+
-python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES=\"1\" trainer.n_gpus_per_node=1 trainer.experiment_name=bandit-final enable_response_mask=True trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/bandit-generalization &
|
| 988 |
+
|
| 989 |
+
-python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES=\"1\" trainer.n_gpus_per_node=1 trainer.experiment_name=frozenlake-final enable_response_mask=True trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/frozenlake-generalization &
|
| 990 |
+
|
| 991 |
+
+# # Extension: Training 7B reasoning model
|
| 992 |
+
+# SOKOBAN_GENERALIZATION_CONFIG="es_manager.val.env_groups=512 es_manager.val.group_size=1 es_manager.val.env_configs.tags=[SimpleSokoban,LargerSokoban,SokobanDifferentGridVocab,FrozenLake] es_manager.val.env_configs.n_groups=[128,128,128,128]"
|
| 993 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1,2,3,4,5,6,7\" trainer.n_gpus_per_node=8 trainer.experiment_name=sokoban-generalization-qwen2.5-3b-instruct-largescale $SOKOBAN_GENERALIZATION_CONFIG model_path=Qwen/Qwen2.5-3B-Instruct es_manager.train.env_groups=8 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[8] micro_batch_size_per_gpu=8 ppo_mini_batch_size=64 actor_rollout_ref.rollout.response_length=1024 actor_rollout_ref.rollout.max_model_len=6400 trainer.test_freq=5 actor_rollout_ref.rollout.max_num_batched_tokens=24000 micro_batch_size_per_gpu=2 actor_rollout_ref.rollout.rollout_filter_ratio=1 &
|
| 994 |
+
|
| 995 |
+
+# python -m ragen.llm_agent.agent_proxy model_path=Qwen/Qwen2.5-3B-Instruct system.CUDA_VISIBLE_DEVICES=\"0,1,2,3,4,5,6,7\" trainer.n_gpus_per_node=8 actor_rollout_ref.rollout.tensor_model_parallel_size=4 actor_rollout_ref.rollout.response_length=2048 actor_rollout_ref.rollout.max_model_len=12800
|
| 996 |
+
|
| 997 |
+
+# # trainer.save_freq=50 trainer.default_local_dir=/mnt/local/cache/exp_name
|
| 998 |
+
|
| 999 |
+
-# USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1000 |
+
-# USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1001 |
+
-# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0\" trainer.n_gpus_per_node=1 trainer.experiment_name=sokoban-ppo $USE_PPO $USE_BASE ppo_mini_batch_size=64 enable_response_mask=True &
|
| 1002 |
+
+# # USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1003 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0\" trainer.n_gpus_per_node=1 trainer.experiment_name=sokoban-final enable_response_mask=True trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/sokoban-generalization &
|
| 1004 |
+
|
| 1005 |
+
+# python train.py --config-name _1_bandit system.CUDA_VISIBLE_DEVICES=\"1\" trainer.n_gpus_per_node=1 trainer.experiment_name=bandit-final enable_response_mask=True trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/bandit-generalization &
|
| 1006 |
+
|
| 1007 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-s-grpo algorithm.adv_estimator=grpo agent_proxy.reward_normalization.method=mean_std &
|
| 1008 |
+
+# python train.py --config-name _3_frozen_lake system.CUDA_VISIBLE_DEVICES=\"1\" trainer.n_gpus_per_node=1 trainer.experiment_name=frozenlake-final enable_response_mask=True trainer.total_training_steps=500 trainer.save_freq=50 trainer.default_local_dir=/mnt/local/ragen_checkpoints/frozenlake-generalization &
|
| 1009 |
+
|
| 1010 |
+
-# enable_response_mask: False
|
| 1011 |
+
-# grpo_advantage_length_weight: True
|
| 1012 |
+
|
| 1013 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-s-grpo-1-5b algorithm.adv_estimator=grpo agent_proxy.reward_normalization.method=mean_std agent_proxy.max_actions_per_turn=5 custom_envs.SimpleSokoban.max_actions_per_traj=25 enable_response_mask=True grpo_advantage_length_weight=False model_path=Qwen/Qwen2.5-1.5B-Instruct &
|
| 1014 |
+
|
| 1015 |
+
|
| 1016 |
+
-# extension: 7B with lora. Currently NOT recommended to use lora: within current version of vllm, this could result in rollouts slower than non-lora by 100%
|
| 1017 |
+
-python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1,2,3\" trainer.n_gpus_per_node=4 model_path=Qwen/Qwen2.5-7B-Instruct trainer.experiment_name=sokoban_7b_instruct_lora_newversion lora.rank=16
|
| 1018 |
+
+# # USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1019 |
+
+# # USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1020 |
+
+# # python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0\" trainer.n_gpus_per_node=1 trainer.experiment_name=sokoban-ppo $USE_PPO $USE_BASE ppo_mini_batch_size=64 enable_response_mask=True &
|
| 1021 |
+
|
| 1022 |
+
-# extension: bi-level gae
|
| 1023 |
+
-python train.py trainer.experiment_name=sokoban-bi-level-gae-final \
|
| 1024 |
+
- system.CUDA_VISIBLE_DEVICES=\"0,1,2,3\" trainer.n_gpus_per_node=4 actor_rollout_ref.rollout.tensor_model_parallel_size=2 \
|
| 1025 |
+
- model_path=Qwen/Qwen2.5-0.5B-Instruct \
|
| 1026 |
+
- algorithm.bi_level_gae=True algorithm.high_level_gamma=0.95 \
|
| 1027 |
+
- agent_proxy.use_turn_scores=True \
|
| 1028 |
+
- actor_rollout_ref.rollout.tp_size_check=False
|
| 1029 |
+
|
| 1030 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-s-grpo algorithm.adv_estimator=grpo agent_proxy.reward_normalization.method=mean_std &
|
| 1031 |
+
|
| 1032 |
+
-# extension: webshop
|
| 1033 |
+
-USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1034 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 \
|
| 1035 |
+
- trainer.experiment_name=webshop-3b-ppo-s $USE_PPO \
|
| 1036 |
+
- trainer.nnodes=1 &
|
| 1037 |
+
+# # enable_response_mask: False
|
| 1038 |
+
+# # grpo_advantage_length_weight: True
|
| 1039 |
+
|
| 1040 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 trainer.experiment_name=sokoban-s-grpo-1-5b algorithm.adv_estimator=grpo agent_proxy.reward_normalization.method=mean_std agent_proxy.max_actions_per_turn=5 custom_envs.SimpleSokoban.max_actions_per_traj=25 enable_response_mask=True grpo_advantage_length_weight=False model_path=Qwen/Qwen2.5-1.5B-Instruct &
|
| 1041 |
+
|
| 1042 |
+
-USE_GRPO="algorithm.adv_estimator=grpo" # by default.
|
| 1043 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 \
|
| 1044 |
+
- trainer.experiment_name=webshop-3b-grpo-s $USE_GRPO \
|
| 1045 |
+
- trainer.nnodes=1 &
|
| 1046 |
+
|
| 1047 |
+
-# StarPO ppo
|
| 1048 |
+
-USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1049 |
+
-USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1050 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"4,5\" trainer.n_gpus_per_node=2 \
|
| 1051 |
+
- trainer.experiment_name=webshop-3b-ppo $USE_PPO $USE_BASE \
|
| 1052 |
+
- es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1053 |
+
- trainer.nnodes=1 &
|
| 1054 |
+
+# # extension: 7B with lora. Currently NOT recommended to use lora: within current version of vllm, this could result in rollouts slower than non-lora by 100%
|
| 1055 |
+
+# python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1,2,3\" trainer.n_gpus_per_node=4 model_path=Qwen/Qwen2.5-7B-Instruct trainer.experiment_name=sokoban_7b_instruct_lora_newversion lora.rank=16
|
| 1056 |
+
|
| 1057 |
+
-# StarPO grpo
|
| 1058 |
+
-USE_GRPO="algorithm.adv_estimator=grpo"
|
| 1059 |
+
-USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1060 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"6,7\" trainer.n_gpus_per_node=2 \
|
| 1061 |
+
- trainer.experiment_name=webshop-3b-grpo $USE_GRPO $USE_BASE \
|
| 1062 |
+
- es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1063 |
+
- trainer.nnodes=1 &
|
| 1064 |
+
+# # extension: bi-level gae
|
| 1065 |
+
+# python train.py trainer.experiment_name=sokoban-bi-level-gae-final \
|
| 1066 |
+
+# system.CUDA_VISIBLE_DEVICES=\"0,1,2,3\" trainer.n_gpus_per_node=4 actor_rollout_ref.rollout.tensor_model_parallel_size=2 \
|
| 1067 |
+
+# model_path=Qwen/Qwen2.5-0.5B-Instruct \
|
| 1068 |
+
+# algorithm.bi_level_gae=True algorithm.high_level_gamma=0.95 \
|
| 1069 |
+
+# agent_proxy.use_turn_scores=True \
|
| 1070 |
+
+# actor_rollout_ref.rollout.tp_size_check=False
|
| 1071 |
+
|
| 1072 |
+
|
| 1073 |
+
-# normal:sokoban
|
| 1074 |
+
-# extension: sokoban
|
| 1075 |
+
-USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1076 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 \
|
| 1077 |
+
- trainer.experiment_name=sokoban-3b-ppo-s $USE_PPO \
|
| 1078 |
+
- trainer.nnodes=1 &
|
| 1079 |
+
+# # extension: webshop
|
| 1080 |
+
+# USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1081 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 \
|
| 1082 |
+
+# trainer.experiment_name=webshop-3b-ppo-s $USE_PPO \
|
| 1083 |
+
+# trainer.nnodes=1 &
|
| 1084 |
+
|
| 1085 |
+
|
| 1086 |
+
-USE_GRPO="algorithm.adv_estimator=grpo" # by default.
|
| 1087 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 \
|
| 1088 |
+
- trainer.experiment_name=sokoban-3b-grpo-s $USE_GRPO \
|
| 1089 |
+
- trainer.nnodes=1 &
|
| 1090 |
+
+# USE_GRPO="algorithm.adv_estimator=grpo" # by default.
|
| 1091 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 \
|
| 1092 |
+
+# trainer.experiment_name=webshop-3b-grpo-s $USE_GRPO \
|
| 1093 |
+
+# trainer.nnodes=1 &
|
| 1094 |
+
|
| 1095 |
+
-# StarPO ppo
|
| 1096 |
+
-USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1097 |
+
-USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1098 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5\" trainer.n_gpus_per_node=2 \
|
| 1099 |
+
- trainer.experiment_name=sokoban-3b-ppo $USE_PPO $USE_BASE \
|
| 1100 |
+
- es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1101 |
+
- trainer.nnodes=1 &
|
| 1102 |
+
+# # StarPO ppo
|
| 1103 |
+
+# USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1104 |
+
+# USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1105 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"4,5\" trainer.n_gpus_per_node=2 \
|
| 1106 |
+
+# trainer.experiment_name=webshop-3b-ppo $USE_PPO $USE_BASE \
|
| 1107 |
+
+# es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1108 |
+
+# trainer.nnodes=1 &
|
| 1109 |
+
|
| 1110 |
+
-# StarPO grpo
|
| 1111 |
+
-USE_GRPO="algorithm.adv_estimator=grpo"
|
| 1112 |
+
-USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1113 |
+
-MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"6,7\" trainer.n_gpus_per_node=2 \
|
| 1114 |
+
- trainer.experiment_name=sokoban-3b-grpo $USE_GRPO $USE_BASE \
|
| 1115 |
+
- es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1116 |
+
- trainer.nnodes=1 &
|
| 1117 |
+
+# # StarPO grpo
|
| 1118 |
+
+# USE_GRPO="algorithm.adv_estimator=grpo"
|
| 1119 |
+
+# USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1120 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _6_webshop system.CUDA_VISIBLE_DEVICES=\"6,7\" trainer.n_gpus_per_node=2 \
|
| 1121 |
+
+# trainer.experiment_name=webshop-3b-grpo $USE_GRPO $USE_BASE \
|
| 1122 |
+
+# es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1123 |
+
+# trainer.nnodes=1 &
|
| 1124 |
+
+
|
| 1125 |
+
+
|
| 1126 |
+
+# # normal:sokoban
|
| 1127 |
+
+# # extension: sokoban
|
| 1128 |
+
+# USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1129 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2 \
|
| 1130 |
+
+# trainer.experiment_name=sokoban-3b-ppo-s $USE_PPO \
|
| 1131 |
+
+# trainer.nnodes=1 &
|
| 1132 |
+
+
|
| 1133 |
+
+
|
| 1134 |
+
+# USE_GRPO="algorithm.adv_estimator=grpo" # by default.
|
| 1135 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"2,3\" trainer.n_gpus_per_node=2 \
|
| 1136 |
+
+# trainer.experiment_name=sokoban-3b-grpo-s $USE_GRPO \
|
| 1137 |
+
+# trainer.nnodes=1 &
|
| 1138 |
+
+
|
| 1139 |
+
+# # StarPO ppo
|
| 1140 |
+
+# USE_PPO="algorithm.adv_estimator=gae" # by default.
|
| 1141 |
+
+# USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1142 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"4,5\" trainer.n_gpus_per_node=2 \
|
| 1143 |
+
+# trainer.experiment_name=sokoban-3b-ppo $USE_PPO $USE_BASE \
|
| 1144 |
+
+# es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1145 |
+
+# trainer.nnodes=1 &
|
| 1146 |
+
+
|
| 1147 |
+
+# # StarPO grpo
|
| 1148 |
+
+# USE_GRPO="algorithm.adv_estimator=grpo"
|
| 1149 |
+
+# USE_BASE="algorithm.kl_ctrl.kl_coef=0.001 actor_rollout_ref.actor.kl_loss_coef=0.001 actor_rollout_ref.actor.clip_ratio_high=0.2 actor_rollout_ref.rollout.rollout_filter_ratio=1"
|
| 1150 |
+
+# MKL_SERVICE_FORCE_INTEL=1 python train.py --config-name _2_sokoban system.CUDA_VISIBLE_DEVICES=\"6,7\" trainer.n_gpus_per_node=2 \
|
| 1151 |
+
+# trainer.experiment_name=sokoban-3b-grpo $USE_GRPO $USE_BASE \
|
| 1152 |
+
+# es_manager.train.env_groups=2 es_manager.train.group_size=16 es_manager.train.env_configs.n_groups=[2] \
|
| 1153 |
+
+# trainer.nnodes=1 &
|
| 1154 |
+
|
| 1155 |
+
|
| 1156 |
+
|
| 1157 |
+
-python train.py \
|
| 1158 |
+
- trainer.experiment_name=3b-full-ppo-test system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2
|
| 1159 |
+
|
| 1160 |
+
+# python train.py \
|
| 1161 |
+
+# trainer.experiment_name=3b-full-ppo-test system.CUDA_VISIBLE_DEVICES=\"0,1\" trainer.n_gpus_per_node=2
|
| 1162 |
+
|
wandb/run-20251218_182331-3lp68bhy/run-3lp68bhy.wandb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8298992b65458274a98a1f5fd8019c2e90661289f1b04b0f7d0958cb62db803c
|
| 3 |
+
size 5109422
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_329_35be3dd7581afb806652.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_339_3284a6a2ba2c86db25d3.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_349_a0ebf004c63b7af029fe.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_359_40c52b47a2437cefc63e.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_369_1ac501ff8b5ca739838d.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_379_28b9167adf77159b3e23.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_389_34c38c65dc4978b0fe92.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_399_70a6dd783b7953a5818c.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_39_0165e675fd3080fd83f5.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_409_2f88e50434086ade1785.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_419_e698f521c532c249dfc5.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_429_f582d054589b8ae399e9.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_439_5f0176b4cc9e00954da0.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_449_55137c0a6ac1bd712d85.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_459_46f16eb1a2f587300c11.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_469_1cdab8a3b54382250779.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_479_083ece7475fbcb4d889a.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_489_d8e850be4f9dfae97a27.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_499_8e8ac69feb6687d6847f.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_49_a7f8b4cbb854ddcb13b7.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_509_cc602d87b665a257c47e.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_519_8bcbe1bb0487ac942459.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_529_ce4fa61b6f9b32677f2b.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_539_e8364809f856fb3dd084.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_549_ec1a19dc4a078c4065ec.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_559_36b51501d3b689934482.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wandb/run-20251219_034903-ph1tew1p/files/media/table/val/generations_569_04659bdcf8715115bd27.table.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|