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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.164-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.164-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.164-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.164-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.164-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.164-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.164-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.164-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 590e9f717f6ec063af256dce3078db84d561c5bc7c6b3acbcdace68914efd349
MD5 e879ec08afa8c6f5fab6cdff9575b2d6
BLAKE2b-256 4177f7432414758529a6dc3af91284543e673d2ec0f367fb03741ccb9860355b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.164-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 93bd139608cd739a0bbf89030c923bf8d9975b9f9d05817b7e735329776681c7
MD5 a19160941449ca21425c00a9db437cf2
BLAKE2b-256 aea7f4119ecd532a688a56b9a813b76b4ffa4aff5685b617b1a97d8200a19e06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.164-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 53dfebca49aaaabfcb9ea7e8081e260323175b192de82dd121944d816f9b79aa
MD5 6e3373bca44d102d02358275e30d5327
BLAKE2b-256 5c3a9edc8d90ad5371faa1fb25f9c72ae22e114c711c05de8593a49ca84ea96b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.164-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 98e322c293f3d72f15ef5e62ae314133032d2069af32eb37210a44a605f57cc1
MD5 cd56dd55fd5a0effa660417f9df8eb94
BLAKE2b-256 94b41b77da526a0088da82eb616c5afe791c6ff07affe94aa9ab2173309a3d89

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.164-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bc9263278e7237c87eca69029cdc369fa056859de03a610196d453d521e01d78
MD5 79a3191599bee0c904d3362bee6a5878
BLAKE2b-256 ef3f5cfd053d52ed74ed800dda094157b37c54886de8f493e0db1ab9f99c62c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.164-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 aceb7ee2b7c0f42f2bf8b0447d55a6cc606e88892fe6a9c1038f877f1384b4e2
MD5 8f0057452e28ec0f234a595413a4ce4b
BLAKE2b-256 60eb0b9a7e2a4077c4a21cc31290bd600825af19818fab0a0f7ac0200b461653

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.164-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 67f9f1b466b0feb4fd19894a7e9f7b0217c8c37a4ba8d62baae248678704468a
MD5 36007c5d8d058f1e404a9403095c8811
BLAKE2b-256 bdbfce02248ad00d6e7b5d7ce4499ac35729d301c43804dca47db75d51b1a3aa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.164-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 cd901fe4092008e577e7b2d8991c4bdd1b953e0d2150b69fbaf26f8b1da9b776
MD5 b257562440146b5c1612891536d27ca4
BLAKE2b-256 0f07069524575c7395f4e9cf930619a7c19a47538f389631b5572c1bb7f4cf7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.164-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7c823e99f350b0e3c0e765b00b42e2d1306c7e8db5b9889024c180b7ce645ea7
MD5 56f6507844c93fc4ef2e0e698354bb32
BLAKE2b-256 64827ff9a50684c5aaf0bcc766943d18facbda00e69f08b0474beb1710c41f18

See more details on using hashes here.

Provenance

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