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

[RFC] basic model builder infra #156

Merged
merged 6 commits into from
Nov 13, 2023
Merged

[RFC] basic model builder infra #156

merged 6 commits into from
Nov 13, 2023

Conversation

dan-garvey
Copy link
Member

The main motivation here is to be able to programmatically create hf models (for SHARK) using the bare minimum information. And to have a real api instead of importing from examples. I'm not sure if there are any other use cases besides hf. Also sorely lacking in support for anything that doesn't just work with aot.export, multiple inputs, etc. Ideally this will also be the point at which we do any torch ir caching cloudside.

@dan-garvey dan-garvey changed the title basic model builder infra [RFC] basic model builder infra Nov 3, 2023
python/models/model_builder.py Outdated Show resolved Hide resolved
python/models/model_builder.py Outdated Show resolved Hide resolved
@dan-garvey dan-garvey force-pushed the model_builder branch 2 times, most recently from c506747 to aefc3c5 Compare November 10, 2023 18:46
The main motivation here is to be able to programatically create
hf models using the bare minimum information. not sure if there are any
other use cases besides hf. Also sorely lacking in support for anything
that doesn't just work with aot.export, multiple inputs, etc. Ideally
this will also be the point at which we do any torch ir caching
cloudside.
added some tests. Need to find a way to manage the equivalent of
torch-mlir heavydeps
The main motivation here is to be able to programatically create
hf models using the bare minimum information. not sure if there are any
other use cases besides hf. Also sorely lacking in support for anything
that doesn't just work with aot.export, multiple inputs, etc. Ideally
this will also be the point at which we do any torch ir caching
cloudside.
added some tests. Need to find a way to manage the equivalent of
torch-mlir heavydeps
@dan-garvey dan-garvey force-pushed the model_builder branch 7 times, most recently from 91282a7 to 0a475d5 Compare November 13, 2023 05:52
@dan-garvey dan-garvey force-pushed the model_builder branch 5 times, most recently from 9e58c24 to 4d8db4c Compare November 13, 2023 07:13
@dan-garvey
Copy link
Member Author

dan-garvey commented Nov 13, 2023

The scope of this kind of ballooned, and I left python packaging out of it for now.

I didnt get to adding a successful test for the TransformerBuilder, and I didnt end up using it. I can remove it from this pr if preferred and add back later if there is a use for it.

@dan-garvey
Copy link
Member Author

Going to keep turbine models tests split, will add test infra in a separate patch

python/turbine_models/model_builder.py Outdated Show resolved Hide resolved
tests/models/hf_builder_tests.py Outdated Show resolved Hide resolved
@dan-garvey dan-garvey force-pushed the model_builder branch 3 times, most recently from 45685d3 to da92128 Compare November 13, 2023 18:50
@dan-garvey dan-garvey merged commit 7586014 into main Nov 13, 2023
1 check passed
@dan-garvey dan-garvey deleted the model_builder branch November 13, 2023 20:23
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

Successfully merging this pull request may close these issues.

3 participants