-
Notifications
You must be signed in to change notification settings - Fork 931
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Quantized version of flux. * More generic sampling. * Hook the quantized model. * Use the newly minted gguf file. * Fix for the quantized model. * Default to avoid the faster cuda kernels.
- Loading branch information
1 parent
d01207d
commit 10d4718
Showing
6 changed files
with
555 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
use candle::{Result, Tensor}; | ||
|
||
pub trait WithForward { | ||
#[allow(clippy::too_many_arguments)] | ||
fn forward( | ||
&self, | ||
img: &Tensor, | ||
img_ids: &Tensor, | ||
txt: &Tensor, | ||
txt_ids: &Tensor, | ||
timesteps: &Tensor, | ||
y: &Tensor, | ||
guidance: Option<&Tensor>, | ||
) -> Result<Tensor>; | ||
} | ||
|
||
pub mod autoencoder; | ||
pub mod model; | ||
pub mod quantized_model; | ||
pub mod sampling; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.