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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.149.post1-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.149.post1-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.149.post1-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.149.post1-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.149.post1-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.149.post1-cp311-cp311-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.149.post1-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.149.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 97d43663f25443d2badc1e5b69eb6d55a8b3df0bcabc335b9c3afbe3222178c1
MD5 e373805ada03dda13facdd50bc533381
BLAKE2b-256 6874bcb1ff2274db0a12884888f837d4645a734782dc6f1846354ad4bcc9117a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3d133656dc6acf84b296334731336f33f2b6102fedc2ec8b62743d8906d34849
MD5 c39e4fee59090813940218d37cea98bc
BLAKE2b-256 850b4e015041d6fc4b0bcb0f78b3474336d366d1835850135f0b05a9c09d3b21

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.149.post1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ffd8b164ccb54402dfbf003cae0f32f0435f81e6fdd9db1e1ff32e91ad3ad23c
MD5 35ca1dfbe3ce1bb27972e9faac532b1b
BLAKE2b-256 36e8a15dd7a9673d4eff04cde6bf5ad7e1c7b7d23edaa30943e0cdea899c6602

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d27d1519c8c64a4f577dc099d51b35521dff7712e8f49b7336f4477ebe6127f8
MD5 bfcf7b6049d4282175d4b1f097c09dde
BLAKE2b-256 e54c744af872c9f29fe7cf8b9e93b5856c4d43d5d12015607f8888985d195371

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5784da2b3c28d89dad3891f217e643d31ca103ae4335e842aaace349917030a3
MD5 123d2aa29ec4b8c7425331b388b04a3b
BLAKE2b-256 1d6e491fec5a4ea4967ce0869c3487d0d2d63aab73e0bed1154e04b87794b263

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.149.post1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6265decb6c32e7c0ba5fff0fd2cdc11205a8af165bcaed2606f2db381544d896
MD5 b8a0d7a86d6117dec2d095219a43901e
BLAKE2b-256 0e89f20d9c2012c5c407f36a7ed669dbec245a555750f297cad184fa72095c0e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 07d7e144359f87cce8ca0aad63f473ecc355cda90c88eed1a5f65f2ad658e7b6
MD5 ac4ca17bec4aafd065c89aeb016befa6
BLAKE2b-256 ac2baa401b9702c4aff8c989e6da08fd7d4e50542880c8a61bd756a85fa677c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 aab922848228781eba04d5d8a377e4d79c6f13823112d4a701f1848edf7aa18d
MD5 ce462c95aa0f14e41f4480bdab4bb247
BLAKE2b-256 eecb208b990aaa75e4bc9b4262759d676896052eabb8dab6d62d819ec5241b7b

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.149.post1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d39414d49af2a5e3fd37d0ba4dba8a1d3f8fe079c22100f6703da7df22b47240
MD5 582fafdc3c738fa9c2232b5ccfdb0419
BLAKE2b-256 f0a42aa731e7779f3ebe104818ef86ed894a43e6cbebec1a768e6ae83ce4aa0e

See more details on using hashes here.

Provenance

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