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

TODO: How to pass the directory of a weight file to an operator #314

Closed
Chiiizzzy opened this issue Dec 10, 2021 · 2 comments
Closed

TODO: How to pass the directory of a weight file to an operator #314

Chiiizzzy opened this issue Dec 10, 2021 · 2 comments

Comments

@Chiiizzzy
Copy link
Contributor

Say we have an operator which takes the path of a model weight file as the init arg like following:
截屏2021-12-10 下午5 16 22
If the user provides the weight file in the operator repo, which in this case is clmr_magnatagatune&towhee$main/checkpoints/clmr_checkpoint_10000.pt
How do we deal with the init arg in pipeline yaml file?
We cannot use abs path since the different users have different user directory, we cannot user relative path since we don't know the under which directory will the users run the pipeline.

@Chiiizzzy
Copy link
Contributor Author

Chiiizzzy commented Dec 10, 2021

Issue brought up by @jaelgu and @Chiiizzzy
@fzliu @junjiejiangjjj

@junjiejiangjjj
Copy link
Contributor

image
We could do it like this, so in the pipeline's YAML file, the init arg model_name: a or model_name: b

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