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.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d920b5e1b758c737994cba218c1842550d92862ff18b3cd457c02a92ecd3056 |
|
MD5 | 5f245c16512525f69e6492fed4628d5a |
|
BLAKE2b-256 | 2544fec02ba569c5c2fb45c9daf238121cfccfa73af921bf9067274888f63c4e |