Active Fine-Tuning
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):
- Efficiently Learning at Test-Time: Active Fine-Tuning of LLMs
- Transductive Active Learning: Theory and Applications (Section 4)
Installation
pip install activeft
Usage Example
from 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)
Development
CI checks
- The code is auto-formatted using
black .. - Static type checks can be run using
pyright. - Tests can be run using
pytest test.
Documentation
To start a local server hosting the documentation run pdoc ./activeft --math.
Publishing
- update version number in
pyproject.tomlandactiveft/__init__.py - build:
poetry build - publish:
poetry publish - push version update to GitHub
- create new release on GitHub
Citation
@article{hubotter2024efficiently,
title = {Efficiently Learning at Test-Time: Active Fine-Tuning of LLMs},
author = {H{\"u}botter, Jonas and Bongni, Sascha and Hakimi, Ido and Krause, Andreas},
year = 2024,
journal = {arXiv Preprint}
}
@inproceedings{hubotter2024transductive,
title = {Transductive Active Learning: Theory and Applications},
author = {H{\"u}botter, Jonas and Sukhija, Bhavya and Treven, Lenart and As, Yarden and Krause, Andreas},
year = 2024,
booktitle = {Advances in Neural Information Processing Systems}
}
Metadata
Release files for activeft 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| activeft-0.1.1.tar.gz | 33.7 kB | Without provenance | Details for activeft-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| activeft-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for activeft-0.1.1-py3-none-any.whl |
Total release size: 86.3 kB
Release files / activeft-0.1.1.tar.gz
| Download URL | activeft-0.1.1.tar.gz |
|---|---|
| Size | 33.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49cd79e0c64eebb983516c3ff37d11e05de476d3a38ed84ffe18960753bbe58d
|
|
BLAKE2b-256 checksum How to use checksums |
9b5d2d4491118d328e18dcabb6b102506ad9f343c7e25d984d1788f1035ea2d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.6 Darwin/24.0.0
|
Release files / activeft-0.1.1-py3-none-any.whl
| Download URL | activeft-0.1.1-py3-none-any.whl |
|---|---|
| Size | 52.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
708d8fbb12b3fd6140e9f57ba79ee121e74f3f79780245c81acb01ad1d461748
|
|
BLAKE2b-256 checksum How to use checksums |
5bade6c280958e10027a4aafc90c202982e6bdb4e2502dd3c3eec2a0289c0f49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.6 Darwin/24.0.0
|
Security for activeft 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.