Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能支持其他Pytorch版本吗? #52

Closed
PolarisHsu opened this issue Aug 31, 2024 · 3 comments
Closed

能支持其他Pytorch版本吗? #52

PolarisHsu opened this issue Aug 31, 2024 · 3 comments

Comments

@PolarisHsu
Copy link

PolarisHsu commented Aug 31, 2024

目前仅支持2.4,2.4以下版本会报错,但我们的集群环境目前还不支持这么新的版本。

@kq-chen
Copy link
Collaborator

kq-chen commented Aug 31, 2024

try pip install git+https://github.com/huggingface/transformers.git@27903de

The constraint torch>2.4 is not introduced by qwen2-vl, but stems from a recent bug in transformers. Although the fix has been proposed, it has not yet been merged.

As a temporary workaround, you can install transformers from a commit before PR #31502.

@GeLee-Q
Copy link

GeLee-Q commented Sep 2, 2024

是不是nn.RMS 不支持的问题
可以在 /transformers/pytorch_utils.py 中把
# ALL_LAYERNORM_LAYERS = [nn.LayerNorm, nn.RMSNorm]
这一行注释掉

@kq-chen
Copy link
Collaborator

kq-chen commented Sep 2, 2024

the fix has been merged. now, you can try qwen2-vl with torch<2.4.

@kq-chen kq-chen closed this as completed Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants