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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.91-cp313-cp313-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.91-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.91-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.91-cp312-cp312-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.91-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.91-cp311-cp311-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.91-cp311-cp311-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.91-cp311-cp311-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.91-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e6ec6402aff491907cbed5f1f1a751bffa372aa7dd5a8d4021c232c06f1bda47
MD5 10704dadc2d1ccc81adbd0b4b90b59b3
BLAKE2b-256 382d95b166fc297fb9ca6c553773cbb076370cf7d0211394d965835e8c02c4b2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.91-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8af5e5ad3d678d7afbfbe25c3200d746f942d1fac6a4b808de0caef0bcef1d1a
MD5 39247cf196779e1d8559aa3df3829048
BLAKE2b-256 42d1268759ef9b880a14f87047ecb892a8a9c25b6254bd4444d589b5a368d0ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.91-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d00a815faa788f7faceb160e9482d9dd3a31baae8a3b0ea2531afb21a757fe79
MD5 2b0aad436227400df73851c858339fb4
BLAKE2b-256 93b0c7c1366a87152cc2f88b4ff37f21de8d636655e5848b78b9b961c0ed2e82

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.91-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bd7d719f0e73f125d38f1d31db2a0907d527a23752035c75e41e28b57640b5d1
MD5 5713fc363712d73e96d96df29172b520
BLAKE2b-256 99ea8654cec8fd58b2da5f06a881d99e7200404d369d95e196b3c580f6b3a310

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.91-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 90b43f93b64ae4a643c32bb0b80db39a5ee2763cdb3f34da9bec5217c4990345
MD5 8da2fd8871348e688bbd38d2c3945474
BLAKE2b-256 62ed06272702fca352a3759adbe82f7372a00a5608b63e83f6066dc6e8427b52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.91-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 309fe30c9e4a967eb9fbf0fabd17a020dc3cb75b76069974d418e7885fe8b031
MD5 376b058775f94c793ef52adf22f7262d
BLAKE2b-256 ee24149aee86e14bceafc8dbbfd4f370c8b16fbdfa2de78bda0e65397b459327

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.91-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5d71bf6ed9ed0dec55c819d3019f4802107edad89030f7bedff67e0c3c5403f5
MD5 59561acf27c0a03656a85b446442d047
BLAKE2b-256 f356ed6750f25662f3dce40c12242966fb18db632443a73cf13f7f601c5b4e55

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.91-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 976deffbcefa132b05b9607be1555aba81c30dfc8fa9f4319d1d057c2020c65e
MD5 d48c49221aa46b3ab575fa0195af23d3
BLAKE2b-256 3313b922dc52b27efe67a890a35f548a40ee851720d5a3ee7205cce9086ce5d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.91-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 def842e71186b15642c47de504c4963bcbe89831663f00d5774097d7ec885499
MD5 a772c1328950cb9e140eba8c499c2bd4
BLAKE2b-256 0219a39ac18977dee5e02c4547ec2754d0481ffd8fb004311dea2de9972c7f40

See more details on using hashes here.

Provenance

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