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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.105-cp313-cp313-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.105-cp313-cp313-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.105-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.105-cp312-cp312-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.105-cp312-cp312-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.105-cp311-cp311-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.105-cp311-cp311-manylinux_2_31_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.105-cp311-cp311-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.105-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 85ac9cb47775f82f7db841e1dee9c81963e555af7ca85b87c6da142de6d2a997
MD5 57e56872fda63c166609c240a5e2225e
BLAKE2b-256 a1cb34428240dc8e65b1a6f0db08c95a763897cf4a014c42e27cb935cc689322

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.105-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ffc8af1f707dbe4922bfebdb051022601c94359d7a54d36ea338ae97546d975d
MD5 062051d5a17a8633781995ef251cfe2f
BLAKE2b-256 a00d763f28cc3e27b892532d1483fb198f65c17b547badfabc83e2bc38ebcd7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.105-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ab33a120c9072125b8a0c6f037d02460eec484b98640fdd74661437a1150920f
MD5 6e3a4b52cf0d1663bc804761a952f04d
BLAKE2b-256 2c548f9df854c75c398a5e34fccb7f33990600439febd5e754345d478af67b37

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.105-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0d8abc7cad56ceeebc574fda3556bd782528dccdf27d9be068450aa1b21686fb
MD5 bf3f2e2e918eb41fe9838e8084c05471
BLAKE2b-256 6e79b4ae417f025ebe8edfac74a227e32bd52bfba159ffdc8fee93faa4598488

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.105-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 110179b861cd972b4ca9c6652964e3e0ccfaed35e96ec062dc3335329ae6bdaf
MD5 1b4e0432ab66f02e1858c3feebc60641
BLAKE2b-256 e0caf8f26ab04ffc36cdc10a6baf7b7a253da1b7214d5eede2d3ffab54eff021

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.105-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c32ee33f9e76112302182a39768c82d408bd56aeb471da26288e169042f2be03
MD5 32be8f739b6b87c75fc1ad06613fef30
BLAKE2b-256 ce3ef0d337798fa0eae6c0d4d3ed9793fc181a16006b14e786464f7fc2fc1edf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.105-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b6dc66f0cc1cd5b5235d1eb8a61845a741eb0238f117d50c6c0fc7eaa3054ab3
MD5 d984a3eb495d150685bf16328a9adcb5
BLAKE2b-256 afc690fa47373d505ebcbf4fa39d97b3a47a924cea777ffb7bc3655145838c3c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.105-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 05a744c146204a3d39d06fed58180ef76054fc6ad1fbd92dd5fbe46721ac15b9
MD5 abd7cd08f1e68b78158817c8dbfc5157
BLAKE2b-256 3ed347a874e09b6228535a9fdd627bed6329efdb0e5646f5ba6238cf9fa430e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.105-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 77dcbebfde13b9135fbcae9cc221a66e9f4d0e929f5aa620333c3cca3f601984
MD5 c7874389be3579ccee9d002afd627924
BLAKE2b-256 2ea8df9c2f8ec40dc6a2f32045a89cebe9a34b2745540d43baa582ef821f4932

See more details on using hashes here.

Provenance

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