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

[GPU not working] W0309 21:57:26.429087 805030 analysis_predictor.cc:2166] Deprecated. Please use CreatePredictor instead. #270

Open
nashJG opened this issue Mar 9, 2023 · 0 comments

Comments

@nashJG
Copy link

nashJG commented Mar 9, 2023

When I use lac to do NER by gpu, all the result is 'a', it seems the lac is not working. The result by cpu is normal.
The input is "地址:上海市长宁区古北路666号嘉麒大厦602室"
and the result of cpu is : [['地址', ':', '上海市', '长宁区', '古北路', '666号', '嘉麒大厦', '602', '室'], ['n', 'w', 'LOC', 'LOC', 'LOC', 'm', 'LOC', 'm', 'n']]
the result of gpu is W0309 21:54:09.091929 804304 analysis_predictor.cc:2166] Deprecated. Please use CreatePredictor instead. [['地址', ':', '上海市', '长宁区', '古北', '路', '666', '号', '嘉', '麒', '大厦', '602', '室'], ['a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a']]

My paddle version is "paddlepaddle-gpu:2.4.2" and the LAC version is 2.1.2.
My gpu env is torch10.1 cuda10.2 cudnn7.6.5_0
Why the gpu donot work and how to fix this problem?

@nashJG nashJG changed the title The ner result by paddle-gpu is wrong W0309 21:57:26.429087 805030 analysis_predictor.cc:2166] Deprecated. Please use CreatePredictor instead. Mar 9, 2023
@nashJG nashJG changed the title W0309 21:57:26.429087 805030 analysis_predictor.cc:2166] Deprecated. Please use CreatePredictor instead. [GPU not working] W0309 21:57:26.429087 805030 analysis_predictor.cc:2166] Deprecated. Please use CreatePredictor instead. Mar 9, 2023
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