Skip to main content
A batch on a LoRA adapter is a normal batch with two differences: the adapter lives in your data plane’s resources bucket, and each request names it in model.

Upload the adapter

Export the adapter in PEFT format, trained on the same base model you run the batch on. The adapter folder must meet these requirements:
  • It contains adapter_config.json and adapter_model.safetensors at its top level, and nothing else.
  • Rank is 16 or less.
  • It’s plain LoRA, with no DoRA and no bias terms.
Copy the folder to loras/<adapter-name>/ in your data plane’s resources bucket. The bucket name is the Terraform output s3_resources_bucket_name and ends in -resources.
Adapter names use letters, digits, ., _ and -, and start with a letter or digit.

Name the adapter in model

Set model to ft:<base-model>:<adapter-name>. A batch runs on a single adapter. The adapter is loaded once when the batch starts and isn’t swapped per request, so every line in the input file must use the same model value. You can’t mix adapters, or an adapter and its base model, in one batch. To run several adapters, submit one batch per adapter.

Submit the batch

Upload the file and create the batch as you would for a base model. completion_window must be "unlimited".
Poll the batch and download results the same way as any other batch. See Run a batch.
The adapter isn’t checked when you create the batch. If it’s missing from the bucket or doesn’t meet the requirements above, the batch doesn’t start. Check the adapter path and files before you submit.