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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.121-cp313-cp313-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.121-cp313-cp313-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.121-cp312-cp312-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.121-cp312-cp312-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.121-cp312-cp312-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.121-cp311-cp311-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.121-cp311-cp311-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.121-cp311-cp311-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.121-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8bb3feb52d9349a028a3ae98bc209cf8df7d0f3807d881ab2aeca7b3a102fed8
MD5 2fe45b57907f3d350dcc02c15f5fa653
BLAKE2b-256 be90e20882b9a5c402e836d40cc92f7a47227ca47a193f3e79822017c2064938

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.121-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d60e7cd31bc553fc086bac91fe152ad32067661090732f029068ef1d4ac6d1f1
MD5 5e4ffce7d051ec17af57a1ef9f7e9208
BLAKE2b-256 46487ebb0311847f28f6d0996f0eb03f8d8ff618b5a79966cc94a0bba8496adf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.121-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 308ff2284d4970ae260d3dbff10cdf7b22690163a353b2dba4a3f52c29e8d2c9
MD5 a42227915a5a95f5975d7b6b40ec04b6
BLAKE2b-256 afe7fffea87bd33d94909ed64f3edc511c624af20f38b8a9c2b4a2759be1652b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.121-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a0df9145ae1d63e512e06664aa8470df514389841ed11ba0a6a9b1aa675215d5
MD5 d8dad9e0a659f61a53beb9dc134d7c5b
BLAKE2b-256 76b22bc72c5625832e4f5ce6e003fb8faf9bde57d61e99fa313087cbe64548e1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.121-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4780e012e8bc8b38dcf1f24d74e37eef3659391851256c4ff4d0fa54afc00047
MD5 13d51d88f58f9621f9092b1f4932c718
BLAKE2b-256 85cd9f7c0c803f3dfceae09961dd9fac5b0672669ee177d161f861907dc4ab64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.121-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 fcf9b92d0b365915b6b90da15c01c6c8da380f3dcae65a4e95f3d731c6477b9c
MD5 30b5284d28d0ba10719154e6005776b3
BLAKE2b-256 9f796575865c6fdd197621032d67e3891369ed36e9e711f83b7845fba070241f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.121-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b63f9ca6006bde4f7dedadc1d7bd900e0594ae37cc7b98e5193b249f365897c4
MD5 8aca951f9e9c5a8e7690b0f59d42ab6a
BLAKE2b-256 95c715962e333956defc11b424acf9c2e39b9d8c59eab5bb9a5354994aa4e430

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.121-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 cc185a7dea41a4052f65850fc471f19415db4bc769dcefd28acdcace559cf7bb
MD5 42866d4df3afb933f6a84cb0fb85f140
BLAKE2b-256 84357f573feb7df620b02a24a4c8ebc99bddd6eabe3a0b0460095e43a9ccd299

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.121-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 19e2ef3a5eb46823475e6d42ce79cea1e45bd9765f7a5448776bde3d597fbfa3
MD5 96a039d3a3e09c8d05dbb804952c11a3
BLAKE2b-256 f4fd684732f0612ef087a4e8cdd40e9892f3e10670bbbf162182b46bd2172f93

See more details on using hashes here.

Provenance

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