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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.112-cp313-cp313-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.112-cp313-cp313-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.112-cp312-cp312-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.112-cp312-cp312-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.112-cp311-cp311-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.112-cp311-cp311-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.112-cp311-cp311-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.112-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 90044ef61ffaecf47028e094f36a3339513e51012ad2bd9bee13b8b77101ebb2
MD5 dd81f20dbd412b6265c75205e8563124
BLAKE2b-256 5bc69c15f3e46d72a08bd31ccd17074c6e54be40a7725e6389c6fdeb10eddb61

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.112-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 42a23e27c920fc3228b1a19debd2acbbbcf5add121526dbb0e6590f1ed56f742
MD5 cd1192de3da59cf4f67d9200b63364f1
BLAKE2b-256 c3c8b393b369775510f812cd877982319751e74e522c7285500d7b72caa61b61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.112-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ed897c7e9d929654455c29972a9b7977bd856697b5a3e45822125b6a5dab4066
MD5 7b8fb78c1d1757a50cde458e1edab1bf
BLAKE2b-256 c271887a6c55ada598ecbc7e3a4e37b8549fe75ce383ee72b01ab32f1d4153ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.112-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 198539c7462c96903aeb3aa379a8c5dd0e98d9b33a1a81221879c2c9bfcf6fc3
MD5 4dcefbd5ca797bf6b66fc7ba434f30f1
BLAKE2b-256 41c381405e43a9ed69d2cbe0c94d6cb7235081aeb743a9874a718e22ca45d4de

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.112-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4010f9bcd957913a99a8997dd0f0fba6dc3351409760aef36dd704a605b22ed9
MD5 623c91e7ceaf2dc274301b440ccf119d
BLAKE2b-256 ef0985acaadb7d6ff7e3bb94d4ca8f63c8868d3b71e916e2f27943f5961d2500

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.112-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b2ef79797224bdc7b3a6ea8df9a302d590d953ba239b3ff3dd4d33f315169f81
MD5 a8cb58d001841c972124eca60581df49
BLAKE2b-256 5f580f16a9e98910607738b7964a6ea273b54cdb5c0922d46f55f4a6928a747e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.112-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 19035d860f531775895ca6c9e0ba98cfc6f6cabedace32e4b2699985fd5c18b0
MD5 20c9eab8f00522d39b8813c68e84fe13
BLAKE2b-256 b0f4fe1ac193f5dc6a3dd529288bba361977cade18ecf5fffe1899db407b59a3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.112-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 01dd4f755b3717daa1dd6b8c8b8fa3053165828b0154edb278e7ec5478766014
MD5 4786e8e8d41140d921436812c66e4fc6
BLAKE2b-256 a6ccb4232a1ae5c41a219f07577c242d7441e351065fd31bd4a93e42e73dc622

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.112-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 42e74fd5036d0c79195860958ab8a69ffb19d800842731d05c8defa8f0ab22d6
MD5 cf9455bcb4455817fc7e5b333600c218
BLAKE2b-256 ce471f4d4542f6a7e486fa2fe285cf4eaccec99af0dd67abf520c327a57091c1

See more details on using hashes here.

Provenance

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