Projets
Voir sur GitHub
promptslab/LLMtuner
À propos
FineTune LLMs in few lines of code (Text2Text, Text2Speech, Speech2Text)
IA et apprentissage automatiqueWhat you can do
- 🏋️♂️ Effortless Fine-Tuning: Finetune state-of-the-art LLMs like Whisper, Llama with minimal code
- ⚡️ Built-in utilities for techniques like LoRA and QLoRA
- ⚡️ Interactive UI: Launch webapp demos for your finetuned models with one click
- 🏎️ Simplified Inference: Fast inference without separate code
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original
LLMTuner
LLMTuner: Fine-Tune Llama, Whisper, and other LLMs with best practices like LoRA, QLoRA, through a sleek, scikit-learn-inspired interface.
Installation
With pip
This repository is tested on Python 3.7+
You should install Promptify using Pip command
pip3 install git+https://github.com/promptslab/LLMTuner.git
Quick tour
To finetune Large models, we provide the Tuner API.
from llmtuner import Tuner, Dataset, Model, Deployment
# Initialize the Whisper model with parameter-efficient fine-tuning
model = Model("openai/whisper-small", use_peft=True)
# Create a dataset instance for the audio files
dataset = Dataset('/path/to/audio_folder')
# Set up the tuner with the model and dataset for fine-tuning
tuner = Tuner(model, dataset)
# Fine-tune the model
trained_model = tuner.fit()
# Inference with Fine-tuned model
tuner.inference('sample.wav')
# Launch an interactive UI for the fine-tuned model
tuner.launch_ui('Model Demo UI')
# Set up deployment for the fine-tuned model
deploy = Deployment('aws') # Options: 'fastapi', 'aws', 'gcp', etc.
# Launch the model deployment
deploy.launch()
Features 🤖
- 🏋️♂️ Effortless Fine-Tuning: Finetune state-of-the-art LLMs like Whisper, Llama with minimal code
- ⚡️ Built-in utilities for techniques like LoRA and QLoRA
- ⚡️ Interactive UI: Launch webapp demos for your finetuned models with one click
- 🏎️ Simplified Inference: Fast inference without separate code
- 🌐 Deployment Readiness: (Coming Soon) Deploy your models with minimal effort to aws, gcp etc, ready to share with the world.
Supported Models :
| Task Name | Colab Notebook | Status |
|---|---|---|
| Fine-Tune Whisper | Fine-Tune Whisper | ✅ |
| Fine-Tune Whisper Quantized | LoRA | ✅ |
| Fine-Tune Llama | Coming soon.. | ✅ |
Community
If you are interested in Fine-tuning Open source LLMs, Building scalable Large models, Prompt-Engineering, and other latest research discussions, please consider joining PromptsLab
@misc{LLMtuner2023,
title = {LLMTuner: Fine-Tune Large Models with best practices through a sleek, scikit-learn-inspired interface.},
author = {Pal, Ankit},
year = {2023},
howpublished = {\url{https://github.com/promptslab/LLMtuner}}
}
💁 Contributing
We welcome any contributions to our open source project, including new features, improvements to infrastructure, and more comprehensive documentation. Please see the contributing guidelines
Explorer des projets similaires
Chargement…