1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00
Files
diffusers/tests
Pedro Cuenca 81125d8499 Make dynamo wrapped modules work with save_pretrained (#2726)
* Workaround for saving dynamo-wrapped models.

* Accept suggestion from code review

Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>

* Apply workaround when overriding pipeline components.

* Ensure the correct config.json is saved to disk.

Instead of the dynamo class.

* Save correct module (not compiled one)

* Add test

* style

* fix docstrings

* Go back to using string comparisons.

PyTorch CPU does not have _dynamo.

* Simple test for save_pretrained of compiled models.

* Helper function to test whether module is compiled.

---------

Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
2023-03-28 09:03:21 +02:00
..
2023-03-01 10:31:00 +01:00
2023-03-01 10:31:00 +01:00
2023-03-23 19:00:21 +01:00
2023-03-01 10:31:00 +01:00
2023-03-18 18:38:04 +01:00
2023-03-01 10:31:00 +01:00
2023-03-01 10:31:00 +01:00
2023-03-01 10:31:00 +01:00