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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.156-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.5.156-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.156-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.5.156-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.156-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.5.156-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.5.156-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8d19b0e29c62222c83784d78533fc3b5448d58e95a6cba7c6917d947b5011fbf
MD5 aadf2a52acdd39a73216fbcceed63c87
BLAKE2b-256 ab86b175abecc2f0808f2739d82a54ab32eda187faf52ea1f9f3adc6b8662f65

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a1588c5df5d420e6c8552adf7c5cc105b08fb66e784cf0af6ae51df77fbf62ea
MD5 a48fbea849ca69a3143db046d9fd5fd8
BLAKE2b-256 62a1b42d38f77b31e30c7fdeec4642afeb126490a75fe1a06e606a4098e5752a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 cb42b2d259c408ab0280fa529f3343294efb04c15e157abcdbb85aba078fb399
MD5 a76124da0bf610dede4495d31df1eb35
BLAKE2b-256 b72a2847a7a5243281a8a9d46c489c3d2b739b089abaa906d4a5e375d882a77b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1c12d60b028b2e0e05900baadd555fd3a78feb65204d3bf24dcc6ff998170727
MD5 05bd57b9630479e259be55fa4e5b9836
BLAKE2b-256 d8bb3d8fdc5631a5c89325a0a4920d7e9e452832bbe8db0a1ada0a686b867fdb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 7ad94db1f735fae91e815be8784905eb5110307ac31dfd897d5ce94d9ec22fa6
MD5 67369668da0c60e88915f825ff8e5019
BLAKE2b-256 34f2b0bb0610f64a1943c5cca3d5bc9b483bcbb47c75994f64d66fc88280651f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c0e232c0ac1575844889e355a1c0b5b02a3b4b785171ba827cc7895302cf4a90
MD5 9790e1ae11c8f1c22b64d3fa55b733d3
BLAKE2b-256 7102d2aeeadb1ffb5100dd65ff9c56da4ee4651e0d1fca8a4bb87f01a5902b03

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 44f94c1bdc1a8cd63b712375873344d116c3c3b84105123408795e8a492d8013
MD5 3d41073fa9a230f2fb208430ad522adb
BLAKE2b-256 2374a7aab68200a18533e8b91e9b75430a714725a36005f27caabc5a4faeda2d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8976e85e67a46f2ef26a133d3927862fe9ecfbb68ebb66e479b5b8b41db3cbd3
MD5 51cc11734e9de21916dda93217880485
BLAKE2b-256 42f7e790fee5914f66f0ec40de6e3a31acadf5f06bb648484a6218883ac2fe7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 15ea2a71d9735a2b62083a4d9d09fd354f4ca3a74c8ccd8a4525d794ecdbd172
MD5 e3b10ad1d2a7a21cd1db12d82fc3ad54
BLAKE2b-256 9b35659e4aa0daf07ac12b3c476ba0da5a746cd0c9af856560fb892ed348ac6b

See more details on using hashes here.

Provenance

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