Skip to content

AttributeError: module 'faiss' has no attribute 'GpuParameterSpace' #39

@debajyotimaz

Description

@debajyotimaz

While running this part of the code(python==3.10.12 & faiss-gpu==1.7.2):

from retro_pytorch.retrieval import chunks_to_index_and_embed

index, embeddings = chunks_to_index_and_embed(
num_chunks = 1000,
chunk_size = 64,
chunk_memmap_path = './train.chunks.dat'
)

query_vector = embeddings[:1] # use first embedding as query
_, indices = index.search(query_vector, k = 2) # fetch 2 neighbors, first indices should be self

neighbor_embeddings = embeddings[indices] # (1, 2, 768)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions