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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.41-cp313-cp313-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.41-cp313-cp313-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.41-cp312-cp312-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.41-cp312-cp312-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.41-cp311-cp311-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.41-cp311-cp311-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_inference_binary-0.6.41-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.41-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ef6800237c847d4d2a6b43380b3e79704b5080b7d7a7d75ff3dd3b22e3a334b4
MD5 bacb7595d1acf6e0696ff7e006563645
BLAKE2b-256 5906a070a62990dfb055a67013cbbc7469bc7bff7203133e117aed5310b52b23

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.41-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 11f3f333d78d5e74d2ecc04560940a72fefd190df356791cd5a72a94fde3105d
MD5 c4ef1b1c051060eb96be91f32028a3cd
BLAKE2b-256 68c01e01f827777bf112500eff7c89a444c155e6b28d35bb07a34f883580a070

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.41-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 59ccb46422fe724f350f44886ced60a9cc628e3cdea8c59229a5d115fa033894
MD5 88638da0e7788385d92bf8b7f89967b8
BLAKE2b-256 4ff7b1a579f7a24391b424bd10af3f42a4edf3d3d1cce60bac2db8dafed985ed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.41-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dee68c3b96799ea0f1340c255a9e6d1085f680ff2bc6e80a39eaac86a544707e
MD5 b225f611464271aef854c6d0f1cc5143
BLAKE2b-256 dc9c9deeccca8202768194030c894402dc1e1df534c90951f0b25097003eb1cd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.41-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c6b89ec9bdc95cff68b6478d2843f47f4201c5966f72c02461194da8a234d51d
MD5 06be18fd870d93c1a566f65de8ee20b6
BLAKE2b-256 365b83fb5f0ab1e4084d3d1e958cdec3c5004e819849d3ae1d446e062a7b6acd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.41-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4afde161bea4a420e84c9297f18d54e7438f7880732221de439deeeac3940359
MD5 7ddca7a20867a45213dcf03e9292c9d9
BLAKE2b-256 f5894eac65f8536b73191b1ace6718cebc08c7e5d7ff649b9102a06d3f458aad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.41-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 95488b0716078a81119434c15f71a15d32563ac3418618db1bddb64c7fbe66d0
MD5 69edef7c1017a957fdb0063423746790
BLAKE2b-256 aeaac985b00a161242dbaf332fd04687e12efa58a719014cecf925799ea530b7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.41-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c59b903c96bfdac9b1a10974f55db6f037219f67d5f69b32859fe6466c59e872
MD5 7a4f5652e5276a04adefbac068c446f4
BLAKE2b-256 e4b3b0a21854c59988e4169cceac80f08f3ec7d3d0fbc1dcff8749120116afbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.41-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 487a353f4e77ecfcd36155d3a1a090f9e7b6c638304eb631ff967a816b4b9def
MD5 a5f6dd1f7760a0ebb6337138de6d741e
BLAKE2b-256 551e51b1f2bd18e64fcbbae556b02fa9a47d6f830e4989000e087a1b30bc2c62

See more details on using hashes here.

Provenance

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