Comments (5)
cc @qubvel If you have time to dig into this
from transformers.
Hi @DonggeunYu thanks for reporting the issue!
Unfortunately, I was not able to reproduce it with my envs. I tried:
- latest torch (2.3.0+cu121) + latest transformers (4.41.2)
- specified torch (2.1.0+cu121) + latest transformers (4.41.2)
- latest torch (2.3.0+cu121) + specified transformers (4.39.0)
- specified torch (2.1.0+cu121) + specified transformers (4.39.0)
My setup is 4 GPUs Tesla T4, I tried to launch on each of them, results were always identical
tensor([[[0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500],
[0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500],
[0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500],
...,
[0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500],
[0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500],
[0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500]]],
device='cuda:0')
Env:
- `transformers` version: 4.39.0
- Platform: Linux-6.5.0-1020-aws-x86_64-with-glibc2.35
- Python version: 3.10.12
- Huggingface_hub version: 0.23.4
- Safetensors version: 0.4.3
- Accelerate version: not installed
- Accelerate config: not found
- PyTorch version (GPU?): 2.1.0+cu121 (True)
- Tensorflow version (GPU?): not installed (NA)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
Do you have any ideas why that might happen in your env?
from transformers.
Hi @DonggeunYu thanks for reporting the issue! Unfortunately, I was not able to reproduce it with my envs. I tried:
- latest torch (2.3.0+cu121) + latest transformers (4.41.2)
- specified torch (2.1.0+cu121) + latest transformers (4.41.2)
- latest torch (2.3.0+cu121) + specified transformers (4.39.0)
- specified torch (2.1.0+cu121) + specified transformers (4.39.0)
My setup is 4 GPUs Tesla T4, I tried to launch on each of them, results were always identical
tensor([[[0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500], [0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500], [0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500], ..., [0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500], [0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500], [0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500]]], device='cuda:0')
Env:
- `transformers` version: 4.39.0 - Platform: Linux-6.5.0-1020-aws-x86_64-with-glibc2.35 - Python version: 3.10.12 - Huggingface_hub version: 0.23.4 - Safetensors version: 0.4.3 - Accelerate version: not installed - Accelerate config: not found - PyTorch version (GPU?): 2.1.0+cu121 (True) - Tensorflow version (GPU?): not installed (NA) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in>
Do you have any ideas why that might happen in your env?
I don't know the cause.
I will also test it in various environments.
from transformers.
Hi @DonggeunYu thanks for reporting the issue! Unfortunately, I was not able to reproduce it with my envs. I tried:
- latest torch (2.3.0+cu121) + latest transformers (4.41.2)
- specified torch (2.1.0+cu121) + latest transformers (4.41.2)
- latest torch (2.3.0+cu121) + specified transformers (4.39.0)
- specified torch (2.1.0+cu121) + specified transformers (4.39.0)
My setup is 4 GPUs Tesla T4, I tried to launch on each of them, results were always identical
tensor([[[0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500], [0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500], [0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500], ..., [0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500], [0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500], [0.2500, 0.2500, 0.2500, ..., 0.2500, 0.2500, 0.2500]]], device='cuda:0')
Env:
- `transformers` version: 4.39.0 - Platform: Linux-6.5.0-1020-aws-x86_64-with-glibc2.35 - Python version: 3.10.12 - Huggingface_hub version: 0.23.4 - Safetensors version: 0.4.3 - Accelerate version: not installed - Accelerate config: not found - PyTorch version (GPU?): 2.1.0+cu121 (True) - Tensorflow version (GPU?): not installed (NA) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: <fill in> - Using distributed or parallel set-up in script?: <fill in>
Do you have any ideas why that might happen in your env?
@qubvel
If the container image you used is public, can you share it?
from transformers.
@DonggeunYu I was using an Amazon EC2 instance g4dn.12xlarge
with Ubuntu 22.04
from transformers.
Related Issues (20)
- `stop_strings` Argument in `model.generate()` Results in Exception if Generation Completes Without `stop_string` Being Generated HOT 6
- GemmaTokenizerFast word_ids() returns only zeros HOT 1
- Tokenizers: Character encoding inconsistencies between __call__ and .convert_tokens_to_ids HOT 1
- Memory leak when using CLIPTextModel HOT 2
- Add `StatefulDataLoader` support HOT 7
- How to build and evaluate a vanilla transformer? HOT 1
- Can't create transformer pipeline because pytorch failed to be detected HOT 8
- Trainer having issues with DataLoaderShard when running with torchrun
- cannot import name 'AutoModelForImageToImage' from 'transformers.models.auto.modeling_auto' (/opt/conda/lib/python3.10/site-packages/transformers/models/auto/modeling_auto.py) HOT 1
- linear_sum_assignment error in the object_detection.py guide HOT 2
- A parameter in TrainingArguments: sample_output=True HOT 3
- Mixtral's implementation of auxiliary loss seems incorrect
- LlavaNextProcessor.__init__() got an unexpected keyword argument 'image_token' HOT 5
- Gemma-7b model set my own lm_head but cannot saved and changed pretrained embedding_layer's weights too. HOT 1
- Attention dropout causing problem in attention score distribution
- llama3 with torch.compile used more memory HOT 6
- Quantization support for heads and embeddings HOT 6
- How do I replace a spare tokens? HOT 4
- ValueError: The checkpoint you are trying to load has model type `zoedepth` but Transformers does not recognize this architecture HOT 2
- Quantized T5EncoderModel cannot be removed from VRAM on CUDA systems HOT 6
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.