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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

fleethq-0.1.0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fleethq-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.5 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9f3c9929b820d8294ecf40cc54ed8b60fe95e3e635c94f7da284b217cdf6205
MD5 4dfafead6169995610a327caddaf6af6
BLAKE2b-256 2f9f4fc094ed0355f256edd9d21d718b53a5c3410eae918f5b42249b011fa7f1

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