-
Notifications
You must be signed in to change notification settings - Fork 594
Create the Application
class
#1454
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
Create the Application
class
#1454
Conversation
outlines/macros.py
Outdated
template: Union[Template, Callable] | ||
output_type: Any | ||
|
||
def __post_init__(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add a with_backend
method that allows a user to change how a model is going to be run? And lazily load the model and compile lazily so this does not happen when the Macro
is instantiated, only when it is used?
The idea is to eventually have people only pass a string with the model name.
Supersedes #1364 |
Wondering if we should simply call it |
I prefer |
Let's use |
We had an offline discussion where we decided to pass the model as an argument when calling the application. This makes |
43b2d74
to
ef625f9
Compare
Addresses issue #1346
The class will actually be called
Application
instead ofOutline
, but it will otherwise implement the interface suggested in the linked issue. We additionally remove thefunctions
module.