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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.129-cp313-cp313-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.129-cp313-cp313-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.129-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.129-cp312-cp312-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.129-cp312-cp312-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.129-cp311-cp311-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.129-cp311-cp311-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.129-cp311-cp311-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.129-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 62e46116739c39de7d96a61cbf8c0bb436ea343f00d26b91bfd93aa7926bf9d0
MD5 b71f648da4aafb565e0a74dbf866ad34
BLAKE2b-256 35824af06a537f8c0809c27aca3bbf2ff0c283938c5d05f48c3c5436e4124e49

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.129-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 24e4aa0b94be71059e3ba43d652563402e41712c91a71d711c1995518396783c
MD5 e5dc9c0e587c3247e1fa27283e4ad892
BLAKE2b-256 5669e8f6ff1fd97e7725c3e0347cb1847f4d07f5ac60778099c57ac903382f0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.129-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ba594fd1fef4282a30fc1a78d2c83b4749a67cc97e1da3788d4c91c3f14179e1
MD5 93346ac973d6b7bb4ca250c4189004d5
BLAKE2b-256 cbfd8eb06ba0991ddc0cf41692f0121bce0822dccf5afe1702fdaf3043adb0d5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.129-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9f8a7d049bd7d8386f03e81a474d69694ddefb8294c5930f7b543b20b242447a
MD5 f1d77a7342a119360607093e7641c80c
BLAKE2b-256 6d887558914dc685e8b2cfa7f6fb0ac3fa236eb340bda5cb5eee8367092f41a8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.129-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0e47417b6882ba1d865e26b1bcbe06930123daca6132fa6897dc0352b6b700f4
MD5 7f73462b0a608a501a092bf6f6d2d3e4
BLAKE2b-256 8e3ecf0a6d20f02800368ef05e95ab4a891f4105d6becabc04a5e88a6103b1ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.129-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1a76d520b89de9376a65c1d89fb4a0be8f3f4cb0e5dd07fd7ee80820393f2789
MD5 36ca5e0678efbad4d02182cfd23079d9
BLAKE2b-256 d321c35c124509243340048ddceffc3181f3852423a1b4347f21e40eac6f2852

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.129-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a245747390c645ca9c40f02e686eb79da0367170989a0aa410a5fc874de27a72
MD5 9c7dfab6b1263afc108b3eedfb9d2348
BLAKE2b-256 3d495b8eb780613e13e9d7beaead12fd2d2498ab498b03817acc1ce8ff3c1568

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.129-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 871c46c8e1fec161544ac59666e15353ecdf14992328f60008d578a3229e3464
MD5 1c5e4ba0c0cb5a0ab74c1f6b0da1b3b0
BLAKE2b-256 67273308b588dfe9ee8ad3c188d8b1c899d54c67c388e6ef6149c091183d1670

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.129-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 49ec0669b2f6e7fa6333557accfc387e003cdece7d158a5cf896383163adacb1
MD5 31e2361970ded6172ea5567889442e4f
BLAKE2b-256 bc71ac076fbcb5ae7800020f81be495fa74ce4d0c37be3cfa0c7dd777a2ec88c

See more details on using hashes here.

Provenance

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