1. 10 Oct, 2022 4 commits
    • Patrick von Platen's avatar
      [Low CPU memory] + device map (#772) · fab17528
      Patrick von Platen authored
      
      
      * add accelerate to load models with smaller memory footprint
      
      * remove low_cpu_mem_usage as it is reduntant
      
      * move accelerate init weights context to modelling utils
      
      * add test to ensure results are the same when loading with accelerate
      
      * add tests to ensure ram usage gets lower when using accelerate
      
      * move accelerate logic to single snippet under modelling utils and remove it from configuration utils
      
      * format code using to pass quality check
      
      * fix imports with isor
      
      * add accelerate to test extra deps
      
      * only import accelerate if device_map is set to auto
      
      * move accelerate availability check to diffusers import utils
      
      * format code
      
      * add device map to pipeline abstraction
      
      * lint it to pass PR quality check
      
      * fix class check to use accelerate when using diffusers ModelMixin subclasses
      
      * use low_cpu_mem_usage in transformers if device_map is not available
      
      * NoModuleLayer
      
      * comment out tests
      
      * up
      
      * uP
      
      * finish
      
      * Update src/diffusers/pipelines/stable_diffusion/safety_checker.py
      
      * finish
      
      * uP
      
      * make style
      Co-authored-by: default avatarPi Esposito <piero.skywalker@gmail.com>
      fab17528
    • Nathan Lambert's avatar
      add sigmoid betas (#777) · feaa7324
      Nathan Lambert authored
      * add sigmoid betas
      
      * convert to torch
      
      * add comment on source
      feaa7324
    • Nathan Lambert's avatar
      Clean up resnet.py file (#780) · a73f8b72
      Nathan Lambert authored
      * clean up resnet.py
      
      * make style and quality
      
      * minor formatting
      a73f8b72
    • lowinli's avatar
      debug an exception (#638) · 5af6eed9
      lowinli authored
      
      
      * debug an exception
      
      if dst_path is not a file, it will raise Exception in the function src_path.samefile:
      FileNotFoundError: [Errno 2] No such file or directory: '/home/lilongwei/notebook/onnx_diffusion/vae_decoder/model.onnx'
      
      * Update src/diffusers/onnx_utils.py
      Co-authored-by: default avatarAnton Lozhkov <aglozhkov@gmail.com>
      5af6eed9
  2. 07 Oct, 2022 12 commits
  3. 06 Oct, 2022 22 commits
  4. 05 Oct, 2022 2 commits