aws / aws/aws-step-functions-data-science-sdk-python
timestamp mismatch when using code_location
- 主要言語
- Python
- スター
- 299
- フォーク
- 84
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
HI,
When code_location is used in estimator of TrainingStep(), the uploaded s3 path and sagemaker_submit_directory timestamp do not match(about 400 ms).
This will cause the execution to fail.
In SageMaker training job, timestamp matches even if code_location is used.
S3 uploaded path
s3://my-bucket/model/sagemaker-xgboost-2020-06-10-06-29-37-910/source/sourcedir.tar.gz
sagemaker_submit_directory
"s3://my-bucket/model/sagemaker-xgboost-2020-06-10-06-29-38-323/source/sourcedir.tar.gz"
```
# Open Source distributed script mode
from sagemaker.session import s3_input, Session
from sagemaker.xgboost.estimator import XGBoost
boto_session = boto3.Session(region_name=region)
session = Session(boto_session=boto_session)
output_path = 's3://{}/{}'.format(bucket_name, 'model')
xgb_script_mode_estimator = XGBoost(
entry_point='xgboost.py',
source_dir='source',
framework_version='0.90-2', # Note: framework_version is mandatory
hyperparameters=hyperparams,
role=role,
train_instance_count=1,
train_instance_type='ml.m5.2xlarge',
code_location=output_path, # ← Cause a mismatch
output_path=output_path
)
```
コントリビューションガイド
調査の方向性
再現例で示されている TrainingStep estimator と code_location の処理から始めます。提供された XGBoost の例を実行し、S3 にアップロードされたパスと sagemaker_submit_directory のタイムスタンプを比較します。両方のパスが同じタイムスタンプを使用し、トレーニングの実行が成功すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, python
- 領域
- cloud, machine-learning
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100