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

Bug? / Wrong error message? "turnkey build bert.py" #69

Closed
andife opened this issue Dec 10, 2023 · 3 comments
Closed

Bug? / Wrong error message? "turnkey build bert.py" #69

andife opened this issue Dec 10, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@andife
Copy link
Member

andife commented Dec 10, 2023

Hi,
not sure if thats a bug?

Line 70 of the readme shows "turnkey build bert.py --sequence optimize-fp16"

I get the following:


(lightning_py310_231210) user1@hitssv565:/local_data/user1/models$ turnkey build rotational_power.py --sequence optimize-fp16

Error: Unexpected positional argument `turnkey build`. The first positional argument must either be an input file with the .py or .onnx file extension or one of the following commands: ['benchmark', 'cache', 'models', 'version'].

▄██████████████▄▐█▄▄▄▄█▌
██████▌▄▌▄▐▐▌███▌▀▀██▀▀
████▄█▌▄▌▄▐▐▌▀███▄▄█▌
▄▄▄▄▄██████████████


Traceback (most recent call last):
  File "/local_data/user1/miniforge3/envs/lightning_py310_231210/bin/turnkey", line 8, in <module>
    sys.exit(turnkeycli())
  File "/local_data/user1/miniforge3/envs/lightning_py310_231210/lib/python3.10/site-packages/turnkeyml/cli/cli.py", line 493, in main
    raise exceptions.ArgError(error_msg)
turnkeyml.common.exceptions.ArgError: Unexpected positional argument `turnkey build`. The first positional argument must either be an input file with the .py or .onnx file extension or one of the following commands: ['benchmark', 'cache', 'models', 'version'].

rotational_power.py contains a pytorch_lightning module? Does Turnkeyml work for lightning?

@jeremyfowers
Copy link
Collaborator

Apologies @andife the readme references a future command syntax that we have not yet included.

Instead of "turnkey build FILE" please try "turnkey benchmark FILE --build-only".

I will fix the documentation issue you have pointed out. Thanks for filing an issue.

@jeremyfowers
Copy link
Collaborator

@andife the readme is fixed.

With regards to PyTorch lightning: I’ll admit I wasn’t familiar with lightning, but fortunately I’m at neurips and was able to stop by their booth.

The short answer is that no, Lightning modules are not supported.

But it seems like it would be pretty straightforward to add support. If that’s something you would like, can you tell me a bit about your use case? I’d like to understand better.

@jeremyfowers jeremyfowers added the bug Something isn't working label Dec 11, 2023
@jeremyfowers jeremyfowers self-assigned this Dec 15, 2023
@jeremyfowers
Copy link
Collaborator

jeremyfowers commented Dec 15, 2023

There are really 3 problems here:

  1. [FIXED] Documentation bug in the main README
  2. The error message from that specific command is too confusing (user asked if it was an invalid input file, when in fact it was an invalid command): Confusing error message on incorrect command #72
  3. PyTorch Lightning modules are not supported: Support for PyTorch Lightning #71

I will close this issue, as the primary bug (documentation) has been fixed. And I will open issues for the other two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants