【PaddleNLP No.5】Update simcse to apply PIR #10396
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR types
Function optimization
PR changes
Models
Description
Updated
slm/applications/neural_search/recall/simcse/README.md
to include instructions for downloading and unzipping the required data.Modified
deploy.sh
to ensure it can be executed directly fromslm/applications/neural_search/recall/simcse/
, aligning with the structure of other scripts.Updated
slm/applications/neural_search/recall/simcse/deploy/python/predict.py
to support PIR.issue: #9763
@DrownFish19
其他问题
发现在paddle3.0.0下simcse模型无法成功转换为静态模型,执行导出脚本输出如下:
导致转换后的模型在
deploy/python/predict.py
中运行结果为空,尝试在export_model.py
中显示full_graph=True
但并没什么效果,参考PaddlePaddle/Paddle#69119 ,应该是默认开启的。尝试不传input_spec
依旧报错: