predictive-maintenance-using-machine-learning: Training job failed
Hi team,
I create CloudFormation Stack from this page: https://aws.amazon.com/solutions/predictive-maintenance-using-machine-learning/
and start to run the notebook and executed the training job, but there is an error accured:
Invoking script with the following command:
/usr/bin/python -m sagemaker_predictive_maintenance_entry_point --batch-size 1 --epochs 500 --log-interval 100 --num-datasets 4 --num-gpus 1 --optimizer adam
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/ml/code/sagemaker_predictive_maintenance_entry_point.py", line 10, in <module>
import gluonnlp
File "/usr/local/lib/python3.5/dist-packages/gluonnlp/__init__.py", line 25, in <module>
from . import data
File "/usr/local/lib/python3.5/dist-packages/gluonnlp/data/__init__.py", line 23, in <module>
from . import (batchify, candidate_sampler, conll, corpora, dataloader,
File "/usr/local/lib/python3.5/dist-packages/gluonnlp/data/question_answering.py", line 31, in <module>
from mxnet.gluon.utils import download, check_sha1, _get_repo_file_url, replace_file
ImportError: cannot import name 'replace_file'
2020-02-27 09:04:17,944 sagemaker-containers ERROR ExecuteUserScriptError:
Command "/usr/bin/python -m sagemaker_predictive_maintenance_entry_point --batch-size 1 --epochs 500 --log-interval 100 --num-datasets 4 --num-gpus 1 --optimizer adam"
2020-02-27 09:04:31 Failed - Training job failed
Could you please help on check this error? Thanks!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 18 (7 by maintainers)
Commits related to this issue
- Update MXNet framework version to 1.6.0. This addresses a training job failure (issue #6). Additionally, freeze GluonNLP version to 0.9.1. — committed to awslabs/predictive-maintenance-using-machine-learning by vishaalkapoor 7 years ago
- Update MXNet framework version to 1.6.0. This addresses a training job failure (issue #6). Additionally, freeze GluonNLP version to 0.9.1. — committed to awslabs/predictive-maintenance-using-machine-learning by vishaalkapoor 7 years ago
Vishal has given great guidance on job failure and it worked for us. here is the link for our problem and the solution also StackOverflow
Note: the AWS Solution will be officially updated early next week. Code is merged into GitHub in the meantime. To use this code, you’ll need to
git clonethis repository into SageMaker, for example via the terminal or using Git integration. Feel free to ping me if you have questions.