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
Release history Release notifications | RSS feed
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.2.0.tar.gz
(12.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
alcf_ai-0.2.0-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file alcf_ai-0.2.0.tar.gz.
File metadata
- Download URL: alcf_ai-0.2.0.tar.gz
- Upload date:
- Size: 12.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e00159f565c95da6107bd73701bc01a50fde8f763f6450498619ae17930917e6
|
|
| MD5 |
c4da28ac5731c20cf9ffe66c310789b4
|
|
| BLAKE2b-256 |
f00c36e6e00a4fa8e2ebcc085bcc0580f54c8fe95f3a8f89ab16d640c6252228
|
File details
Details for the file alcf_ai-0.2.0-py3-none-any.whl.
File metadata
- Download URL: alcf_ai-0.2.0-py3-none-any.whl
- Upload date:
- Size: 15.9 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0d691a8f5fece38ccfc96321d2c324cc1b8ab97731c159442d44e2fecd5e570
|
|
| MD5 |
b241d5a2c547e871873947778665309a
|
|
| BLAKE2b-256 |
7bbc3d72002fc8da16a74bf2aa9419afded5782a550398def1728264aea58ec4
|