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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.99-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.99-cp313-cp313-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.99-cp312-cp312-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.99-cp312-cp312-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.99-cp312-cp312-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.99-cp311-cp311-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.99-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.99-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.99-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 688ceb8f1bd9c2aac3936fa616ae4bc7cf34beacd878899a2af508b05a907f88
MD5 826ec6422eed7eb39691d2ad788330e3
BLAKE2b-256 97957e2530d2a2522f6aed4079b1ae0b68431fdb9f16c8b4de12bd9c88aef1b6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.99-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ef31869aee6892214745ac55e0470ecfc00942a769c806a4fed1f84343361990
MD5 67df3dd2098742134285b2683458ec38
BLAKE2b-256 67b0843b0834eb03f317b3f14506293a038435219a025dc0a1e53000091d3a39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.99-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e90f987428907f35f41d2019fe0468d1116dc0b551c3907ee07ed46ce2d372aa
MD5 c364ed2bdbcb89b1ad6bfff91060e518
BLAKE2b-256 04abef35a8d84e09ab2baae3338279f003fc52240810ebdb8a895fc4d7d821e8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.99-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c4b0b1c6cd293b6818868ef1539ac0c044afe1a471c1a0bf39175a779b10f0c8
MD5 8b4f20f37ce473b913ecbaee842ea958
BLAKE2b-256 72dfa111875d2e160b63edfffb1d3ae40b0901210e1493103a97fea16de2d0be

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.99-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 78d001332d80a48c3b7af90cfa6c1fedd79f5082810f5eb3bc28a6689188d51a
MD5 4c7bfd88795db1aadca504bfa7f4086c
BLAKE2b-256 be3a4538f2cd0c92e04188972a7b6e374134952a8f28b723d0d407cd32d1bca6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.99-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ebd6bdfaf2d4259e9cb045375c5d0489ebb0d180359f0ce8654bdb1856611844
MD5 7cf44ee2e5625994752363b82746a1d2
BLAKE2b-256 f1a5b697c59e99ebe15c3189f9bd86cae0148bd5dfddc9125b6a4e0a29e8c96d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.99-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 367022e465959ba311dc19a287c369174b75bb86e043f3f53bcbfb28651d22db
MD5 8464ac779df19d74117a0583a4a42bfc
BLAKE2b-256 2a21c2b8f4240cb26d8c71804f08a2dee15fdc4e86d32c806eb6d065b286ae15

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.99-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 111eced0b1eb017d9275f6b4ed5ee13ee116d3e308048fd59706df641de22f0a
MD5 3db450246912d660dd807a5deea74e9b
BLAKE2b-256 2f23dbb2e5e104a878bdb82b1bc8a6a49c45f509223fa5d70d3dac28e276583c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.99-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ab821e97633cfe4fa096f63079edca8d4ac6fc3a1da0bbb856d617c5d2172b24
MD5 b688cee85ae1c6a8b9f4c1993348a0ea
BLAKE2b-256 919eda21ded0e0cb69443ea25b2185c04e8022d8521a3442dfa39629ddee7d59

See more details on using hashes here.

Provenance

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