Fine-tune the top open models.
LoRA on Qwen and Llama bases, through a job API in the OpenAI format. When the job is done, download your adapter.
The top open bases.
- Qwen Alibaba’s open models, in several sizes.
- Llama Meta’s open models, in several sizes.
Fine-tunes of Llama bases: Built with Llama.
Three steps.
-
Upload your data.
Chat examples in JSONL, the format OpenAI fine-tuning uses.
-
Create a job.
One call: the base model, the training file, the method. The OpenAI SDK works as it is.
-
Download your adapter.
The LoRA weights are yours, to run wherever you like.
Every training job also mines.
Training mines $PEARL inside the work and in the gaps between its steps. The GPUs earn twice on the same compute.
A job API in the OpenAI format.
The OpenAI SDK and the calls you know: set our base URL and your key.
import osfrom openai import OpenAI client = OpenAI(base_ url= "https:// api. peryn. ai/ v1",api_ key= os. environ[ "PERYN_ API_ KEY"],) data = client. files. create( file= open( "train. jsonl", "rb"), purpose= "fine-tune")job = client. fine_ tuning. jobs. create(model= "llama-3.1-8b-instruct",training_ file= data. id,method= {"type": "supervised"},)print(job.id, job.status)