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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.56-cp313-cp313-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.56-cp313-cp313-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.56-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.56-cp312-cp312-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.56-cp312-cp312-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.56-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.56-cp311-cp311-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.56-cp311-cp311-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.56-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 330dbaf5f5daa8322af41a4ce68728c4f43ac144cdc3d18fce8bfcc5763e006f
MD5 767f97a4ca6b3da2819e83f0a7d84f5a
BLAKE2b-256 8f79c2e265bdea43150614a51065c6ea6d450d38dd50ee1f269735cd05b22da3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.56-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c5fb10a67e5c6710e3aaee87c7e484699ce25745bad18962cd446f35413ad2d1
MD5 6d6a6bba883b373c9a600767b6a2109a
BLAKE2b-256 c85bc6b8de27c55f40f466e897b9f40bdf2634e0dc3221f7252f3b5a96098841

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.56-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 072ec23d73cc71a9165dc6f521a794a4b634affda7695afbf59f47c89b509523
MD5 239e8a8a7c09cdce4b909687534b333c
BLAKE2b-256 cfd4857deea8d9498a498f1c043ad9666d25deafc38e64e7429f124470f4d740

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.56-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7d7980c5abe3e8713608784d4999326ba84b2bd6292eefa67aa19d7142e041f8
MD5 e8cd24ccbecc50e9115853e62cf31c35
BLAKE2b-256 749dc9cf83c7e1f18341ad81a9c95a9b5e45dd925b17327a7611042b57fe24a2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.56-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 96cf359831a7457bc285f6ca009bd50b0d4462af4deef8da46f327404916d05b
MD5 eb4f80415406c3eb3ee62a4952daca53
BLAKE2b-256 ed3e3df35390ef56007d1e0a05f5d11648a4b8119a8b96caa584feebde3aca0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.56-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a22349a1210a69b7a62a268ae87d8e0e1ab419dff5065c8941c1d50e4f1ecf00
MD5 7de3cdbe73c9f38cdc683f5507b3fc68
BLAKE2b-256 b83499021033440e2d1b529ef9f90f6134d4381df6e209cd2d37ccb26b7cbaf6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.56-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5649eb2dcb9764721b8a47796aed2a6e8d4c9fc5ad4e7a244548cbe10e7fd250
MD5 7ed0fc54ac6e001286738994e6cbb773
BLAKE2b-256 3a4ecc3d7530b43d5bfeac538d75411bb9077bb0fb7ebaa32598daef43de5488

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.56-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 367febf94a283d709151877df889c59ec763d3266f469dde0a7dbe3dd11fa1b3
MD5 e5ee18766cb303c70c40a937edc5d056
BLAKE2b-256 9b1f6b870676d4ec45ead22353142e3a6a402a6802453b83b90f95a6c4de2be7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.56-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ab843327d8396f4693da37595f329fbd4cd6591c9c217619b004dba396d2550b
MD5 bd3e039847b0ef79f8546d74d3af2884
BLAKE2b-256 4bbad7fd2a827b4b76088f810e4b56f0e421c86004a1d2e07d1f6e1d68d2f43c

See more details on using hashes here.

Provenance

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