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.1.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.1-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file alcf_ai-0.2.1.tar.gz.
File metadata
- Download URL: alcf_ai-0.2.1.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 |
f578e867965a0a7e0bd38d836f9eca3e70a51932dd469091a489aba6697970ac
|
|
| MD5 |
75d49793b0eba941f25965544988ef94
|
|
| BLAKE2b-256 |
8829f6778791e7219c304b2061bf3c5980adb264183a34b5133ee9dd0ad005bb
|
File details
Details for the file alcf_ai-0.2.1-py3-none-any.whl.
File metadata
- Download URL: alcf_ai-0.2.1-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 |
a13fda4b3cc4287e6f9817cbec1259383a3639529256db2fda83025ef0ee40f6
|
|
| MD5 |
c0c559898a382fe8977eede9e9c6572c
|
|
| BLAKE2b-256 |
e81e8157d1f433067d192b372a786899e3aa153ea95bae1b3b49f43a84fa2754
|