Skip to main content

Register for an account

First, register for an account to get an API key. New accounts come with $5 to get started. Once you’ve registered, go to settings and find your api key:
Watch our Full Demo Video You can watch our full demo here.
Google Colab example here.
Step 1. Install Flex AI on your OS:
Step 2. Init your flex_ai instance

Upload your first Dataset

In FlexAI, there are 3 types of Datasets:
  1. instruction
  2. chat
  3. text
You can read more about them in Datasets tutorial For now we will go with an instruction dataset. A datasets will have two .jsonl files, one for train and one for eval (eval is optional but recommended) For example: create a train.jsonl file:
Now let’s create a new dataset
You will get back a dataset id to use for fine tuning

Fine tune

You can view all our models in the Models Page You can then select a model and dataset and start training. You can also send fine tune directly from the Dashboard
You can monitor the training progress and wait for completion:
Python
After the training is complete, you can retrieve the checkpoints:
Python

Create an OpenAI-compatible Endpoint

Once you have your checkpoints, you can create an endpoint to serve your fine-tuned model:

Use your Fine-tuned Model

You can use your fine-tuned model through the OpenAI-compatible API:

Full Example

Python