1. 21 Nov, 2023 1 commit
  2. 20 Nov, 2023 1 commit
  3. 02 Oct, 2023 1 commit
  4. 29 Sep, 2023 1 commit
  5. 27 Sep, 2023 1 commit
  6. 25 Sep, 2023 1 commit
  7. 22 Sep, 2023 1 commit
    • Pedro Cuenca's avatar
      SDXL flax (#4254) · 3651b14c
      Pedro Cuenca authored
      
      
      * support transformer_layers_per block in flax UNet
      
      * add support for text_time additional embeddings to Flax UNet
      
      * rename attention layers for VAE
      
      * add shape asserts when renaming attention layers
      
      * transpose VAE attention layers
      
      * add pipeline flax SDXL code [WIP]
      
      * continue add pipeline flax SDXL code [WIP]
      
      * cleanup
      
      * Working on JIT support
      
      Fixed prompt embedding shapes so they work in parallel mode. Assuming we
      always have both text encoders for now, for simplicity.
      
      * Fixing embeddings (untested)
      
      * Remove spurious line
      
      * Shard guidance_scale when jitting.
      
      * Decode images
      
      * Fix sharding
      
      * style
      
      * Refiner UNet can be loaded.
      
      * Refiner / img2img pipeline
      
      * Allow latent outputs from base and latent inputs in refiner
      
      This makes it possible to chain base + refiner without having to use the
      vae decoder in the base model, the vae encoder in the refiner, skipping
      conversions to/from PIL, and avoiding TPU <-> CPU memory copies.
      
      * Adapt to FlaxCLIPTextModelOutput
      
      * Update Flax XL pipeline to FlaxCLIPTextModelOutput
      
      * make fix-copies
      
      * make style
      
      * add euler scheduler
      
      * Fix import
      
      * Fix copies, comment unused code.
      
      * Fix SDXL Flax imports
      
      * Fix euler discrete begin
      
      * improve init import
      
      * finish
      
      * put discrete euler in init
      
      * fix flax euler
      
      * Fix more
      
      * make style
      
      * correct init
      
      * correct init
      
      * Temporarily remove FlaxStableDiffusionXLImg2ImgPipeline
      
      * correct pipelines
      
      * finish
      
      ---------
      Co-authored-by: default avatarMartin Müller <martin.muller.me@gmail.com>
      Co-authored-by: default avatarpatil-suraj <surajp815@gmail.com>
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      3651b14c
  8. 15 Aug, 2023 1 commit
  9. 21 Jul, 2023 1 commit
    • Steven Liu's avatar
      [docs] Clean up pipeline apis (#3905) · a69754bb
      Steven Liu authored
      * start with stable diffusion
      
      * fix
      
      * finish stable diffusion pipelines
      
      * fix path to pipeline output
      
      * fix flax paths
      
      * fix copies
      
      * add up to score sde ve
      
      * finish first pass of pipelines
      
      * fix copies
      
      * second review
      
      * align doc titles
      
      * more review fixes
      
      * final review
      a69754bb
  10. 21 Jun, 2023 1 commit
  11. 12 Apr, 2023 1 commit
    • Pedro Cuenca's avatar
      Flax memory efficient attention (#2889) · dc277501
      Pedro Cuenca authored
      
      
      * add use_memory_efficient params placeholder
      
      * test
      
      * add memory efficient attention jax
      
      * add memory efficient attention jax
      
      * newline
      
      * forgot dot
      
      * Rename use_memory_efficient
      
      * Keep dtype last.
      
      * Actually use key_chunk_size
      
      * Rename symbol
      
      * Apply style
      
      * Rename use_memory_efficient
      
      * Keep dtype last
      
      * Pass `use_memory_efficient_attention` in `from_pretrained`
      
      * Move JAX memory efficient attention to attention_flax.
      
      * Simple test.
      
      * style
      
      ---------
      Co-authored-by: default avatarmuhammad_hanif <muhammad_hanif@sofcograha.co.id>
      Co-authored-by: default avatarMuhHanif <48muhhanif@gmail.com>
      dc277501
  12. 27 Mar, 2023 1 commit
  13. 23 Mar, 2023 1 commit
  14. 01 Mar, 2023 1 commit
  15. 07 Feb, 2023 1 commit
  16. 30 Dec, 2022 1 commit
  17. 29 Dec, 2022 1 commit
    • Simon Kirsten's avatar
      Flax: Fix img2img and align with other pipeline (#1824) · ab0e92fd
      Simon Kirsten authored
      
      
      * Flax: Add components function
      
      * Flax: Fix img2img and align with other pipeline
      
      * Flax: Fix PRNGKey type
      
      * Refactor strength to start_timestep
      
      * Fix preprocess images
      
      * Fix processed_images dimen
      
      * latents.shape -> latents_shape
      
      * Fix typo
      
      * Remove "static" comment
      
      * Remove unnecessary optional types in _generate
      
      * Apply doc-builder code style.
      Co-authored-by: default avatarPedro Cuenca <pedro@huggingface.co>
      ab0e92fd
  18. 14 Dec, 2022 1 commit
  19. 07 Dec, 2022 1 commit
  20. 28 Nov, 2022 1 commit
  21. 22 Nov, 2022 1 commit
  22. 15 Nov, 2022 1 commit
  23. 10 Nov, 2022 1 commit
  24. 09 Nov, 2022 1 commit
  25. 03 Nov, 2022 1 commit
  26. 02 Nov, 2022 1 commit
  27. 31 Oct, 2022 2 commits
  28. 27 Oct, 2022 1 commit
  29. 24 Oct, 2022 1 commit
  30. 13 Oct, 2022 2 commits
  31. 05 Oct, 2022 1 commit
  32. 03 Oct, 2022 1 commit
    • Pedro Cuenca's avatar
      Fix import with Flax but without PyTorch (#688) · 688031c5
      Pedro Cuenca authored
      * Don't use `load_state_dict` if torch is not installed.
      
      * Define `SchedulerOutput` to use torch or flax arrays.
      
      * Don't import LMSDiscreteScheduler without torch.
      
      * Create distinct FlaxSchedulerOutput.
      
      * Additional changes required for FlaxSchedulerMixin
      
      * Do not import torch pipelines in Flax.
      
      * Revert "Define `SchedulerOutput` to use torch or flax arrays."
      
      This reverts commit f653140134b74d9ffec46d970eb46925fe3a409d.
      
      * Prefix Flax scheduler outputs for consistency.
      
      * make style
      
      * FlaxSchedulerOutput is now a dataclass.
      
      * Don't use f-string without placeholders.
      
      * Add blank line.
      
      * Style (docstrings)
      688031c5
  33. 24 Sep, 2022 1 commit
  34. 21 Sep, 2022 2 commits
    • Pedro Cuenca's avatar
      Return Flax scheduler state (#601) · a9fdb3de
      Pedro Cuenca authored
      * Optionally return state in from_config.
      
      Useful for Flax schedulers.
      
      * has_state is now a property, make check more strict.
      
      I don't check the class is `SchedulerMixin` to prevent circular
      dependencies. It should be enough that the class name starts with "Flax"
      the object declares it "has_state" and the "create_state" exists too.
      
      * Use state in pipeline from_pretrained.
      
      * Make style
      a9fdb3de
    • Pedro Cuenca's avatar
      Fix params replication when using the dummy checker (#602) · fb03aad8
      Pedro Cuenca authored
      Fix params replication when sing the dummy checker.
      fb03aad8
  35. 20 Sep, 2022 2 commits
  36. 16 Sep, 2022 1 commit