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.69b4-cp313-cp313-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.69b4-cp313-cp313-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.69b4-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.69b4-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.69b4-cp312-cp312-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.69b4-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.69b4-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.69b4-cp311-cp311-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.69b4-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_inference_binary-0.6.69b4-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 11b14e337564cfaa55617244f220e49a8e1fb8222c0c81096dd6b4bde2efcb80
MD5 22243924f6550797d703b5d33698587d
BLAKE2b-256 c3ec348a4ac8f0e3ab30c4e14e043c5b7c5a013e6fd1bda571d36c8db5aba939

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b4-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 110a8dcaf2f6fbb5a6ade3c323d9baf3acc4bd4a251c33f3994c8de6cffe91dc
MD5 6a11f1b808368f4f9c90d3e012003e68
BLAKE2b-256 722085cfa2cb6e70ee7823c3d3fa831c7f588adb29c16921f42bc2e2572efda7

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.69b4-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b4-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8d667fda3df282dd404ff821fa4330c331179708ecadd2f44bd6c14cb682532b
MD5 a32e8341cbad0d18f5e69ea2285b2f76
BLAKE2b-256 4dbbd2ebc242184dedc54451a0a037f1652a034672985251f54a9f2089a2bc61

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8aa5f2de95e48105ff77490b717b9045668c23da9c78ff151f3bcf7e4f1618b3
MD5 ed6e50a0a3b3083247205871810da9a1
BLAKE2b-256 7ec0888c48e063dd7b73891a824ed64103238f4e72e015fc0098c8778892f137

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b4-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 66fa6021d088d8bc18b6d35c0bdd9787f1cbaa603d6a8fed0473089b739a9834
MD5 ea06526b8c37a5bf1af3ed9789f4336a
BLAKE2b-256 3c16ac4f3962f7c29c7325558c23f7b598ce5e61e06b186744d383fc929daf1d

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.69b4-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b4-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9247ac838f8603659741ccf566436e4fb78f18379f0e2836f1d9c71484c2634b
MD5 0f61b2dff73b0447053f128ca9c866be
BLAKE2b-256 92a45f5e8e0d12c40a43eda102d15cac830e7c4d54fea7463c685bc31747513b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f7f69aa1009a7311d26cc94a6055fd850df44390425ca9501430f63526251330
MD5 81a83436a0238bc82c731cdcc5664fee
BLAKE2b-256 72f26a309434896cfb9fcbec5a76b448f04e96af10d1d47da54070e8a4d44cfe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b4-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a33c38c87b8520ec4bcc7c210c125bc66fd831ebadfb90b6113e4f20113fc5b2
MD5 eec1ec808d323294cafdbff4b9e7d073
BLAKE2b-256 a49c8c024a38b96f1b5de2de02ce7ae0d9429c1a49973bca89ab30653bfa46fe

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.69b4-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b4-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8b456ccb8fa69c1b24a5d787ef7db0583613306eda1876c299b02aec30dc9ff5
MD5 a27e34ffe1a1e149751af57afd3116ad
BLAKE2b-256 b82d98d446894cb27eba3690a1db63a07aba2a214e035ea4d676ecd09b15deda

See more details on using hashes here.

Provenance

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