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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.102.post1-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.post1-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.post1-cp312-cp312-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.102.post1-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.post1-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.post1-cp311-cp311-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.102.post1-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.post1-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.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2beff44d855573d9ca4e2998568c2d26649375e70e143d2a84a4cdd48febf10a
MD5 f9aca4c9ef7b9efa8722e8f9740fe038
BLAKE2b-256 c00e0db634c287837b500ae0d4ec53061e34b6abdbddaea12473289bc5810b0e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 80845ad861d64c1d1d9dde63ac87cca35039d0ccc23be359ef007f3fe21ce9dd
MD5 7ba50b80ded19f29f41f7c84f92324e1
BLAKE2b-256 206f61b17c05e5a1f852fbf09f0ce411ae22934525e07d8703fb36fa1e6f9bfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 fb2ab59f76f0ef28a3af11fd045f8f1c52a1fb5bdf7d02680d73df031ef424ae
MD5 dc7382bbb2d60511a2ba0f0606642086
BLAKE2b-256 935ce77277249153ba566ae8cd7e63ca4c1256e6730f41cdc8eff4af9816428a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0004e4278264ff91c40e47bcee0877c48091cbe3322b37f96ca714cac417ddc0
MD5 8e901f68343770eb6a5af8112b358aaf
BLAKE2b-256 650842faac6b347b7f96cc81331aee5983bb8e7e98e31b621e36f7c0d7d4f0de

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6cf677d55340d47eec1f755bc4949baf372d721e54a70fbbc52b36323844eb0f
MD5 639583bb5f7ad4b3aee85ca674127d5e
BLAKE2b-256 3c6153bb2395ad1f47758f4c09ff129549a938a8af8cca9680c2e32d556a3d85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e6a82936c1b4c9d3d6dfbe8625072e85fc8792300aa5cacdcd83f3d96130cc53
MD5 fc5b2bd1b6d12af8f5c262f137fe2120
BLAKE2b-256 4d72383e86a21954df80e291b6c091e13d6d01cba7376d6d3de4422cf56eb7e6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 734f0a0868790df66dc9f786def21b3de09b7fbb9075204447d5ff4c00c9d9d8
MD5 bfb93d5767e2d390f42bedabec370c8c
BLAKE2b-256 8d1aeda4deafa35439f1256d1291a088e59ae51a00b82b9c2ef13410ad240141

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c40bfa1eb6f926dbd7c53b94e3ef390aecf438b21d79d7c60d4c0c417c1eea3c
MD5 91a89f829a8d547904fed7a16ec2ef59
BLAKE2b-256 238b5b98ecab3665e096be4e3829677e91b44da1d45f53a388925323c1307b1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.102.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9e4789cd68cfccbe708c612d9040dd705b676132fdba5c9422b4552e2569dbb7
MD5 0cf646fe0669f50ec311aa2eda13daf1
BLAKE2b-256 24dce2399ef35d0bb975188d941631048d508b1ff1a67024e5acc9dbdf8982ef

See more details on using hashes here.

Provenance

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