1. 10 Oct, 2022 1 commit
    • 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
  2. 03 Oct, 2022 1 commit
  3. 23 Sep, 2022 1 commit
  4. 08 Sep, 2022 1 commit
  5. 21 Aug, 2022 1 commit
  6. 19 Aug, 2022 2 commits
    • Suraj Patil's avatar
      fix safety check (#217) · 89e95210
      Suraj Patil authored
      89e95210
    • Suraj Patil's avatar
      Add safety module (#213) · 65ea7d6b
      Suraj Patil authored
      * add SafetyChecker
      
      * better name, fix checker
      
      * add checker in main init
      
      * remove from main init
      
      * update logic to detect pipeline module
      
      * style
      
      * handle all safety logic in safety checker
      
      * draw text
      
      * can't draw
      
      * small fixes
      
      * treat special care as nsfw
      
      * remove commented lines
      
      * update safety checker
      65ea7d6b