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 Test locally or deploy with vLLM, TGI, or Transformers.
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.3.tar.gz (3.4 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.3-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gradientsio-0.1.3.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

Hashes for gradientsio-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b9c47d59de94d331271700aab5757cf3b031de3cbdff5b6fa23878621a61786e
MD5 84b1e932cfde651b55e6867625c39e70
BLAKE2b-256 cf59b05bfbc0cc0c6684c31fe04997db325cfb867e364fb5b97294a604d24146

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gradientsio-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 15.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 26bb091bac288706b64a721bc2e96251e9a92880105f31c8656b51449ac12a80
MD5 16d11981c70330692d7b47a5bb256afa
BLAKE2b-256 5dea6178f11dbdfac90a3af9fc8bdae2bd09712b3c2151d0e9f5dde4fe0e0183

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