Skip to main content

Modern fine-tuning library for LLMs with LoRA, QLoRA, and full fine-tuning support

Project description

finetuning

Modern fine-tuning library for Large Language Models (LLMs) with support for LoRA, QLoRA, and full fine-tuning.

Features

  • 🚀 Easy-to-use API for fine-tuning LLMs
  • 🔧 Support for LoRA and QLoRA parameter-efficient methods
  • 📊 Built-in evaluation and metrics
  • ☁️ Cloud-native with Modal integration
  • 🔄 Compatible with HuggingFace models

Installation

pip install finetuning

Quick Start

from finetuning import FineTuner

# Initialize fine-tuner
tuner = FineTuner(model_name="meta-llama/Llama-2-7b-hf")

# Fine-tune on your data
tuner.train(
    dataset="your_dataset",
    method="lora",  # or "qlora", "full"
    num_epochs=3
)

# Save fine-tuned model
tuner.save("./my_finetuned_model")

License

MIT

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

finetuning-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

finetuning-0.1.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file finetuning-0.1.0.tar.gz.

File metadata

  • Download URL: finetuning-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for finetuning-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d81066d45f03c77b47c414f14d120e2274a8b9721df18edadeeae9ae2250fd16
MD5 09427d38541ec7b3517b019787bb9d3a
BLAKE2b-256 f5509d6f646b0f292dfa261cf49139b970708cf43048e70e62d5e5f6e177b0d2

See more details on using hashes here.

File details

Details for the file finetuning-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: finetuning-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for finetuning-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c1248317096c7d8bbdc07b99010246c6b65c8e862fdf51687fd0ad91b9486b0
MD5 cc776695eda104ab7833c361f0f7ccb6
BLAKE2b-256 dae4cca4faee9792a9d259c2c8101d7361698c3b17903748ad24c85e276a9db4

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