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

uie-base 转torch,验证时报错 #43

Open
DroLuo opened this issue Apr 16, 2024 · 0 comments
Open

uie-base 转torch,验证时报错 #43

DroLuo opened this issue Apr 16, 2024 · 0 comments

Comments

@DroLuo
Copy link

DroLuo commented Apr 16, 2024

`[2024-04-16 12:03:00,092] [ INFO] - Validating PyTorch model...

W0416 12:03:00.840634 21336 gpu_resources.cc:275] WARNING: device: . The installed Paddle is compiled with CUDNN 8.6, but CUDNN version in your machine is 8.1, which may cause serious incompatible bug. Please recompile or reinstall Paddle with compatible CUDNN version.

[2024-04-16 12:03:03,910] [ INFO] - -[✓] Pytorch model output names match reference model ({'start_prob', 'end_prob'})

[2024-04-16 12:03:03,930] [ INFO] - - Validating PyTorch Model output "start_prob":

[2024-04-16 12:03:03,934] [ INFO] - -[✓] (1, 512) matches (1, 512)

[2024-04-16 12:03:03,943] [ INFO] - -[x] values not close enough (atol: 1e-05)

Traceback (most recent call last):
File ".\convert.py", line 478, in
do_main()
File ".\convert.py", line 462, in do_main
validate_model(tokenizer, model, paddle_model, model_type)
File ".\convert.py", line 424, in validate_model
"Outputs values doesn't match between reference model and Pytorch converted model: "
ValueError: Outputs values doesn't match between reference model and Pytorch converted model: Got max absolute difference of: 0.6232820749282837`

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

1 participant