Skip to main content

ALCF Inference Gateway SDK

Project description

ALCF AI Inference Services SDK

This package provides Python client and CLI tools to facilitate usage of the ALCF AI Inference services.

Usage:

# Log in with Globus:
uvx alcf-ai auth login

# Then use the SDK programmatically:
uv run --with alcf-ai python

# Or from the command line:
uvx alcf-ai ls-jobs sophia

SDK Usage

from alcf_ai import InferenceClient
from rich import print

# Automatically uses cached refresh tokens from previous login:
client = InferenceClient()

# Programmatically discover endpoints:
print(client.list_endpoints()["clusters"]["sophia"])

# Get an OpenAI API client for an ALCF cluster:
oai = client.clusters("sophia").openai
print(
    oai.chat.completions.create(
        model="openai/gpt-oss-120b",
        messages=[{"role": "user", "content": "Hello there!"}],
    )
)

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

alcf_ai-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

alcf_ai-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alcf_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for alcf_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ef4771eab56e594cf80d9db7657558df683d1346729a097a284adc6d896872b1
MD5 4e6e13b9530cff1d329c41fdfc64f2c1
BLAKE2b-256 6aa25b724b2cf35e0577fbb5bd72f1a4a23972152051400061321a13443a65b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alcf_ai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for alcf_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ef30e01ec38e63a302052822b79b4c43c4a4fbd2485945a86faf1ec124c2bd2
MD5 6a55f4bfe3df017106a6fda043efb153
BLAKE2b-256 1911a0733d0478be63fe788b9113ea5a98ec84104eaebdb5bb01b374830eadf8

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