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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.119-cp313-cp313-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.119-cp313-cp313-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.119-cp312-cp312-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.119-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.119-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.119-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8cbe344743b6b7b4ce347e3213465a711cb3e0c1208a9547724375d097f35aa9
MD5 5910f39fd726a50a66d91de41a25fe4a
BLAKE2b-256 f58b6f78e43d8686313128b34f98534992865c1bcc73c8153bb5cad331d21d42

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 89d499a212d336c0c73e07a4c9bcfdb07ded2b53de385b3c5df1a1879aebf8be
MD5 44f5a388075e863d69201bc85026ab18
BLAKE2b-256 6ff39204b100b5bd953dca9ea054e4685de2086213ad28c0c7dfd310ca99cac1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 43b0f1709c43b82ff461bc5df3a08b18a56c87e4ab8039810a0906db2c2f94b6
MD5 f24bdffe94d8c57a86de5b68206d2b7f
BLAKE2b-256 16f7a108383ce273811ed45bd439c3bf53e336eff5a9764ad51c8ebde1aa455d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a4e778f0c2e210b7a67cda4ed67c43186b57c118617e8792e571e2c79aedaec1
MD5 f611f5df08c45e85cc86732a3568c61f
BLAKE2b-256 e3d83dc584f1d0fcad8cfb05e408f9912418d36785c0a7bf1d969a1f260c189f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9e13afcc84959953199fc393906b01633bf3dda79dcfc97a0998962a6916feb6
MD5 b8ece0e7013e8918aeedb9a6917ec7b7
BLAKE2b-256 d7d999b54b7c52c09442dae3a19fbee56ace8fbc5f8183be23168ca11fafcab1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bb588c27daf36521cd3c5166d1aebca7ddf2327e679309e9ae3c00380adbbc69
MD5 a0cd72ecb193447a28537ec8b5ef68f6
BLAKE2b-256 a6181708e693634dac570caae2494a64919eb22bcf852296b183576738032934

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1709d2781b28af8d1e644e1ad9fb0b98e1ab6eadf34b76c3b391bfa491a4a1b8
MD5 017f0b68ece6920be35446c4217e6cad
BLAKE2b-256 311306b796249eb26a17b50d0f27e91a779f5e8d2c7e3f837b2a59b5c0fa22ef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f25b505103dcf5c45be9b5c110b5a9ec7456d5b118b95637a6a6b0306ec36b60
MD5 945f9ef487869f15d1e0140d712ae1b2
BLAKE2b-256 0dff73832cbd3fbce2e958ae18d28e871aba0e89aae937672178bec5afe85bbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e9ecc47dcd887477b15fb58b3c762979f0766a144c36713b18701e823882792d
MD5 973815d3598ace833739caa4e3c3876b
BLAKE2b-256 eed43fa8bbe96f7c9c8c33ac8182b89042c6acf75e813790371a51749d7f3680

See more details on using hashes here.

Provenance

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