I have successfully clustered a bunch of vectors using the faiss kmeans. But now I am not able to store the model and load it later for inference.
clustering = faiss.Kmeans(candles.shape[1], k=clusters, niter=epochs, gpu=gpu, verbose=True)
clustering.train(X)
cluster_index = clustering.index
# failed with "don't know how to serialize this type of index"
faiss.write_index(cluster_index, f"{out_file}.faiss")
model2 = faiss.read_index(f"{out_file}.faiss")
model2.search(x, 1)