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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.99-cp313-cp313-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.99-cp313-cp313-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.99-cp312-cp312-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.99-cp312-cp312-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.99-cp311-cp311-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.99-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.99-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.99-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7050f57ab2d6beb9ca11ba12b34e1886005c9eeda5592a9fca6e9837e1513a2a
MD5 b1615912a7c40e27baac359ec5f65348
BLAKE2b-256 3263902baef0735145392ae2b6e5f36849a003035be2a0ad68c52e72afb430e9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.99-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 34787b48542a65dec97d871a37cb92028716b34b9b57b31af5247e324c951e01
MD5 82935cbe6209c26ed5f9e6535cf128a8
BLAKE2b-256 adc66b7cc2852bbee4aa1bcb832347df01401dcea8c9a0ec592928f7b2438c26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.99-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f009e0febab57a4fd8acf9e54e8df50d1eb4585f9c890cd7bd1d42cb43039698
MD5 e6f3f7a57a7f4ad16c2433930bc8fa6e
BLAKE2b-256 b8237711f67fc8d9eaa53ff2b107ffecb31c193301696104cc679124527d6278

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.99-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 999c652e16f68ddb7013885779ba5f4dd505154c1616ea4440f7aa2922f43ddd
MD5 7cf936c75ed8bddd5ea25992aed12619
BLAKE2b-256 87348f50e74d08310a67119812517ed14947334208dadf78d74056f32b8b8980

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.99-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0a093adc86d7b2eb19b1d425961b48a64e32aaa548d4f982effa730afc50bf8f
MD5 3a2f21014f757f6e4402511d9c56afd3
BLAKE2b-256 e609353c2b62960a0607da7f9b2fef56f48cf55103c8958b0ebcc0530da66519

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.99-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6c0e2abc4dc0347279ebb0441d3050c00fd9bc29d84b4c737865e297fb47f054
MD5 b39aa61c865da0983fe27f3795f0d828
BLAKE2b-256 5c0758a5afe598ddf0793925784f786adea3a2ab6e3c048f7974a5f08cba9463

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.99-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c9ee1d58cb5793accacfea3b05a977d7d12d235eb4fd37d1a4f5306621d5dead
MD5 4a698dafb82a611dca547fa3fa7ee89e
BLAKE2b-256 12d34395951971a24fedb327332d3a1a03a536483a7965baff6331dde516657b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.99-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e834d3e3dbd9aa6aedd6bdfbd4dd16acbc232406d1d514b2d4cb1f894aff9ee6
MD5 183dd1855d911a8291bcc89c3a169fc0
BLAKE2b-256 e80261d54dd8aac9e7b349a6ce291c6f5f063a7f94507a352c5440d510ede6fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.99-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 695d7f704b7b6034605e6fee960098bf8ed58b57ae4c46e93ae3cfe1bc3c1374
MD5 60f16c816858bdadac42179efff07488
BLAKE2b-256 583645a6fe1cf5d7bbe5cbff1e9a40293de5ba3a133e3206ecdecb0385a32f8e

See more details on using hashes here.

Provenance

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