Comments (1)
This is how this previously looked.
zero_mask = torch.zeros_like(model.module.lang_encoder.get_input_embeddings().weight.grad)
zero_mask[media_token_id] = torch.ones_like(zero_mask[media_token_id])
zero_mask[endofchunk_token_id] = torch.ones_like(zero_mask[endofchunk_token_id])
model.module.lang_encoder.get_input_embeddings().weight.grad = model.module.lang_encoder.get_input_embeddings().weight.grad * zero_mask
from open_flamingo.
Related Issues (20)
- 'media_token_id' AttributeError
- Import Error HOT 5
- How to set hyperparameters?
- Worse performance compared to vanilla cross attention HOT 2
- [BUG] an error in get_dataset_size about args.shards
- Understanding MP policy for parameters
- Open Flamingo Perplexity Calculation HOT 3
- TypeError: Flamingo.__init__() got an unexpected keyword argument 'cache_dir' HOT 1
- [BUG] ViT-L-14 downloaded in Demo compared to Huggingface Demo Card don't seem to be the same
- How to try my own fine-tuning experiments HOT 1
- [FEATURE REQUEST] Is it possible to train a 3B openflamingo on 4 V100 on one node with deepspeed by simplifying pre-training data used?
- Failure to use https://huggingface.co/anas-awadalla/mpt-7b model downloading issue?
- Allow `PerceiverResampler` to take in attention masks
- how to get synthetic data mentioned in the paper
- Implementation
- Unable to reproduce the evaluation results on textvqa
- what's the meaning of media in input to PerceiverResampler ? Why give time embedding to different media ? Shouldn't given time embedding to different frames?
- The bug in getting attention weight
- [BUG] Cannot Initialize Any Models in transformers==4.41.2 HOT 1
- The format of dataset of mmc4 and laion? So I can train on other dataset.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open_flamingo.