-
-
Notifications
You must be signed in to change notification settings - Fork 151
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: CLI commands improvements #1486
Comments
and the test and inspect commands are not documented in the CLI |
@GemmaTuron thanks a lot for this issue and the last mile work on this front. From what you have posted above, some things are clearly issues, and some other things require clarification.
(ersilia) ☁ ersilia-project ersilia -v example -n 5 -f input.csv
23:33:53 | DEBUG | No session exists
No model found. Please specify a model or serve a model in the current shell.
|
thanks @DhanshreeA ! I agree with the suggestions, for 13 maybe a discussion about what we do with the lakes is needed once we complete this sprint on model testing and refactoring, coupled with Splunk's next project suggestions. Let's leave as is and revisit it once we have more time. |
@GemmaTuron actually the |
Hi @DhanshreeA Maybe I am missing something but if you have run [?OPT] to me it is not indicating that the -i is required. As a user how do I know I need the input flag but not the output one for example? |
@GemmaTuron okay so I have updated the documentation on GitBook to say, for the
The last line mentions that this a required field to actually run a model. No other option mentions that, I think that's sufficient? |
Describe the bug.
I have tested all the CLI commands listed in here: https://ersilia.gitbook.io/ersilia-book/ersilia-model-hub/developer-docs/command-line-interface. The documentation gives a good high level overview yet small modifications are needed to facilitate user guidance. As a general comment, it is not clear when a flag is required (for example run -i) and when is optional. To facilitate the revision of the CLI, I noted down everything I have found, both larger or smaller issues, reporting everything for completion without any prioritisation/level of criticality:
catalog -f
only works if a .csv file is asked. Otherwise it creates an empty file, for example a .txt. If only .csv is allowed, this should be specified in the documentation. From what I see here the only options are -csv or -tsv.--more
flag shows some Model Source empty, but I think this is more to do with the models than the command. Models are eos7jio and eos7w6n--hub
flag is reading from but we should have a filter to avoid showing internal models like eos0t04 (test) or eos30d7 (another test?)--card
command documentation should specify--card [MODEL]
or sth as I could also docatalog model_id --card
maybe if I am not familiar with Ersilia's infrastructureexample
command adds [?MODEL] as an option? Adding a Model is not optional right? Is the ? a typo?example -f
specify which kind of files can be saved. In this case it did work for csv and txtexample --predefined
returns randomly fetched molecules if the example file is not available, without notifying the user. A notification at least should be added, and/or explanation of this behavior in the documentationfetch from_bentoml
: this sentence For that to happen, the model source needs to follow a specific structure. is very vague. Explain better or link to somewhere showing this structure. Same for-from_fastapi
run
command: why is [?OPT] indicated with ? the run command without additional flags does not work.run --batch
: specify in the docs what is the default batch size. Related to the above, it is not clear if --batch is required. Only -i is needed, so specify that in the docs.run --table
:Error: No such option: --table Did you mean --as-table?
This popped up when trying to use the command, please revise. This command:ersilia run -i example.csv --as-table
did not give error but did not print anything (model eos4u6p)serve --lake
: I might be confused but we are not saving predictions anywhere now? even in a local lake?Describe the steps to reproduce the behavior
No response
Operating environment
Ubuntu 24.04 LTS
The text was updated successfully, but these errors were encountered: