-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RLlib] Algorithm/Policy checkpoint overhaul and Policy Model export (in native formats). #28166
Changes from 96 commits
d026a99
50b6d69
74cc999
f6de7cd
8a24cd8
de46f48
db5324d
e5611c1
01a9e47
eed6218
69352dc
88ec1d6
f8c796e
6ad1e80
191550d
52235db
5e44e2e
fb8e89b
49429bd
f5a5430
41e9dd8
5261c53
94399e1
8ddba8b
799be4b
0117db2
e3bdf70
3071270
82f5b41
81c7d30
c044cae
c898e18
08ba388
5f66ee9
1474621
3d91cd1
04b9e01
b7b3ebb
6209017
113ccf8
6aa6f06
0b54fbf
d3d85d2
c0e2e8d
6fafcf4
70f2bdb
f69ed2a
5ffab1e
f0dfda9
b31114c
8fde067
c8afcf3
2c250d7
f230ffc
80b1829
a01ccb2
447ba02
9a80a90
2c4754c
8070201
51ff6ae
b72a192
bb8e7a0
9ad4aa7
3b1bc8f
60b0e51
45f3792
73fd3d1
cc61975
a3bf614
1ad8e7a
b6de057
27083df
b396923
4c7a85c
4efb544
35a1eb7
11ee0f5
3f375b3
11c8212
2258378
ccca4e5
c66d30b
d52cda3
5f09214
5e03461
151b65d
5a652cf
fd17683
881c128
c099a55
b3adcd2
84e92d0
926808d
bfe1a21
6fd673c
e80459a
116e706
7b724fc
1cfdf81
e27c0d1
2f53966
cef1d2a
30c3dad
9a18fcc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -766,6 +766,13 @@ py_test( | |
data = ["tests/data/cartpole/small.json"], | ||
) | ||
|
||
py_test( | ||
name = "test_algorithm_export_checkpoint", | ||
tags = ["team:rllib", "algorithms_dir", "algorithms_dir_generic"], | ||
size = "medium", | ||
srcs = ["algorithms/tests/test_algorithm_export_checkpoint.py"], | ||
) | ||
|
||
py_test( | ||
name = "test_callbacks", | ||
tags = ["team:rllib", "algorithms_dir", "algorithms_dir_generic"], | ||
|
@@ -1876,6 +1883,13 @@ py_test( | |
srcs = ["policy/tests/test_compute_log_likelihoods.py"] | ||
) | ||
|
||
py_test( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tests the new individual Policy checkpointing and native model saving mechanisms. |
||
name = "policy/tests/test_export_checkpoint_and_model", | ||
tags = ["team:rllib", "policy"], | ||
size = "large", | ||
srcs = ["policy/tests/test_export_checkpoint_and_model.py"] | ||
) | ||
|
||
py_test( | ||
name = "policy/tests/test_multi_agent_batch", | ||
tags = ["team:rllib", "policy"], | ||
|
@@ -1919,6 +1933,14 @@ py_test( | |
# Tag: utils | ||
# -------------------------------------------------------------------- | ||
|
||
# Checkpoint Utils | ||
py_test( | ||
name = "test_checkpoint_utils", | ||
tags = ["team:rllib", "utils"], | ||
size = "small", | ||
srcs = ["utils/tests/test_checkpoint_utils.py"] | ||
) | ||
|
||
py_test( | ||
name = "test_errors", | ||
tags = ["team:rllib", "utils"], | ||
|
@@ -2078,7 +2100,8 @@ py_test( | |
name = "tests/backward_compat/test_backward_compat", | ||
tags = ["team:rllib", "tests_dir", "tests_dir_B"], | ||
size = "medium", | ||
srcs = ["tests/backward_compat/test_backward_compat.py"] | ||
srcs = ["tests/backward_compat/test_backward_compat.py"], | ||
data = glob(["tests/backward_compat/checkpoints/**"]), | ||
) | ||
|
||
py_test( | ||
|
@@ -2168,13 +2191,6 @@ py_test( | |
srcs = ["tests/test_execution.py"] | ||
) | ||
|
||
py_test( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replaced by rllib/policy/tests/test_export_checkpoint_and_model.py |
||
name = "tests/test_export", | ||
tags = ["team:rllib", "tests_dir", "tests_dir_E"], | ||
size = "medium", | ||
srcs = ["tests/test_export.py"] | ||
) | ||
|
||
py_test( | ||
name = "tests/test_filters", | ||
tags = ["team:rllib", "tests_dir", "tests_dir_F"], | ||
|
@@ -2940,6 +2956,16 @@ py_test( | |
tags = ["team:rllib", "exclusive", "examples", "examples_E", "no_main"], | ||
size = "medium", | ||
srcs = ["examples/export/onnx_tf.py"], | ||
args = ["--framework=tf"], | ||
) | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added tf2 example for exporting to ONNX format. |
||
py_test( | ||
name = "examples/export/onnx_tf2", | ||
main = "examples/export/onnx_tf.py", | ||
tags = ["team:rllib", "exclusive", "examples", "examples_E", "no_main"], | ||
size = "medium", | ||
srcs = ["examples/export/onnx_tf.py"], | ||
args = ["--framework=tf2"], | ||
) | ||
|
||
py_test( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests the new Algorithm checkpointing mechanism.