用于主动微调的 PyTorch 库
A library for automatic data selection in active fine-tuning of large neural networks.
Please cite our work if you use this library in your research (bibtex below):
pip install activeftfrom activeft.sift import Retriever
# Load embeddings
embeddings = np.random.rand(1000, 512)
query_embeddings = np.random.rand(1, 512)
index = faiss.IndexFlatIP(d)
index.add(embeddings)
retriever = Retriever(index)
indices = retriever.search(query_embeddings, N=10)black ..pyright.pytest test.To start a local server hosting the documentation run pdoc ./activeft --math.
pyproject.toml and activeft/__init__.pypoetry buildpoetry publish…暂无开放 Issues,或尚未同步最近议题。