8. Train and Finetune
When it is time to train or finetune a model, you can go to the Train section of the application.
Training Templates
The top section of the screen shows "Training Templates" which are instructions that you can send to Transformer Lab that indicate the training program you would like to schedule.
Create a New Training Template
To create a new Training Template click on the
Button and then fill out the information the modal:- Template Name is the friendly name you will use to remember this template
- Selects the specific training Plugin Script you'd like to use (first ensure you have some installed to your project)
- Sets the dataset used to train your model
- Sets the template format in which to format the data. Transformer Lab uses the Jinja2 string templating format. Most of the time this means you will use the field names in the "Available Fields" section of this screen, enclosed in two curly braces like:
{{ field_name }}
- Sets additional parameters specified by any specific plugin. For example for a LoRA trainer, LoRA parameters will be set here.
Running a Training Job
Once you have created a Training Template, click on "Queue" to schedule the a Training Job. Once the server has completed any previous jobs, it will begin the training job. Plugins may display a progress bar until they Complete.
Viewing Tensorboard and Output
The
button displays real-time tensorboard output of the job.You can click on
button at any time to see the currently running status of the job's output. This can also be used to debug Training Jobs.