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.155-cp313-cp313-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.155-cp313-cp313-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.155-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.155-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.155-cp312-cp312-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.155-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.155-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.155-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.155-cp311-cp311-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.155-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b55a892c470200237cfe999b947099aa02b1dd3359806044eb0acec864c03686
MD5 47dfce8d3f5d0284eff9cf57672ccb1e
BLAKE2b-256 87c46b0d9d7449bd5cccdd263a2733dc0ff510fab842eda807177d98d89eb509

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.155-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.155-cp313-cp313-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.155-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5b12b5dbf82532428e8a5a5a4cccb48f761e6f354e63826e81dac5335e819837
MD5 db2873d990e0a26590f3af31f49043ce
BLAKE2b-256 56d3b81bf30f3a63dea4d5b6e50dead6d200cb073fd7e86fe9fd807f1618a004

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.155-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 39aa4ecc2bd4c1ae39d07412202bb6dec22e31e012e143b03f9bb475d7d9cf16
MD5 0c24fd801d6282cc4f84a37209ca8105
BLAKE2b-256 90117e990698eb4b608224166f210bb5d04186335acbb52563d9bc196b48e752

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.155-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.155-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.155-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 aa41afcbc8dcb5b992d648d24c54d9caea9629220662650872852b3f2162efe2
MD5 b5fb12e0d16f2678a4ede1d27bbfaba7
BLAKE2b-256 ef25d7c1925e83047ba19a4c7118f3ae665d64b307b7d9163555a0eb855eca1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.155-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.155-cp312-cp312-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.155-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a7a982ffdbe0dca1ccd708c78535a15b0a813e6e6b0f1b078de910c1790eb730
MD5 1d49fc43a745eb2b7bc9de977389c5ea
BLAKE2b-256 b994e9fbe8292fd4f753dbd4694d55c8045fa039077fe54b1863e9a5defeaa17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.155-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 17fb91880aa3908cbda72fefdc865e226b7cd3b8b7bf1f2a545256cb01873439
MD5 257235903b9d4a7009dee4de48b1088d
BLAKE2b-256 6a440cdf7bf8af8f521926226612b1a206841b1a9737616a452b9b70d0f2f684

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.155-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.155-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.155-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 77ef170a44f42108a62699a2a7cf6977031bac2d8307c902d6c1713cdd0b25ba
MD5 4d2794a47b0c6832d1c7511f3805eb32
BLAKE2b-256 215b71ce3e987b4e665c2bb2672448916b614c38fbed71525cb670f07513382d

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.155-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.155-cp311-cp311-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.155-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 61b70744ec2046b7fde8d2b0811d46c9efa3751ef4948cf3951e1269cabb3a61
MD5 ae3ccb773fd9cb6af8036404f2efe392
BLAKE2b-256 d94bb60d256282f1f579e4563d17bb2f98f46fcea81fba884e4c09a69a35761e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.155-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 99dcc5b8f2dc4ee63818fa959e532fe52702cab6e85f10ea3c823ad11c8bb80f
MD5 86021cf7474e054a74bd9219ce87467c
BLAKE2b-256 0a18a7cceb68560543f03d4412999c19ba3dc4c930af096251485d5e4fbe2cee

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.155-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