gradio transformers sentence-transformers faiss-cpu pymupdf torch accelerate sentencepiece