Skip to main content

A Framework for Efficient Model Selection and Hyperparameter Optimization

Project description

Quick-Tune-Tool

image image Ruff PRs Welcome

A Practical Tool and User Guide for Automatically Finetuning Pretrained Models

Quick-Tune-Tool is an automated solution for selecting and finetuning pretrained models across various machine learning domains. Built upon the Quick-Tune algorithm, this tool bridges the gap between research-code and practical applications, making model finetuning accessible and efficient for practitioners.

Installation

pip install quicktunetool
# or
git clone https://github.com/automl/quicktunetool
pip install -e quicktunetool  # Use -e for editable mode

Usage

A simple example for using Quick-Tune-Tool with a pretrained optimizer for image classification:

from qtt import QuickTuner, get_pretrained_optimizer
from qtt.finetune.image.classification import fn

# Load task information and meta-features
task_info, metafeat = extract_task_info_metafeat("path/to/dataset")

# Initialize the optimizer
optimizer = get_pretrained_optimizer("mtlbm/micro")
optimizer.setup(128, metafeat)

# Create QuickTuner instance and run
qt = QuickTuner(optimizer, fn)
qt.run(task_info, time_budget=3600)

This code snippet demonstrates how to run QTT on an image dataset in just a few lines of code.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/YourFeature)
  3. Commit your changes (git commit -m 'Add your feature')
  4. Push to the branch (git push origin feature/YourFeature)
  5. Open a pull request

For any questions or suggestions, please contact the maintainers.

Project Status

  • ✅ Active development

Support

License

This project is licensed under the BSD License - see the LICENSE file for details.

References

The concepts and methodologies of QuickTuneTool are detailed in the following workshop paper:

@inproceedings{
rapant2024quicktunetool,
title={Quick-Tune-Tool: A Practical Tool and its User Guide for Automatically Finetuning Pretrained Models},
author={Ivo Rapant and Lennart Purucker and Fabio Ferreira and Sebastian Pineda Arango and Arlind Kadra and Josif Grabocka and Frank Hutter},
booktitle={AutoML Conference 2024 (Workshop Track)},
year={2024},
url={https://openreview.net/forum?id=d0Hapti3Uc}
}

If you use QuickTuneTool in your research, please also cite the following paper:

@inproceedings{
arango2024quicktune,
title={Quick-Tune: Quickly Learning Which Pretrained Model to Finetune and How},
author={Sebastian Pineda Arango and Fabio Ferreira and Arlind Kadra and Frank Hutter and Josif Grabocka},
booktitle={The Twelfth International Conference on Learning Representations},
year={2024},
url={https://openreview.net/forum?id=tqh1zdXIra}
}

Made with ❤️ by https://github.com/automl

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quicktunetool-0.0.1.tar.gz (35.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quicktunetool-0.0.1-py3-none-any.whl (42.7 kB view details)

Uploaded Python 3

File details

Details for the file quicktunetool-0.0.1.tar.gz.

File metadata

  • Download URL: quicktunetool-0.0.1.tar.gz
  • Upload date:
  • Size: 35.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for quicktunetool-0.0.1.tar.gz
Algorithm Hash digest
SHA256 412a90831682107f2e1437066eeb3832f9b2cd54ccbb7f820c223b7297ddf4d0
MD5 90c31aed78229afc02b353197ff313c1
BLAKE2b-256 f5759d9435620c39f1986b4116352a6803aae4fca04473de59e8b4bb1f73e95f

See more details on using hashes here.

File details

Details for the file quicktunetool-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: quicktunetool-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 42.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for quicktunetool-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 375188f0892e64a1cbb76935489637374419e136ef8232872821b14494866fed
MD5 59c39fde00b5753b3655142b315c8073
BLAKE2b-256 63af2f039b4f355ee7f00a578fde3a104182de487a727759a0adae79a2d7299d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page