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.139.post1-cp313-cp313-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.139.post1-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.139.post1-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.139.post1-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.139.post1-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.139.post1-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.139.post1-cp311-cp311-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.139.post1-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.139.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e69000475be8e4072b429238e78af6cd136e538d9cbf76160fe162a0b5b00b68
MD5 7891ed1f47ef3732716ec00b9521347e
BLAKE2b-256 4b04b5928df647d763d752dc99d58f94819ad4d49fc83f73e771b91114b06acc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a5179a7cb33f2f5e1e5f71e1de435d9debbff2dd73288e802e57faca1b7f68fe
MD5 e9afeea0665a439b61dcaf693b786cdc
BLAKE2b-256 cccf058638fc162c5c1d6a190a391892bed19f8e9df43fb1130111962f7fe4f7

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.139.post1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c059d8050bd9b95acc9c9020f009f224ac8b304774e7b242006151566d6e19ee
MD5 c02a585e3988c9d138293f1bf9743545
BLAKE2b-256 aeb5e2d0d44753f264bebafc84afececfaf379a21bfc21218d3f30d19b7694a5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 848aab15c8ac5239bb3e9893666822fd73bc42d7f74bac2010b6baf6b58ab266
MD5 4d4d8dbbb4157bed664ec609e8aafd8a
BLAKE2b-256 d409f57b33193100b303e52445ca085c616b4105345e18e00468acba47ad1120

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 85a816868acc93827367db8c3e88c953d7fd270af9cbbe5ddf6bacceee27a45d
MD5 1cac5ea3aa20d37ab50beafc6a6e425f
BLAKE2b-256 ab4e18103e301167b3e1a80553a07394298fbe3911ddd31389557125f25d99f4

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.139.post1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f5226dcc5b624016b3ca1f4b70b0dfb2e65663c59571927199d4b980452e25eb
MD5 33f5fe81a885041b5ce8ac6dd22f99c3
BLAKE2b-256 ce3def1b6de29b6e58d2354cdd317bfd9f87d900668c9e4e98e4f366265f1a07

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8ae95d03b31eb587ae3d3428d07768d5953e9a71a7b82f3db9d0e3c6d5cb35f4
MD5 c64fae6363ec9220fa9d431e037bf726
BLAKE2b-256 181ea6267f8e67747290c2fb23f3b5ff53299117e3e22696faec9b6a469fcc8b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 fe5427c7d05bb8c3706520ebb75b4e597fdbf5e587b20c03825fd16f6d373636
MD5 90008735ccd56b09c751a7823bdec742
BLAKE2b-256 cc8f58d022cfc1f717450b8548e20d70807ab78e69453b3d7f26d2147a1f9393

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.139.post1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 21d818051d966e70d1dddc0c7f0f231d87e6af7a1c47943f718d424712ae653f
MD5 be5e10ba8099e6e74aad20fff6193224
BLAKE2b-256 a7d57e41fd2484bed20ebbaa3d7d7389866b46d80d82a02df7e4353396648a4b

See more details on using hashes here.

Provenance

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