You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run preprocess_large.sh and infer_large.sh , preporcess_large.sh can generate biogpt-large-pqal_qcl_ansis-bin
but infer_large.sh have some error
Begin inferencing /content/BioGPT/examples/QA-PubMedQA/../../data/PubMedQA/raw/biogpt-large-pqal_qcl_ansis_test.tok.bpe.x using ../../checkpoints/QA-PubMedQA-BioGPT-Large/checkpoint.pt
2023-04-10 13:08:04.006038: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-04-10 13:08:06.273501: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-04-10 13:08:11 | INFO | fairseq.file_utils | loading archive file ../../checkpoints/QA-PubMedQA-BioGPT-Large
2023-04-10 13:08:11 | INFO | fairseq.file_utils | loading archive file /content/BioGPT/examples/QA-PubMedQA/../../data/PubMedQA/biogpt-large-pqal_qcl_ansis-bin
infer_large.sh: line 21: 11640 Killed python ../../inference.py --data_dir=${DATA_DIR} --model_dir=${MODEL_DIR} --model_file=${MODEL} --src_file=${INPUT_FILE} --output_file=${OUTPUT_FILE}
sed: can't read ../../checkpoints/QA-PubMedQA-BioGPT-Large/generate_checkpoint.pt: No such file or directory
infer_large.sh: line 26: ../../checkpoints/QA-PubMedQA-BioGPT-Large/generate_checkpoint.pt: No such file or directory
Traceback (most recent call last):
File "/content/BioGPT/examples/QA-PubMedQA/postprocess.py", line 37, in <module>
with open(out_file, "r", encoding="utf8") as fr:
FileNotFoundError: [Errno 2] No such file or directory: '../../checkpoints/QA-PubMedQA-BioGPT-Large/generate_checkpoint.pt.detok'
Traceback (most recent call last):
File "/content/BioGPT/examples/QA-PubMedQA/hard_match_evaluation.py", line 42, in <module>
main()
File "/content/BioGPT/examples/QA-PubMedQA/hard_match_evaluation.py", line 20, in main
with open(pred_file) as reader:
FileNotFoundError: [Errno 2] No such file or directory: '../../checkpoints/QA-PubMedQA-BioGPT-Large/generate_checkpoint.pt.detok.extracted.txt'
I'm not sure where the error is
The text was updated successfully, but these errors were encountered:
Have you checked if this file exist "../../checkpoints/QA-PubMedQA-BioGPT-Large/generate_checkpoint.pt: No such file or directory" from the directory where you are running? Basically it seems like either you need to change directory of your weights file .. as your current code is not able to find it.
I follow BioGPT/examples/QA-PubMedQA/README.md to Test PubMedQA accuracy.
This is my colab: https://colab.research.google.com/drive/1BQmO1c0s4E6ZqpB0Tfv7wocMhmJm2AKx?usp=sharing
And I get the following result:
When I run
preprocess_large.sh
andinfer_large.sh
,preporcess_large.sh
can generatebiogpt-large-pqal_qcl_ansis-bin
but
infer_large.sh
have some errorI'm not sure where the error is
The text was updated successfully, but these errors were encountered: