Python SDK for Gradients.io training jobs
Project description
Foundation models like Llama, Qwen, and Stable Diffusion are powerful but generic. Post-training is how you make them yours — teaching a model your data, your domain, your task.
That usually means training scripts, hyperparameter tuning, and GPU infrastructure. Gradients replaces all of it with a single API call. Choose a model and a dataset — Gradients automatically optimizes the training configuration for your problem and delivers a production-ready model.
pip install gradientsio
Sign up at gradients.io, grab an API key, and:
import os
from gradientsio import GradientsClient, TaskType
os.environ["GRADIENTS_API_KEY"] = "your-api-key"
result = GradientsClient().train(
model="Qwen/Qwen2.5-3B",
task_type=TaskType.INSTRUCT,
hours=2,
dataset="yahma/alpaca-cleaned",
field_instruction="instruction",
field_input="input",
field_output="output",
).wait()
print(result.trained_model_repository)
Five training modes: INSTRUCT, CHAT, DPO, GRPO, IMAGE.
| Model size | Hourly rate | ||
|---|---|---|---|
| Up to 1B parameters | $10 / hr | 40B+ parameters | $50 / hr |
| Up to 7B parameters | $15 / hr | Image models | $5 / hr |
| Up to 40B parameters | $25 / hr |
| Getting Started | Install, create an account, train your first model, and test the result. |
| Task Types | Instruct, Chat, DPO, GRPO, and Image — when to use each and how. |
| Datasets | How to prepare your data, with good and bad examples for each type. |
| Configuration | Every parameter, error handling, polling, and environment variables. |
| Scheduler | Multi-iteration training for datasets larger than 300k rows. |
| Inference | Test locally or deploy with vLLM, TGI, or Transformers. |
| Deployment | Deploy a trained LoRA adapter to RunPod with vLLM. |
| Account | Billing, balance, and pricing. |
See the training comparison notebook for a live demo — train a medical QA model and compare it against the base model side by side.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file gradientsio-0.1.4.tar.gz.
File metadata
- Download URL: gradientsio-0.1.4.tar.gz
- Upload date:
- Size: 3.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f37118a6c261f121acbbe8543ab1cfd7b76c696510f466562169aa84c733c2cd
|
|
| MD5 |
a58cbae17fe848121fd277752ee8e514
|
|
| BLAKE2b-256 |
87e1a5abf1fb4a0ed0d4da9877e3eb3cbc494ecb5b519605555738206b82884a
|
File details
Details for the file gradientsio-0.1.4-py3-none-any.whl.
File metadata
- Download URL: gradientsio-0.1.4-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd6130d1f11a01688809290d5d651c72b4c80c80a6faf7694dafebf6d1265e5b
|
|
| MD5 |
dbc821f9bfcbf18860472d8885978dce
|
|
| BLAKE2b-256 |
6e327619f0e5806896d25924d7b9019253e7bd79299355e7541b0c7c8b61769b
|