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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.102-cp313-cp313-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.102-cp313-cp313-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.102-cp312-cp312-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.102-cp312-cp312-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.102-cp312-cp312-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.102-cp311-cp311-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.102-cp311-cp311-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.102-cp311-cp311-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a2ad356cc8fbaea2b5defb43db1b7e29225883d19a4b1cbb2c571a7d7d0c3406
MD5 f958de39d3ccd0876269868dfef20ef7
BLAKE2b-256 df67fd5424876f9649397c89fa3bb49df23523040554425c07ad7df0b216d4b2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 808bfb773c59b34cd6a6558ab3128124a873761889a088ab1dfcea2b8d8929ec
MD5 28e94bc6118488ae5cc8d2e190bc6a04
BLAKE2b-256 69fec97ebde1048fb5f29ecefda6ced547ffeb80838d06a1f2da1784f98c50e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5f74be86b43b9b6313844cc8cb0c3abd81d729c546196fc8bef13837e4804d8c
MD5 515485b1495965c15f0897b920ee4857
BLAKE2b-256 96e913a3a64303408654ef94eb2a02ef3b77ebcf4261951818a33555a261b957

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e6fb54c74de04adafb4447fc593460e37348b6d54a1b6e9f5c1ac5e5f8f3bdbd
MD5 fb685264406fe6be5eb2327998e64f9e
BLAKE2b-256 1a49a13c870f75a5b17f8b3a2026e3ab818afb4b19f41a334b8ac4b269629596

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e32ded0fd197579de82d70d6e336e6491006f18f790e37a8eb74cd45877a437e
MD5 5dbdda61d413dda4e143da40489e9b0e
BLAKE2b-256 0ea598a5154956e63307df22fbe5a33517a0e8037f84d6c87c4885e42cc80102

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 fbeb1851d9fe00315be5b73206bf4824f1817a2fa2c69f64b2951959ddb4e32c
MD5 7e30ca62cf254fcdd0a613942d94bd55
BLAKE2b-256 fae6e4342946b29a73c5f500628ba92672ebfb5a45675cbcc3841b8fcc88e764

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 202e60154d7f5e2ed9f8e55e4ab00bbbc02abb0e9516b7211a5d95457e96e2a9
MD5 b6d16dffd580e8a443311feb6468b489
BLAKE2b-256 d71dcbee30bb46b8f1e8ca44f41806f30da472624349c37f081b011822adea57

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 571121b538b6e1b5b427630ab7f8986ad2e7bfb8e11ad265cf59f78797478fe1
MD5 1710cfec55484d18931f9de4522b96ad
BLAKE2b-256 981fb5fedd780a857ef2e68811a5aac9d2e6ba1b889de1a09cacf594852aa797

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6668b74a298518edac2d0d63d283f0077b44a45d641d09081801bf4c5b4885d1
MD5 58488146f4c6d4f579050b137cdc0280
BLAKE2b-256 1872e38fc9f65e38ce262eb86ab142d67733a3218608a8592635400091288fec

See more details on using hashes here.

Provenance

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