Giter Club home page Giter Club logo

fish's People

Contributors

varunnair18 avatar ylsung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fish's Issues

Lack of file "generate_masks"

I was trying to run the example command:
$ bash transformers/examples/text-classification/scripts/run_sparse_updates.sh "qqp mnli rte cola stsb sst2 mrpc qnli" 0 0.005 1024

But it seems that there lack of a class called generate_masks in the project. I got this error:
Traceback (most recent call last):

  File "/home/miao/projects/llm/FISH/transformers/examples/text-classification/run_glue_sparse_update.py", line 47, in <module>
    from custom_trainer import GLUETrainer
  File "/home/miao/projects/llm/FISH/transformers/examples/text-classification/custom_trainer.py", line 108, in <module>
    from generate_masks import create_mask_random, create_mask_gradient, create_mask_bias
ModuleNotFoundError: No module named 'generate_masks'

I could not find related files in the folder. May I know what the problem is?

Transformers

Thanks for making the code available, I see that you have added a fork of transformers, and I am assuming that you have done so since you have made some changes to the internals, could you please point me to those changes if possible?

Cannot import name 'MultiSameFisherMask'

When trying to run
bash cifar10-fast/scripts/distributed_training_fish.sh 256 0.005 50 2 0.4 2
I get the error
ImportError: cannot import name 'MultiSameFisherMask' from 'fisher' (/Users/sebastian/Code/FisherInformation/FISH/cifar10-fast/fisher.py)
I believe the class MultiSameFisherMask doesn't exist in fisher.py, yet it is being imported here:

from fisher import CLASSIFIER_NAME, MultiFisherMask, MultiFullOneFisherMask, MultiRandomFisherMask, MultiSameFisherMask
.

How can we use this method for CNN based models

Hi,
I like the simplicity of the method and want to experiment it on CNN based model.
However the code you have is mostly for transformer based models.
I was curious to know if you have tried it on CNN based models like VGG16, PresNet & WideResNet ?

Thanks,
Amit

fisher calculation is based on random initialized linear layer?

Hi, thanks for the great work!

I noticed that in both the paper and the released code, the fisher mask is calculated based on a randomly initialized linear layer. I am pretty surprised/shocked that this could actually lead to good performance in practice. Since the linear weights are randomly initialized, does that mean the resulting backpropagated gradients for the backbone are also random?

Just curious how do u think of this issue. Thanks!

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.