GithubHelp home page GithubHelp logo

snimu / rebasin Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 0.0 11.15 MB

Apply methods described in "Git Re-basin"-paper [1] to arbitrary models --- [1] Ainsworth et al. (https://arxiv.org/abs/2209.04836)

License: MIT License

Python 100.00%
deep-learning git-re-basin git-rebasin pytorch rebasin

rebasin's People

Contributors

pre-commit-ci[bot] avatar snimu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rebasin's Issues

Extremely slow tracing on SDXL (is initialize_parallel_paths a forkbomb?)

Hi,
I'm having a weird situation, where when paired with the diffusers SDXL model, the program makes it ~130 layers deep of initialize_parallel_paths with CPU memory usage climbing to 80G after a few minutes (both models passed into the program were on GPU),
weirdly taking close to no CPU or GPU utilization while running.

Hi! I have questions regarding the visualization feature.

Thanks for the amazing project, I have an inquiry regarding the visualization feature mentioned in the tutorial.
What does this mean? Can you elaborate a little further please?

Thanks!


print(pcd.pinit.model_graph) returns an output like this:

ParallelPaths(
LinearPath( LinearPath(
DefaultModule( DefaultModule(
module.type: Conv2d module.type: Conv2d
input.shape: [(128, 64, 56, 56)] input.shape: [(128, 64, 56, 56)]
output.shape: [(128, 64, 56, 56)] output.shape: [(128, 256, 56, 56)]
weight.in_dim.permutation: None weight.in_dim.permutation: None
weight.out_dim.permutation.shape: 64 weight.out_dim.permutation.shape: 256
) )

OneDimModule(                                OneDimModule(                              
  module.type: BatchNorm2d                     module.type: BatchNorm2d                 
  input.shape: [(128, 64, 56, 56)]             input.shape: [(128, 256, 56, 56)]        
  output.shape: [(128, 64, 56, 56)]            output.shape: [(128, 256, 56, 56)]       
  weight.in_dim.permutation.shape: 64          weight.in_dim.permutation.shape: 256     
  weight.out_dim.permutation.shape: 64         weight.out_dim.permutation.shape: 256    
)                                            )                                          
                                                                                        
DefaultModule(                             )                                            
  module.type: Conv2d                                         |                         
  input.shape: [(128, 64, 56, 56)]                            |                         
  output.shape: [(128, 64, 56, 56)]                           |                         
  weight.in_dim.permutation.shape: 64                         |                         
  weight.out_dim.permutation.shape: 64                        |                         
)                                                             |                         
                                                              |                         
OneDimModule(                                                 |                         
  module.type: BatchNorm2d                                    |                         
  input.shape: [(128, 64, 56, 56)]                            |                         
  output.shape: [(128, 64, 56, 56)]                           |                         
  weight.in_dim.permutation.shape: 64                         |                         
  weight.out_dim.permutation.shape: 64                        |                         
)                                                             |                         
                                                              |                         
DefaultModule(                                                |                         
  module.type: Conv2d                                         |                         
  input.shape: [(128, 64, 56, 56)]                            |                         
  output.shape: [(128, 256, 56, 56)]                          |                         
  weight.in_dim.permutation.shape: 64                         |                         
  weight.out_dim.permutation.shape: 256                       |                         
)                                                             |                         
                                                              |                         
OneDimModule(                                                 |                         
  module.type: BatchNorm2d                                    |                         
  input.shape: [(128, 256, 56, 56)]                           |                         
  output.shape: [(128, 256, 56, 56)]                          |                         
  weight.in_dim.permutation.shape: 256                        |                         
  weight.out_dim.permutation.shape: 256                       |                         
)                                                             |                         
                                                              |                         

) |
)

(please refer to attached txt file for full result):

vis.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.