Skip to main content

Python SDK for Gradients.io training jobs

Project description

Gradients SDK

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.


Quick start
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.


Pricing
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

Documentation
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 Sample from local or cloud vLLM servers.
Deployment Serve base models and LoRA adapters locally, on RunPod, Lium, or Targon.
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

gradientsio-0.1.5.tar.gz (4.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gradientsio-0.1.5-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

Details for the file gradientsio-0.1.5.tar.gz.

File metadata

  • Download URL: gradientsio-0.1.5.tar.gz
  • Upload date:
  • Size: 4.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for gradientsio-0.1.5.tar.gz
Algorithm Hash digest
SHA256 67ebb9e52af1b56330c3b35d30bc643dda350d4f4dbcef253d37c60d89508a74
MD5 16df8d8f2bb222735844c27b6ac4f98d
BLAKE2b-256 130273958e9d82ae980228db5f8e2ea89666b0a0b89c82a34ca12607e1bd23e1

See more details on using hashes here.

File details

Details for the file gradientsio-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: gradientsio-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 42.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for gradientsio-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ad4a39e7af3e0876dad87d608188a02b76a66b3646af8b9951f3a649ec576dd1
MD5 d4618a76fe0970690004d9a57b1bb218
BLAKE2b-256 5e2a76ae8b09183ba5e85b24fcb1bc750754d29d85fac37cd921fb6e11abdfc9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page