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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.92-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.92-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.92-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.92-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.92-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.92-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.92-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.92-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2534ed1335a9b3530d5e757f3ea025aa8a54a6540f27ff1520ccdce378dad145
MD5 242757b64fa6803a156a0436773386cb
BLAKE2b-256 2747f18bc153bd6e8b65f306b680afb8ca946e5cd4b12646a2b6e28446bd2c79

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.92-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 18ae75b6768351ff52ad51c4290da428923af7f8ef28d6380b71aeecc022acc1
MD5 4efbc50e8a4fa538a14fd68ef0af10be
BLAKE2b-256 6e3f1d0e2b6e019a5c37ffddb73395241d6d7eb2fa2f30adfbc2b8818110954e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.92-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bc4174f0843ad5d88fcdbb3b11ef8e70d2236e2d078c53a1f1955dedbb4c1156
MD5 540822fe8a8ac66c1f3a4413b97b0ad2
BLAKE2b-256 f664b4ba48e1d239d8b77b962b4699c3ad3650bcbcf0b7589d4a7684349f6dca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.92-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d37a13cba286f4b7d5ba2aa049e503c1ce7fd0aef4b8f42ba4bc88613ca5cd4a
MD5 53ec5e0453e3552365913c2809ced454
BLAKE2b-256 8bad170b2037abc78b4179073f01fc2f656fa9339ee4d8fc2fc465399f17f172

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.92-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3671a67c4bc45b47f0d926fbc8394cf87a5bcface8a5b93188dc10ec45fc0598
MD5 5f195503df9881f36fa78c5667aa1f70
BLAKE2b-256 739a94264fb2974ab42aeaa516d2f370a20886896066f45799b9fa8f9daa3542

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.92-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 31546fb8b9a66fd0a2f26187b6a6705f83330a877faef75a7c9c2dfdc0937181
MD5 f5faeb4e1b97976fd82ec492fdffbf09
BLAKE2b-256 61259229b55edef0b7ad9bae417c5d61d212af21130675fbd8296734beb6ef0a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.92-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e21d3e7d181921f1f346e332a066ca822ab80a0f6beeb3edff494a4c09c0eee2
MD5 98bc61911a28202f709ac911fb440a73
BLAKE2b-256 bf2ef35ab3fe6f868362da33e11409e868e48010ca09ea7b2cadf7ef617ae8d4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.92-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 999070e0e27cd734d312c39a252a9478206ecfe3962feef62c0d5b1ce70749d6
MD5 dafbec6802aa2c1e68523a029e462cbf
BLAKE2b-256 2388d2225e8de4c1df30151c6c44014586f225fbad6d184c08fd2471a9fea9e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.92-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e6f92e0eecc767e2bba0e26536b77bc3cb6e51f2b22497385258f5b253e95b7e
MD5 d8b4e088228436924865fa77489d98fa
BLAKE2b-256 69cb4333034db494662d5eb3969ca190b9f893d42bd12f1405fe26282927dda5

See more details on using hashes here.

Provenance

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