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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.58-cp313-cp313-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.58-cp313-cp313-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.58-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.58-cp312-cp312-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.58-cp312-cp312-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.58-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.58-cp311-cp311-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.58-cp311-cp311-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.58-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 57d06315581d56a9ff15c1a06d3ea092322a39eb48984d9b7cde304de6b3b031
MD5 05b1a00095c0ee914221638b4d4be83f
BLAKE2b-256 68491b74ee74105b97cff6b1568e9cff6cc560c26398a77f7216908a3c3f90ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.58-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f7c83708e1b0e2f91c3aa5fc60c14da4508b0a36a02fb0c8ff69925536799a0d
MD5 e105b4ad8beacbee936788133c5e63ae
BLAKE2b-256 06a2d2157d97e9f99a130cb188e2d9457878a249a27d98c0dd4121e7389cbf95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.58-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 37b34dbe39437fcabca54cc2a225841e3b4b0324a3dce1577c58cb3512dfdec3
MD5 e88bee53ad950c860f68831e1cdb213b
BLAKE2b-256 96efea5494cd9f027d2f415ed4e01a71d4dd8f7ca9eee2768f85f6a5132f9dcb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.58-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b39afcb12414503c6baf651b4b71b3519abc23002e49b1a2489ddfc551ebc0be
MD5 67a774f713c676cd35b6f27c0e5c5876
BLAKE2b-256 56ecd3c5677386a6b4981dd704adf29b53e8b51336447a0c992933645971a2cd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.58-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a134ab23bd00f660947996bcfbb17878dbeda16fed2970e967bdd2d47a658c7f
MD5 83221ac1a25b98981d0832c00c72aded
BLAKE2b-256 00ade63d30ada1c1cf92be187d23fbfebc3b158ce9c818c7d15e396971296098

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.58-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8a1294bf013ba2a420bcb24e9a946d084e6adac42af5ef435cfe096750491c18
MD5 fc4b68ecbc7182b04fc74d3e4e49afdd
BLAKE2b-256 d0f8d8035193986839131ed3c791607ae73f72f1f11e15578868d2b9b283bda4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.58-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a2389d208d6aa58662dd5ac3969b80fbad7098cfd814fd69c28b9d1db523245b
MD5 8951db1c6b3e11cb0aa8b6d1aea493cf
BLAKE2b-256 3c3abac658d3864e2a78374c932d8d7ad75409c25bba6c0c323b94e0a8542ba0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.58-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3e8f365e267696e9df17cd13222570917d6c0c435dfe374ba7b81f541830127f
MD5 421f95f207374021df401353892f9f0f
BLAKE2b-256 feb90ac12f561a12b27421a75cc394032972776b75517c2303c0b33960145160

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.58-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 eb6485fb50973792725248721ee303c740e649cdf5cd2c86c2eefa1eff6229fd
MD5 eb9d524bd3d65263a5a8552d33ac6b1b
BLAKE2b-256 80009da71408e8970a9ea2542770d85e13194ec327bf3d32e1c274d86db992a5

See more details on using hashes here.

Provenance

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