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

Problem with Python 3.5 #1

Open
haje01 opened this issue Jun 4, 2019 · 1 comment
Open

Problem with Python 3.5 #1

haje01 opened this issue Jun 4, 2019 · 1 comment

Comments

@haje01
Copy link

haje01 commented Jun 4, 2019

I'm using Amazon SageMaker & PyTorch.
I have following error with SageMaker's PyTorch Estimator:

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/lstmauto.py", line 15, in <module>
from pytorch_lamb import Lamb
File "/usr/local/lib/python3.5/dist-packages/pytorch_lamb/__init__.py", line 1, in <module>
from .lamb import Lamb, log_lamb_rs
File "/usr/local/lib/python3.5/dist-packages/pytorch_lamb/lamb.py", line 21
event_writer.add_histogram(f'lamb/{k}', torch.tensor(v), token_count)

In my opinion, it is caused by f-string syntax which requires Python 3.6 or above, but SageMaker's PyTorch Estimator only supports Python 3.5

It would be great if I could use Lamb in Python 3.5
Thank you.

@haje01 haje01 changed the title Problem with Amazon SageMaker & PyTorch Problem with Python 3.5 Jun 4, 2019
@yaroslavvb
Copy link
Contributor

All of Amazon's DLAMI images support Python 3.6, I wonder what's the deal with SageMaker being stuck on 3.5
f-string are so nice....

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

2 participants