PaddlePaddle / PaddleNLP

👑 Easy-to-use and powerful NLP and LLM library with 🤗 Awesome model zoo, supporting wide-range of NLP tasks from research to industrial applications, including 🗂Text Classification, 🔍 Neural Search, ❓ Question Answering, ℹ️ Information Extraction, 📄 Document Intelligence, 💌 Sentiment Analysis etc.
https://paddlenlp.readthedocs.io
Apache License 2.0
11.93k stars 2.91k forks source link

[Question]: unexpected keyword argument 'pooling_mode' #6669

Open navfour opened 1 year ago

navfour commented 1 year ago

请提出你的问题

semantic-search的示例会出现Taskflow.call() got an unexpected keyword argument 'pooling_mode'

执行PaddleNLP-develop\pipelines\examples\semantic-search\semantic_search_example.py时会出现, 报错位置位于PaddleNLP\pipelines\pipelines\nodes\retriever\dense.py第322行

navfour commented 1 year ago

补充说明,已更新环境版本,并参照了https://github.com/PaddlePaddle/PaddleNLP/pull/6521 确保是debug之后的版本。尝试的为Windows环境下的pipelines

navfour commented 1 year ago

删除掉322行的**kwargs可以执行,但是不知道直接这么粗暴删除是否会有新的问题

w5688414 commented 1 year ago

欢迎反馈问题,后期会发版,把这些问题给fix掉