aws / aws/amazon-sagemaker-examples
RL bin packing example failed to run
- Dominant language
- Jupyter Notebook
- Stars
- 11k
- Forks
- 7k
- Avg merge
- 8h 29m
- Merged PRs (30d)
- 8
Description
Problem notebook:
```
reinforcement_learning/rl_resource_allocation_ray_customEnv/rl_bin_packing_ray_custom.ipynb
```
Problem cell:
```
train_entry_point = "train_bin_packing.py"
train_job_max_duration_in_seconds = 60 * 10
estimator = RLEstimator(entry_point=train_entry_point,
source_dir="src",
dependencies=["common/sagemaker_rl"],
toolkit=RLToolkit.RAY,
toolkit_version='0.6.5',
framework=RLFramework.TENSORFLOW,
role=role,
train_instance_type=instance_type,
train_instance_count=1,
output_path=s3_output_path,
base_job_name=job_name_prefix,
metric_definitions=metric_definitions,
train_max_run=train_job_max_duration_in_seconds,
hyperparameters={}
)
estimator.fit(wait=local_mode)
```
Error:
```
algo-1-mjru0_1 | Invoking script with the following command:
algo-1-mjru0_1 |
algo-1-mjru0_1 | /usr/bin/python train_bin_packing.py
algo-1-mjru0_1 |
algo-1-mjru0_1 |
algo-1-mjru0_1 | Traceback (most recent call last):
algo-1-mjru0_1 | File "train_bin_packing.py", line 4, in
algo-1-mjru0_1 | from sagemaker_rl.ray_launcher import SageMakerRayLauncher
algo-1-mjru0_1 | File "/opt/ml/code/sagemaker_rl/ray_launcher.py", line 13, in
algo-1-mjru0_1 | from .tf_serving_utils import export_tf_serving, natural_keys, change_permissions_recursive
algo-1-mjru0_1 | File "/opt/ml/code/sagemaker_rl/tf_serving_utils.py", line 4, in
algo-1-mjru0_1 | from ray.rllib.utils.framework import try_import_tf
algo-1-mjru0_1 | ModuleNotFoundError: No module named 'ray.rllib.utils.framework'
algo-1-mjru0_1 | 2020-11-02 21:22:40,960 sagemaker-containers ERROR ExecuteUserScriptError:
algo-1-mjru0_1 | Command "/usr/bin/python train_bin_packing.py"
```
Note:
Kernel used: mxnet_p36
mode: local
Contributor guide
Assessment
This issue has not been assessed yet.