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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.161-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.161-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.161-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.161-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.161-cp311-cp311-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.161-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.161-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.161-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 52cb96089353a162c5a1a06815cd56037a5db218295d327a7cd4975eac7a323b
MD5 d115f8d7440de0e4af95a67b2b54b733
BLAKE2b-256 cb6b7310e3b6f5b648cb684173a34e7946ee37c321c52f573135e48fc281b8bd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.161-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f2c48d390fcc987edd49e4daa0da154fd2931c4ff9ddf535cc907d68d530ae61
MD5 f4152876dff5f7be65278056698ad286
BLAKE2b-256 dfce73503a1761d1f2c41f5307df432010de865f6e7eea4492b0d03761b2de70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.161-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ca128a04c4c0d14ac0e81fc5fdfdc45ac80636e71986571e88676d3338e9b189
MD5 54e5c3190db87178b468666d991936e0
BLAKE2b-256 998696eef3f5910b2676546e8d3ef5b5ffa344a639cc566c6eb43d161d8d3999

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.161-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 483a831d2af5be051d26ecde71eae63f37bbb8555b9cdc5704f1d9a3dd8e843e
MD5 9ed8e266f6cc1d92a50a9459fb0c09e8
BLAKE2b-256 46829cc285c670350d715bbba48e12f062627af0479ff3605260ec7524c6fdf7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.161-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 dc807b43c984a7ad4bf329c8f3d9ec5904ad1885ad238d71f9a76a4889175d08
MD5 ab0c447d8db6627179888eace07ff40c
BLAKE2b-256 f4e08b2c45f9e01be0f7ff4e98959389d3079b10c427287dbc8f96d3a98027c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.161-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ce4b2571e363b1679f6e5bedd29fc55385d8f0f0231916bce459a99cf85f30f5
MD5 141335a2420d3be7b97b40c1e1f876cf
BLAKE2b-256 3dd9f11f57b1c75bb1ba2d851215be67b940866fc995805f2ab060b493a554d6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.161-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 396a9444eee7b2f387ef46ef99b2296f7f472fb7e6a7a93cbc5993dc94250324
MD5 f383b2c790bb8179867a9db16cfc3aa7
BLAKE2b-256 d36cb090c5f428d6ce7ca74abd9930a2542cf497aa855044703cfe658cbc64f8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.161-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0dde36962d2d7079794f3ef006b6c79403b7a6f00353c9b3aa8da1470d03b6dc
MD5 f917cc5969b9e3d49f87b82d110d0416
BLAKE2b-256 e811a535de6769fcdadecb3590313b71c13fa2f69f8af677ea0b064f600bcd22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.161-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 92ae80ccee759385418f49d86787ffd194009e768603d729a9d465e1a820928a
MD5 9441e2b1bac84135b2c4083bcdf03677
BLAKE2b-256 bf7202500981630699bb410cf836df158104e2af060e0fc3315e2508b005f783

See more details on using hashes here.

Provenance

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