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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.163-cp313-cp313-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.163-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.163-cp312-cp312-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.163-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.163-cp311-cp311-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.163-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.163-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.163-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d338de43aa469b53ee518ca8da632b0153f57977e94e181e4c1fe3b149df1fee
MD5 c2973620e7c622fe0a4327839b541b15
BLAKE2b-256 5ed4bf8a02ba9ac5adf3793815b896c93692f7da9f4428d4532d511cd8d42a92

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.163-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c324269c07b66191dffa53460b7da43da94db0abd7951c6130554bcfcfedff76
MD5 c9bcecf5887971795dace774ec75c213
BLAKE2b-256 1bcf845cb9a0458636abab9144fa868c36c0b92ecd57b052211004cfe9d1b1d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.163-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ff38c4e3c8a880e0cdeb2dbfebf99f0607775d8eff0c48e0a5935bd034597263
MD5 c762a6bf76b3f034bd14c46afbe9a826
BLAKE2b-256 8869f4c04662fc6a4f722d8267edbf1c3b490d574074bfcb8aa4ad4d2978b469

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.163-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 89b721104292ff8b6dfe076973b70af15423ba2c9b8b1f72d35cbde842c5c1c0
MD5 95bd044f7a7bdc600b106c064ef41b44
BLAKE2b-256 9fea53e3c0e2af746a152667e9851727725cf8bf9c3e42575886df9ad12e589c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.163-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6e8b1eec27a9f353523219bcc4215fb9558fc29df199edaffc224c2f8abf0af4
MD5 7896a9d34869d920697855de9f21baef
BLAKE2b-256 2c7f1c2b080d2769f5aabccbb606fe9ed1b322ed79c98a3ec953b21521e52b44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.163-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 689f598442d93a325bb5961ba7e7b2318099bf87212a5a996e78d60de2c04ee3
MD5 c2b0a7d2b26c26cf552078dbfa372e36
BLAKE2b-256 d14b1eb576fca0aeb0c1471d3d0cd9b94e50d56bd31cc7bf0b7addfd75a33ecb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.163-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d392b2654d30dc29f49f82876e8321b392606d3507c0921c309c0e041de53271
MD5 a8a26ece6df32d2a9a4eaf5fffd6c52b
BLAKE2b-256 e4cfe61a9a5a8909226ac76f2354fdfdfba9373a3c763d0d8ed448e034bca7bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.163-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b361d741b3809067c0db91ef6ddad48622dc4f0ec26eacadf0e609e2bdef88ae
MD5 586ca0da71d473cb2367ba066ecce7c5
BLAKE2b-256 de432eca5e785f7b6805dabb21f1f0d3c61e3ca2621496d8dee29178b8c94ec5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.163-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0f82c8359b96684d78798d5d5d854cd6c01107b88aa28bc2990d104d5db743ad
MD5 ce304302f5f51957fae1ebda715ed93f
BLAKE2b-256 b0b30798fb0931820bc03d7a2dc0b60ca098e23ce2c160a0c8ea7b30aae2e992

See more details on using hashes here.

Provenance

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