Skip to content

Pytorch.fit() not working #2663

@LightToYang

Description

@LightToYang

Describe the bug

inputs are dirs to s3

from sagemaker.pytorch import PyTorch

estimator = PyTorch(entry_point='mnist.py',
                    role=role,
                    py_version='py3',
                    framework_version='1.8.0',
                    instance_count=2,
                    instance_type='ml.c5.2xlarge',
                    hyperparameters={
                        'epochs': 1,
                        'backend': 'gloo'
                    })
estimator.fit({'train': inputs, 'test': inputs})

dir still

"channel_input_dirs": {
        "test": "/opt/ml/input/data/test",
        "train": "/opt/ml/input/data/train"
    },

but not
s3:// .....

And while directly set dataset dir to inputs s3:// ....., dataset still not found with torchvision.datasets.MNIST

System information
A description of your system. Please provide:

  • sagemaker version: 2.59.3.post0:
  • PyTorch, MNIST tutorial:
  • Python 3 (PyTorch 1.6 Python 3.6 GPU Optimized)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions