Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

How to enter model_file in dense_retriever.py? #241

Open
tkabir1 opened this issue Jan 29, 2023 · 1 comment
Open

How to enter model_file in dense_retriever.py? #241

tkabir1 opened this issue Jan 29, 2023 · 1 comment

Comments

@tkabir1
Copy link

tkabir1 commented Jan 29, 2023

python dense_retriever.py \ model_file={path to a checkpoint file} \ qa_dataset=nq_test \ ctx_datatsets=[dpr_wiki] \ encoded_ctx_files=[\"~/myproject/embeddings_passages1/wiki_passages_*\",\"~/myproject/embeddings_passages2/wiki_passages_*\"] \ out_file={path to output json file with results}

For this part of the code, in the model_file I am adding my trained biencoder. However, I am receiving the error
`2023-01-28 20:58:29,641 [INFO] faiss.loader: Loading faiss.
2023-01-28 20:58:29,670 [INFO] faiss.loader: Successfully loaded faiss.
./dense_retriever.py:472: UserWarning:
The version_base parameter is not specified.
Please specify a compatability version level, or None.
Will assume defaults for version 1.1
@hydra.main(config_path="conf", config_name="dense_retriever")
Error parsing override 'dpr_biencoder39'
missing EQUAL at ''
See https://hydra.cc/docs/1.2/advanced/override_grammar/basic for details

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.`

Is there any specific way to enter the biencoder?

@zongshun21
Copy link

How did this problem be solved

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants