Skip to content
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

Error while running sagemaker-debugger with custom pytorch container and custom model #476

Open
aditya5558 opened this issue Mar 29, 2021 · 0 comments

Comments

@aditya5558
Copy link

Hi,

I am running into the error below while running sagemaker-debugger with a custom pytorch container and custom model without sagemaker training. I added hooks to my model and loss using the below statements and tried running my training code but I am running into this error:

FileNotFoundError: [Errno 2] No such file or directory: 'smdebug_outputs/collections/000000000/worker_0_collections.json.tmp'

where 'smdebug_outputs' is the output directory given.

I inserted the following snippet in my code for inserting hooks:

import smdebug.pytorch as smd
hook = smd.Hook(out_dir)
hook.register_module(net)

# Inside training loop
loss = net(inputs)
hook.record_tensor_value(tensor_name="loss", tensor_value=loss)

Is there some other modifications needed to get sagemaker-debugger running on a custom model and container?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant