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
{{ message }}
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
While trying to train the ELQ model on WebQSP according to this guide, I encounter ValueError: too many values to unpack (expected 2) from the line below in the faiss_indexer.py script: scores, indexes = self.index.search(query_vectors, top_k)
The problem is the search function expects a 2d tensor of shape (n,1024) for query_vectors, whereas in elq/biencoder/train_biencoder.py the tensor fed to faiss_index.search_knn(embedding_ctxt, 10) is a 4d tensor of shape (64, 50, 50, 1024).
How should this be handled?
FAISS version: 1.7.4
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi all,
While trying to train the ELQ model on WebQSP according to this guide, I encounter
ValueError: too many values to unpack (expected 2)
from the line below in the faiss_indexer.py script:scores, indexes = self.index.search(query_vectors, top_k)
The problem is the search function expects a 2d tensor of shape (n,1024) for query_vectors, whereas in elq/biencoder/train_biencoder.py the tensor fed to
faiss_index.search_knn(embedding_ctxt, 10)
is a 4d tensor of shape (64, 50, 50, 1024).How should this be handled?
FAISS version: 1.7.4
The text was updated successfully, but these errors were encountered: