Comments (4)
@qubvel good point about the backbone. Probably because I have trained with a frozen backbone, which is kind of common.
And about the backbone removing unused params there would probably required too much changes.
I will do a PR then, thanks.
from transformers.
Hi @ducha-aiki, thanks for reporting!
You are right, it looks like we can safely delete layers[0].residual_layer1
from DPTFeatureFusionStage
because its never used.
Would you mind sharing why this prevents DDP training?
from transformers.
@qubvel I believe I shared this in:
Parameters which did not receive grad for rank 3: neck.fusion_stage.layers.0.residual_layer1.convolution2.bias, neck.fusion_stage.layers.0.residual_layer1.convolution2.weight, neck.fusion_stage.layers.0.residual_layer1.convolution1.bias, neck.fusion_stage.layers.0.residual_layer1.convolution1.weight
That is a quote from the error crash message I am getting, when running with accelerate
for multi-GPU, when I specify in Trainer ddp_find_unused_parameters=False
.
from transformers.
Thank you, I missed it 🙂 I am trying to understand why backbone unused weights are not blocking, while neck's block. Did you try training with a fix?
Anyway if this solves the issue it is worth a PR.
from transformers.
Related Issues (20)
- Object Detection Pipeline only outputs first element when batching HOT 4
- Batch is empty when fine-tuning flan-t5 using LoRA
- Add support for setting default `use_fast` via `tokenizer_config.json` HOT 2
- LLama3 won't stop when provide eos_token_id HOT 4
- stop_strings not work at all HOT 2
- loading AutoTokenizer.from_pretrained with gated model HOT 5
- TypeError: Block.forward() got an unexpected keyword argument 'past_key_value' HOT 3
- cuda.empty_cache in trainer.py slow down training HOT 4
- model.generate() errors in Idefics2 Fine-tuning notebook HOT 5
- run_decision_transformer HOT 2
- Running AutoTokenizer.from_pretrained with Mistral V3 is actually loading LlamaTokenizer HOT 6
- Idefics 2: shape mismatch: value tensor of shape [320, 4096] cannot be broadcast to indexing result of shape [0, 4096] HOT 5
- Problems when using SinkCache for model.generate() HOT 6
- https://github.com/VikParuchuri/surya can not convert model to onnx HOT 5
- AttributeError: module 'torch.utils._pytree' has no attribute 'register_pytree_node' during import in transformers
- Sinusoidal Position Embedding weights somehow get altered HOT 1
- [SPAM]
- MPS
- loss = 0 after first log with trainer API HOT 3
- LLM Cache HOT 2
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 transformers.