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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.152-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.152-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.152-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.152-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.152-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.152-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 74da8a18da8fd575dc51d1ed9cb319e9fb871e2aee82d6697be4c85306154de4
MD5 429af990f6967665634a1bd77e4a2815
BLAKE2b-256 a6718c94c4752b56a9a4a8cd9dad89a41b48060e48b286ee7e0097c687ce4e5b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 45b3e9ac20510fffe1ed64c477ca548daa9abb07c7fa2a77c956ad979d59f8d0
MD5 f1d9e62b0b35586eb70cdf223d3f3bc2
BLAKE2b-256 6c97ef9a40fb327cc24b7bff74e91186eb748243327648698c2839a43608c94b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9f0bd891092a2f954f3ceb52802f00cf9f22a5e36e4456f1d85f1db17c642e87
MD5 948b9410e1b2c5a8f46306bb64c4a5ad
BLAKE2b-256 66d95e2b274284c87c52d51528c2c9c9437c88f7ca56e172498341a54f4277e7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0e645477ac7fd3c89b1fc729053cbc918491f68758d6128afc8a39c11ed5f58a
MD5 cc2bebe41a3d54821cb5f2868fbfa3e4
BLAKE2b-256 513daf4bc52b631a1537a73f0e0ad64fc8addb4fdb5835edcc7906e2ca81bc0d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 56475b27cee11a2553560a081240f7b800e2812896604fa6798604c13bf256cf
MD5 e1faad8b4b7343db93a1cf2920f91ca9
BLAKE2b-256 ce6af8b8473713780856ca3faf93e627deaa89e74d1bbf57835822172ac962db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 39456d72e453124e49d77c11d0cb1c1d3087e4f22bca8b1de991395bde4abdf4
MD5 28fa055e99837f4cedb7ffdf33ae7176
BLAKE2b-256 6963b22856ae958cd960979c0dd7b134127d61c4ca3e4e1f6640c342a6e142c5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9346622a060368fdf683c6ab83cbf307f319a8616efa3ab97e8d9af279e8ad81
MD5 6a043bd5c8566f4f1d56eb07eab18467
BLAKE2b-256 9b1e8ffea8243ab398f946768e6edcf933e3cea0badace07777e41896967a607

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 292ebbd216a46790959c6ac67af331c37cc293d2b10753a8d2e0104999d5e877
MD5 0e1aa4b67859af8e56b7e2cd494ef224
BLAKE2b-256 a4138f5b07f59d6b5874c54fc35cd1fd0276dcf81ee0dacf6c5c58d5c35a96b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e82ecd85ca60ff5f173f704838268863bd5b56004d1b1697be843f23961f4930
MD5 1ca6d7cf1d85947337a1b6d7fd6207a7
BLAKE2b-256 1735cb7e7d90fc216ffb049f9df80c6e8aa97882755f9519105852dc673a15fe

See more details on using hashes here.

Provenance

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