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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.144-cp313-cp313-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.144-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.144-cp312-cp312-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.144-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.144-cp311-cp311-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.144-cp311-cp311-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.144-cp311-cp311-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.144-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a813aeaa833a0be668cbee40b07886ae64b7aacea6abd9dae0454c332a1c6459
MD5 a018496cbb2f53f4190c147b97a86a6e
BLAKE2b-256 cc8e30c14034a19c6602932c15547843eb1093ce9a1e5099fdcb4b2c3d780f49

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.144-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6d4df94a74221686b01e0bba7fd9944e2af0bb1ffb266d6121585a0b36ac227d
MD5 79e0c15917309dfa6cdbee93afb91dd8
BLAKE2b-256 03003a0df307572bafc10dc115091303f1a1387169db410bfef21a57655d3467

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.144-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 71a0241952146a908cf55041ed5a2bae7a30203243d07872cbefb10fe598837b
MD5 ce944a654466a141944e1083f8464fcc
BLAKE2b-256 1e4b49e8a4929f70f3d9bb21ac9eab0d655d4ad757dfd255605d803cf645c381

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.144-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 221ac7881fa2404250b062d32546ca160c500886d7116f9e5dec8d30bb05ef8b
MD5 c716d66e660da9adf34714daaf1ee400
BLAKE2b-256 caa3f76bee3ac1d8896925117e7665d9112ae8f3e7f0b6ccb1ac54ac71cd1445

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.144-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 827cf25fc8960da8e937e6f30a5d104e6dd7a31f5c2d348239d21c78b4b06a12
MD5 aad52a710aeb0740d1a81097d44ccf5a
BLAKE2b-256 f3b4b12c507370ec2943c348a4841efa8805302eb9e78b8d782c88ac7ea9e4e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.144-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f31af0a987c2cfa2ce4a00c5ede4642c66f11f48f7255ddd64ae9bcd42dc3b81
MD5 0ec1d706c4d461166b151ab6844dafb3
BLAKE2b-256 bb65fe34c9bd716081d46161959ecf9fe605ac0f876342063959c5926668e131

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.144-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0a86b8882f9583cb1e01b5dcdb10ad2ec51049706be8a45da6ee013f103f2741
MD5 35284911b9c09d138a25977319e2e4de
BLAKE2b-256 e6a86e57cf860917a46c6ac9d44a398a0c5ff907c6d87f8aa4abdfc87b78cd25

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.144-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5b3cea6d8e57544e0fa27a5bd8c841a7fc880e19bf863448c3950356b49eb607
MD5 9ed4422767f41d56bc17a7055a45701d
BLAKE2b-256 041b52f1531e0a50513a8323927fb1053aad95cb9f9bb53f1b326626b97bad7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.144-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f56954a5bddd89c79f5dfb119cf7a2227afcc0eeeb9ba4a314984e140e3ef874
MD5 1322126e3e9d585857cf2fe06e6d8756
BLAKE2b-256 1ca2f0c6c7b212e5df22d8191362cf89fc7a52a5b7ff798ea2c16f1da4986024

See more details on using hashes here.

Provenance

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