veri-sdk
Python SDK for Veri — RL post-training platform.
Install
uv pip install veri-sdk
# or
pip install veri-sdk
Quickstart
from veri_sdk import Client
client = Client(api_key="your-api-key", base_url="https://api.veri.studio")
# Upload a dataset
dataset = client.datasets.upload("training_data.jsonl", name="my-dataset")
# Start a GRPO training job — the reward Python source is attached to the
# job inline (rewards are not stored as a resource)
job = client.training_jobs.create(
base_model="Qwen/Qwen3-4B",
dataset_id=dataset.id,
reward_source=open("reward.py").read(),
output_name="my-fine-tuned-model",
hyperparameters={
"learning_rate": 1e-6,
"max_steps": 100,
"rollouts_per_prompt": 4,
"max_response_length": 512,
},
)
print(f"Job {job.id} — status: {job.status}")
# Wait for completion
job.wait(poll_interval=15)
print(f"Done! Status: {job.status}")
# Download checkpoint
if job.download_url:
job.download("./checkpoints")
Data Sources
# Upload JSONL file
dataset = client.datasets.upload("data.jsonl")
# Connect to S3
dataset = client.datasets.connect(
name="my-s3-data",
source_type="s3",
source_uri="s3://my-bucket/data.jsonl",
credentials={"aws_access_key_id": "...", "aws_secret_access_key": "..."},
)
# Connect to HuggingFace
dataset = client.datasets.connect(
name="gsm8k",
source_type="hf",
hf_dataset="gsm8k",
hf_config={"split": "train", "column_mapping": {"question": "prompt"}},
)
# Connect to a database
dataset = client.datasets.connect(
name="prod-prompts",
source_type="postgres",
db_connection="postgres://user:pass@host/db",
db_query="SELECT prompt, answer FROM training_data",
)
# Validate before connecting
result = client.datasets.validate(
source_type="hf", hf_dataset="gsm8k", hf_config={"split": "train"}
)
print(f"Valid: {result['valid']}, Rows: {result['num_rows']}")
GPU Selection
# Specify the GPU config explicitly.
job = client.training_jobs.create(
base_model="Qwen/Qwen3-4B",
gpu_type="A100-80GB",
gpu_count=2,
...
)
Checkpoint Destination
# Default: Veri-managed storage
job = client.training_jobs.create(...)
# Your own S3 bucket
job = client.training_jobs.create(
...,
checkpoint_destination={
"type": "s3",
"uri": "s3://my-bucket/checkpoints/",
},
)
List & Manage
# List your datasets
datasets = client.datasets.list()
# List jobs by status
running_jobs = client.training_jobs.list(status="running")
# Cancel a job
client.training_jobs.cancel(job.id)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
veri_sdk-0.2.34.tar.gz
(229.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
veri_sdk-0.2.34-py3-none-any.whl
(121.2 kB
view details)
File details
Details for the file veri_sdk-0.2.34.tar.gz.
File metadata
- Download URL: veri_sdk-0.2.34.tar.gz
- Upload date:
- Size: 229.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
998db3456a1a12bfcb580f76b2708aed678dae03aa3d4c9595413aa349dbf50b
|
|
| MD5 |
0c9e320e3cdc03525935b1a26575c296
|
|
| BLAKE2b-256 |
23cf2e6047bcf19281bbaca5090e23455b48aa10ebd9e3017ce5ed86133076ed
|
File details
Details for the file veri_sdk-0.2.34-py3-none-any.whl.
File metadata
- Download URL: veri_sdk-0.2.34-py3-none-any.whl
- Upload date:
- Size: 121.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a95b491992a00c12308a45e4a1123faf0a7b8d926c1fda95191d463e7483bc4d
|
|
| MD5 |
ded0256d7e325d6fabcc4550b73ec80d
|
|
| BLAKE2b-256 |
dd7bc4e2313316abbd1fcab10e85e5effdf144c8d0dff1b6ef3a0e2e0ddb415e
|