deeprelay files upload
Upload a JSONL file for a batch
Upload a JSONL file for a batch
Synopsis
Uploads a local JSONL file as input for an off-peak batch and prints the file object; its id (file-...) is what deeprelay batches create --input-file takes. The id is also printed to stderr.
--purpose is batch, the default and the only value accepted: any other purpose is refused before anything is sent. Fine-tuning dataset uploads are not supported.
The file is streamed from disk, never read into memory whole, so large files upload in constant memory. The server checks the file's size, line count and that every line is a JSON object; the full per-line validation (model, endpoint, custom_id) runs when you create the batch. Default limits are 50,000 lines and 200 MB per file, and 8 MB per line; deeprelay batches limits shows yours.
Examples
deeprelay files upload --file requests.jsonl
# Capture the id for the next step
FILE_ID=$(deeprelay files upload --file requests.jsonl -o json | jq -r .id)
deeprelay batches create --input-file "$FILE_ID"
deeprelay files upload [flags]
Options
--file string Local JSONL file to upload — required
-h, --help help for upload
--purpose string File purpose; only "batch" is accepted (default "batch")
Options inherited from parent commands
--api-base string API base URL (override with DEEPRELAY_API_BASE env) (default "https://api.deeprelay.ai/v1")
--debug Enable debug logging to stderr
--no-preflight Skip the plan/credit check before inference requests (override with DEEPRELAY_NO_PREFLIGHT env)
-o, --output string Output format: table|json (default table on TTY, json otherwise) (default "table")
SEE ALSO
- deeprelay files - Upload and manage batch input and result files