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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.87-cp313-cp313-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.87-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.87-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.87-cp312-cp312-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.87-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.87-cp311-cp311-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.87-cp311-cp311-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.87-cp311-cp311-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.87-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b1e22fe3fe4162d65e85ed90b925464880bfb9766178a267dc443602975d76d3
MD5 2b332b82bdf028080937a8a5302930b0
BLAKE2b-256 d3594fca23b6df0a1365a05629d51b066f48f7e01c06e50e39e494dcba4d29a0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.87-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8ae90d1e4250c5fa1b129e1a1b661838244b2fe41734e8394693f9a13a682787
MD5 0621d21bd591be8befadc6989fda07fc
BLAKE2b-256 a1429c6ff59a42759cf9071747b3ee099c6cef36318609d11e2ff5f6eb35620b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.87-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c0ebda3be5dcf02ea4d2779c411bdce1f3b78510f04cb713bba32bf4c031a36f
MD5 caba60520e4433508c7b4737d8610ef5
BLAKE2b-256 a785bae26d6fb99c5d4cc47a56bd29934d46e15e46e1cddc56bb78492cfbf0d8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.87-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5c62852782198d644dda61e1abd948189437c9316580421c32f21bc872555d51
MD5 f29a504c00edac15773eebe36bf03b6e
BLAKE2b-256 acd79cd9a44b4ff7343066b27b111e8573399519f7e3f8fd0f643dee1912ab1a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.87-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a30bb04d4627585f832f50f00125cd7051750f4f379eda1fe8e6b53b0e32b1ef
MD5 5c444cb58c9af5934bf0b549b94af4cb
BLAKE2b-256 f261dd951d876cdfef6c9ba441d6b276404f38bf2d1950dd43f03d64a9132b5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.87-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9b7b3dbab78513bfd0b9dc2dec03ecddb6d5f4f653844c44686757bd7854760e
MD5 e7cc445e5fd22b324db4a20501e33ff8
BLAKE2b-256 02622c00a3e532d3005679b89535e8653e58d708542e29574172636213871fd7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.87-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9296cc699ec3c6be1732e22c26acfbe512351bf702f2cb39ba97c8d8be2b2d17
MD5 4713810847121d03a7e5fb042f21aa11
BLAKE2b-256 612321d6e1178fe82a525fce08b7e8565977abc85424aa6fbe3c1d184a792a30

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.87-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3eae368d07139c20cbfeb724eb4be88099c3e1ea7d6947231a746f5def98f7a3
MD5 1eff011c8106b550eef5efd50e2677b9
BLAKE2b-256 9c1d0345ad9ec985fe7ca8b850d6b2ac6396bc0c904db6240cdb80644a882a4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.87-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1df6a3c5183aebf50ddd7ab081604d39cf872de8982f6bb7e8f702e12bfcb2d2
MD5 acfe29cdbfdf9fe7dc8cecb495339a36
BLAKE2b-256 55bd5b8b3c9b1499f5f1d8d81583bc3f44c84a8c8036b8e5f3df121269d7f2de

See more details on using hashes here.

Provenance

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