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

How to enter model_file in dense_retriever.py? #241

Description

@tkabir1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions