-
Notifications
You must be signed in to change notification settings - Fork 4
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
refactor model trait method signatures #26
refactor model trait method signatures #26
Conversation
} | ||
|
||
#[derive(Clone, Debug, Serialize, Deserialize)] | ||
pub enum ModelType { |
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.
I don't like the idea that model type is inside the models models. Models should just know their version. They shouldn't be aware of any other model, but with this structure they are. Enum of enums would be a better solution.
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.
I agree with this. Let's merge this PR and address this issue in a future PR.
It would be nice if you split PRs like these. The review is getting messy when unrelated things are combined into a single PR. |
This longer PR addresses the following:
ModelTrait
methods into something that seems more compatible and less verbose.StableDiffusion
model, to decouple loading the unet, vae and text embedding models from running inference.ModelService
general enough to support multiple thread models, without being stucked with a single model (enforced previously by theM: ModelTrait
associated type).