A Large Language Model Fine-tuning package. The package uses a single line to fine-tune an LLM by taking care of all the boilerplate in the backend.
Project description
one-line-llm-tuner
Fine-tune a Large Language Model (LLM) in a single line.
Overview
one-line-llm-tuner
is a Python package designed to simplify the process of fine-tuning large language models (LLMs) like GPT-3. With just one line of code, you can adapt a pre-trained model to your specific dataset.
Features
- Simple API: Fine-tune models with minimal code.
- Supports Popular LLMs: Works with models from the
transformers
library, including GPT, BERT, and more. - Customizable: Advanced users can customize the fine-tuning process with additional parameters.
Installation
You can install one-line-llm-tuner
using pip:
pip install one-line-llm-tuner
Usage
The PyPI package can be used in the following way after installation.
from one_line_llm_tuner.tuner import llm_tuner
print(llm_tuner.fine_tune_model("train.txt", "Metric Coders is "))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for one_line_llm_tuner-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdda2d39a989a4e763e11864dd820401f862b784799de91ca5691a9360a97984 |
|
MD5 | 762ca0dac9041ca29495dc7164cf9461 |
|
BLAKE2b-256 | 3751d171b54d79832791a8c353a013cd3e8b049b420d3ff5aaae7f9a98bd6d4d |