Skip to main content

A library containing components related to model inferences in Gen AI applications.

Project description

GLLM Inference

Description

A library containing components related to model inferences in Gen AI applications.


Installation

Prerequisites

Mandatory:

  1. Python 3.11+ — Install here
  2. pip — Install here
  3. uv — Install here

Extras (required only for Artifact Registry installations):

  1. gcloud CLI (for authentication) — Install here, then log in using:
    gcloud auth login
    

Option 1: Install from Artifact Registry

This option requires authentication via the gcloud CLI.

uv pip install \
  --extra-index-url "https://oauth2accesstoken:$(gcloud auth print-access-token)@glsdk.gdplabs.id/gen-ai-internal/simple/" \
  gllm-inference

Option 2: Install from PyPI

This option requires no authentication. However, it installs the binary wheel version of the package, which is fully usable but does not include source code.

uv pip install gllm-inference-binary

Local Development Setup

Prerequisites

  1. Python 3.11+ — Install here

  2. pip — Install here

  3. uv — Install here

  4. gcloud CLI — Install here, then log in using:

    gcloud auth login
    
  5. Git — Install here

  6. Access to the GDP Labs SDK GitHub repository


1. Clone Repository

git clone git@github.com:GDP-ADMIN/gl-sdk.git
cd gl-sdk/libs/gllm-inference

2. Setup Authentication

Set the following environment variables to authenticate with internal package indexes:

export UV_INDEX_GEN_AI_INTERNAL_USERNAME=oauth2accesstoken
export UV_INDEX_GEN_AI_INTERNAL_PASSWORD="$(gcloud auth print-access-token)"
export UV_INDEX_GEN_AI_USERNAME=oauth2accesstoken
export UV_INDEX_GEN_AI_PASSWORD="$(gcloud auth print-access-token)"

3. Quick Setup

Run:

make setup

4. Activate Virtual Environment

source .venv/bin/activate

Local Development Utilities

The following Makefile commands are available for quick operations:

Install uv

make install-uv

Install Pre-Commit

make install-pre-commit

Install Dependencies

make install

Update Dependencies

make update

Run Tests

make test

Contributing

Please refer to the Python Style Guide for information about code style, documentation standards, and SCA requirements.

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 Distributions

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

Built Distributions

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

gllm_inference_binary-0.5.124-cp313-cp313-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.124-cp313-cp313-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.124-cp313-cp313-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.124-cp312-cp312-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.124-cp312-cp312-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.124-cp312-cp312-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.124-cp311-cp311-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.124-cp311-cp311-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.124-cp311-cp311-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_inference_binary-0.5.124-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.124-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2269a587147435f8b1cf5a078455e7f6844b70fbf9cffe82a3c2c1d428763526
MD5 6bca783200f739317f7ce4912c06e077
BLAKE2b-256 aa1707640560704e8bde8abb65530244d2571df6f4fc8f8291a04406e1268bbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.124-cp313-cp313-win_amd64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-sdk

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

File details

Details for the file gllm_inference_binary-0.5.124-cp313-cp313-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.124-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 736f20f1bc02435000a61c374d1810cc1007fcb450fc70157ddf19f2b90c730a
MD5 d5bd74d3fc2a48c9f2c8fbe4e12e43bd
BLAKE2b-256 02a299dd88a4c9b350dfd8aa1b5d7576b454bd552ba574de39974a3fe2c21d03

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.124-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.124-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b094c9cdc45716256b9f9bd70c8e30ce2ff30cb9b59fb95af08d8a09124e23f1
MD5 2023f610af718c18126c55f423bc3b5f
BLAKE2b-256 699d0c51a7aba2f8f9b2e13e95214b6d5080e6abe3739667988f4839758b790c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.124-cp313-cp313-macosx_13_0_arm64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-sdk

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

File details

Details for the file gllm_inference_binary-0.5.124-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.124-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fc38262309756b4d34348ba1b506fdffd02e6a54d6bfe3d7ce3d64ae13314d70
MD5 7b737e5de8b2df4ba48e8dd5d63e3a32
BLAKE2b-256 b588aa9503e1a1fa7c7691ac995462252d62265e56f60ff25e5eba823f71fc4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.124-cp312-cp312-win_amd64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-sdk

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

File details

Details for the file gllm_inference_binary-0.5.124-cp312-cp312-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.124-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 cba185eed13a30c8add03398626323fdb9c5630779e53ed4c855d374ce3b5600
MD5 c1ee8b4a32c833fdb9f1738851304a02
BLAKE2b-256 6f3710d73905a365485e35c0c2bcc397d45626f735cf77802cf7b2d28a76aad4

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.124-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.124-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3d5392369364ca039be27cef78a0a220c5b0f5dc39fb1cd9d55df82cd7308272
MD5 f1b2301590ddb79f94b0a9d2594ddd97
BLAKE2b-256 01fa2b600d7463375b098ce9de2bc60996f739c2c6af449d48911b39b3508da1

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.124-cp312-cp312-macosx_13_0_arm64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-sdk

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

File details

Details for the file gllm_inference_binary-0.5.124-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.124-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f30c9cdbd38e75751d70c8763ae272beca6fb18a6b1f0f4fe469dae21f38aff1
MD5 eb6e8c128496d25472a3c2f810ad7735
BLAKE2b-256 a88f4c311d18f74bbdcb842c5a8b0bc7bf283bd6196b0b995ab60122291f5c8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.124-cp311-cp311-win_amd64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-sdk

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

File details

Details for the file gllm_inference_binary-0.5.124-cp311-cp311-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.124-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6923f66e713795342a95a15edc54b564926e699e5736aa393b344ea86d68bfbc
MD5 2f362cdd096e329c5dd76e8f2fdaec77
BLAKE2b-256 1cc13fc7f84c684382e4c44c30529c014b718adadb8383dc6caff54d462abdf6

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.124-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.124-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a190ee844d47c4d293dd8e9d195f44c2eb0f861aecd5dae9f0cd5e301949e2e7
MD5 29de380cbd9900e6d50878d1498d999a
BLAKE2b-256 1b8bf38dbad107c917768b80d69e863d375d92187192251881909169ccefe76f

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.124-cp311-cp311-macosx_13_0_arm64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-sdk

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