Skip to main content

Wistfare Serverless GPU Platform SDK

Project description

Wistfare Python SDK

The official Python SDK for the Wistfare Serverless GPU Platform.

Installation

pip install wistfare

Quick Start

from wistfare import endpoint, Image

image = Image(
    python_version="3.12",
    python_packages=["torch", "transformers"],
    cuda_version="12.4",
)

@endpoint(name="predict", cpu=2, memory="16Gi", gpu="H100", image=image)
def predict(context, prompt: str = ""):
    model = context.on_start_result
    return model.generate(prompt)

@predict.on_start()
def load_model(context):
    from transformers import pipeline
    return pipeline("text-generation", model="meta-llama/Llama-3-8B", device="cuda")
wistfare deploy app.py:predict

Features

  • Decorators: @endpoint, @function, @task_queue, @schedule
  • GPU Support: RTX 4090, A100, H100 with per-second billing
  • Image Builder: Define container environments with Image()
  • CLI: wistfare deploy, wistfare serve, wistfare logs
  • Client: Programmatic invocation via WistfareClient

Documentation

See the Getting Started Guide.

License

MIT

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

wistfare-0.1.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

wistfare-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file wistfare-0.1.0.tar.gz.

File metadata

  • Download URL: wistfare-0.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wistfare-0.1.0.tar.gz
Algorithm Hash digest
SHA256 28a696928e2d01ef9d7ff96cdcc6ef0cf72b6928812449f7012982942b4ba414
MD5 89472bca7fdc056d807890618feb72bc
BLAKE2b-256 d73b306315ecdf01f643b023f675b2c766d854ee1d5ac0cab87a5da33488ba1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for wistfare-0.1.0.tar.gz:

Publisher: publish.yml on Wistfare/wistfare-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: wistfare-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wistfare-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84c858a616e12aa6557a224693a6aded57fd583ceaa0e508ca04ef863714c02c
MD5 5aa61cf744fea261f0125c04568c25e6
BLAKE2b-256 3715a87e18468369a68b922560558259af494d1dad996888084592a65678be2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for wistfare-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Wistfare/wistfare-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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