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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.32-cp313-cp313-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.32-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.32-cp312-cp312-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.32-cp312-cp312-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.32-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.32-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.32-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.6.32-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.6.32-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.32-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0d0ca134f40d11c9af05930fe6e372b728d47b49d67d0a8ac860cf26a4d9bbc9
MD5 5f36da8500d32e8f50cc533e07786453
BLAKE2b-256 58897a833d6680f06a1952310a5dd0d44f91cb180bfe4a1b96fd25a99e0de812

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.32-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 20f56f60a4f75c22b9193bfaecac21a9de8511c7e30d6870d573c176999094b7
MD5 c84da2c134081ce52274763a04e9d0cb
BLAKE2b-256 468dd433b51c1ac9d8f72b6cfd7da21edd8e1d09da48edc9e382ea596186df18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.32-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b20670b84e7d065f57a391b8980b99daae9fcd213ac060723d258aeaedec5b55
MD5 d9b90eeab9de983a29c32fcee6f84d4a
BLAKE2b-256 a42ec56f25482194cbca487ae3e74dd7b2ba74f3b25d830d29113ec49d8f29db

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.32-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a11880ebcf51736575bd1439a44960f6013cbca444a3c45107649e2417c49c0d
MD5 1b220a1bad8b422833fbd65e1936eabd
BLAKE2b-256 aa153489b4a9d8f45b4fa3f2c9298f8554515ee41bb9923830f1f8346f107870

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.32-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ccb16139a125cfe731097df227925d293c3471ce34e920a5178ddd334f9e4dc3
MD5 9c30aa286f0e3a3e5473f2809fa363f0
BLAKE2b-256 72794b4e20b9c53ddb58822625cf9bb49e4255fcd8812b2ca268fd50adfa2436

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.32-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 11e9261a6811bd8372aa17f82c51aaab5ec9d6985d831450ff0d612c20191299
MD5 c2c563388b707599d19873ad14aa984c
BLAKE2b-256 9ddebded599cf753a0c30dad663002f53417b7713ee8731f821f848c6d88c5a9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.32-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e2f32e7a667d81dc5087c4673000a3f4935498eba3369dcdcc17200b7824d255
MD5 182b79d1289a081df0e3f4ad831998c1
BLAKE2b-256 ec357101478d1f7e6d5e2a549cb3f1bf69db64170ada6a516f51f5576f26c861

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.32-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b877d0b4668fa27378d75ef9f8c99b29deb8c9251fd4d1c2531242ce6393750b
MD5 04676f36e24f8676e155530c53c30541
BLAKE2b-256 de069dbb176ea3ec1adf0076e658c83f2dbd4813ccf6b833e0cd6d16097b5d34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.32-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 06d6578bb3dea60db0294831290b928e9a0d62382c8901b0a4700e1bb430b8d0
MD5 6101febe153028c182072895f3b9060a
BLAKE2b-256 bcad801412c2b5ecccdcb7eb66e0585353e22ab3c11a0378682d9c6d8cc339dd

See more details on using hashes here.

Provenance

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