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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.21-cp313-cp313-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.21-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.21-cp312-cp312-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.21-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.21-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.21-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.21-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.21-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 dba5bba8aedc3701a8e7b8f128f543c0a46ec90d52ecbacc5445ac74d2a3755d
MD5 069bd8636fe26bc48bd5c10ce5f02c2a
BLAKE2b-256 e109c05d760961104996345db968cadf09d4f1421e2852f60d1b486b5a57049e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.21-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4ae524efdd5e311c4c2f9eab010943cafeaaf248c0dcb744a679d30b69dcd2ea
MD5 a294fb16a7fc179c3d7be5c67ad03597
BLAKE2b-256 b7d06de35532bc8cafbb0ea3c23c0fdac66890c3544d59c3f60ae3116ae80489

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.21-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 389d2bb69620d92092e75b1bd81e8ef81e5caa9da98347cf5035f2bf44bb7f13
MD5 b6a767ba4b6e13a25377626520213496
BLAKE2b-256 6660d352aeeae081c9065345761b1a543644724881e55c9b8de01653d26cf0f2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.21-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a3357b048ab732b5421a45b3f155925ddc71bee0240a985fa79f47084eaf935d
MD5 f65ab247110c3a3e50532dc1e83200aa
BLAKE2b-256 7a0994daeed70949a40bdaff6c5d00a12357c91196faad676587a25f16201c6c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.21-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 204805bbb2f3d02cbbce5a3483496fbabff96b2ef3a132c033bdf51d94afe236
MD5 20f3162e7deedd1ccb263e21f92dac25
BLAKE2b-256 0be0f995537187544b97be004a86bf95e8e172d6f0de84b414842ce51e13ff38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.21-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 98b1846e61b0afa3b51e760c667126cdaa132cd248aa949f3a057cadb5fac548
MD5 6a93a603cfac3cfe78b126e8c74a2172
BLAKE2b-256 1e4904487887f1dc322ddbdcee1a96df427c274f8a0b6dec628ac0e28f716a30

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.21-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b592e1898dd05affa2661ec74a0113532f8e1550ff8ccae994a0cfe9bbc592dc
MD5 8c98a88fc8c2c7f7c477a95394f96356
BLAKE2b-256 bcda5246b492bc7464d866b4bb0e2369b606abc2a0dbb797d840a91bcad62632

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.21-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3ad49893aef251182f71aa568811f811e7a5501427e9f873cdb1795d41056d2d
MD5 2c92850ad2d55b911bd9e0dda0c9e80d
BLAKE2b-256 9042610d9d4e850c3c1d5e748529f94183ef50857eee4a3df21a41f12c6ba44c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.21-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f9f09f3b566957a79c6b1c081c3a460137dc5797a88e3897b00b8c5d61fef8f2
MD5 b893acd3d628b2049fc21242cbdaeaf3
BLAKE2b-256 a498904cc180044a09c07c602ca5666a0024da9f263d0bd23d94ff2491795f67

See more details on using hashes here.

Provenance

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