Skip to main content

Train, evaluate, and deploy AI models on Fleet without managing infrastructure

Project description

Fleet SDK

Train, evaluate, and deploy AI models on cloud GPUs from your local machine.

Installation

pip install fleethq

Authentication

fleet login

This opens a browser to authenticate. Your credentials are saved to ~/.fleet/credentials.

Quickstart

import fleet

client = fleet.Fleet()

# Load a model, train it, deploy it
model = client.load("./my-model")
job = model.train(dataset="./data.jsonl")
job.wait()
endpoint = model.deploy()
result = endpoint.infer("Hello, world!")

Loading Models

From a local directory

If you have model weights locally (safetensors, .bin, .pt, etc.):

model = client.load("./path/to/model", name="my-model")

From HuggingFace

Download the model locally first, then load into Fleet:

from huggingface_hub import snapshot_download

path = snapshot_download("Qwen/Qwen2.5-7B")
model = client.load(path, name="qwen2.5-7b")

Fleet uploads the weights to its model registry. Subsequent pushes of the same model are instant — Fleet deduplicates by content hash.

Fine-tuned models

After training, the output model is automatically registered and can be deployed or used as a base for further fine-tuning:

job = model.train(dataset="./data.jsonl")
job.wait()
fine_tuned = job.model()   # the output model
endpoint = fine_tuned.deploy()

Training

job = model.train(
    dataset="./data.jsonl",      # local path or R2 key
    hardware="fleet:economy",    # GPU tier (default: fleet:economy)
    method="lora",               # full, lora, qlora (default: full)
)

# Stream logs
for line in job.logs():
    print(line)

# Or just wait
job.wait()
print(job.status)

Hardware tiers

Tier GPU Use case
fleet:cpu CPU only Testing
fleet:micro T4 16GB Small models
fleet:economy L4 24GB Mid-size models
fleet:standard A10G 24GB Default
fleet:pro A100 40GB Large models
fleet:ultra H100 80GB Maximum

Inference

endpoint = model.deploy(hardware="fleet:standard")

result = endpoint.infer("What is the capital of France?")
print(result)

CLI

fleet login                          # authenticate
fleet whoami                         # show current user
fleet models                         # list models
fleet jobs                           # list recent jobs
fleet jobs logs <job_id>             # stream job logs
fleet deployments                    # list deployments
fleet deploy <model_id> [hardware]   # deploy a model
fleet infer <deployment_id> <prompt> # run inference

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

fleethq-0.2.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

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

fleethq-0.2.0-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file fleethq-0.2.0.tar.gz.

File metadata

  • Download URL: fleethq-0.2.0.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for fleethq-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fac9d122edde2ef26382c4f770f0d15874a149ee134fe6cc7c4c4c688cb63a7a
MD5 8b872ce7bee3e9c5c0b4bd546f06e14f
BLAKE2b-256 18ed61b5e5bf0deedbaaffe5326dc5e83c345fabb15b740c2164cc19c241218b

See more details on using hashes here.

File details

Details for the file fleethq-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: fleethq-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for fleethq-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c642088e7cfcae028e906bd08c01c64c25b87ca2c499eca96a2b506a80fb882a
MD5 64cecb136f89fca7013a63271ed745c0
BLAKE2b-256 4363c5289d0e2dd69408138d7cc23cd9793cedcc6cd1a321685a708e439b7c59

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