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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.110-cp313-cp313-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.110-cp312-cp312-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.110-cp312-cp312-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.110-cp311-cp311-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.110-cp311-cp311-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.110-cp311-cp311-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.110-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 365dfdb98951f8862f4cc4cb01c0bb03a65308cc5a3aac336d83856c7e772f2e
MD5 cbe4ce8d680d954af6a1569136dcbb00
BLAKE2b-256 a9fe0c24e039fc6604c9e7d132601474bc8cf639b7ea3084a929cca87e3576e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.110-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 85320e667c8e939ed5b16ca3de1fa48ef8f85fd36d8a6bd22acbebc82ec78736
MD5 4ba83d34582b4592dcf6e66b29b5dedc
BLAKE2b-256 4c287d0676898f6b4698568f555d3b5ba8d731e1dd96ec2e5828cfef6a15908e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.110-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f06a8a7f4435b5a92906db1aa4ecbb4ef5b0bc96d67bd62ce7a19403c8097458
MD5 2bd133bec40b594ef22a876bae9bed1e
BLAKE2b-256 10262bf5b658cafcfa20c7b47b09d7c67775d234d9951d4c6e91e3d0d70bcf42

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.110-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1475b426051a3db95cbb7d345bdf568ebb26825c6c508f6e5f5a662826f3a007
MD5 5f5a3f2adc77662da409b5d9a076354e
BLAKE2b-256 7bbb77d72084d6996b73972744b195d911a279d7f4854b0fd7e2d2d9b08f85ff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.110-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 72415e39165506953ef37afdf613193d91842ecb4145aed5c701df308c5576a4
MD5 f625229803f2b929093364c4d475b21b
BLAKE2b-256 995f718c8758dc5766c74a23988ca5ccccfbc34049a52566af25bb95341f9ee7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.110-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a4152806eb0be216a61bb19b2e4942887d16007a874acea1c6ee549cf8a1fac1
MD5 0a7865d43fa7c8dc0701e49e529c25f4
BLAKE2b-256 274b8f28d6f68882dd2946fede67016d47c6222f54ac78bf6b3537d79128958b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.110-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 94860250c633fe770836373a6f8f4f4882d4750808b3c2f8be3ccb86aed4aa40
MD5 b3df8f56f91b2e06be8274a759effa23
BLAKE2b-256 0a28944219d4d920a298f5bfa70d513dddbe9a72d1432b3c9a11a0c797fe1e12

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.110-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 49b48cbc772208d7c9d5f2edaaf12cf1347aa80a05a5dc9fa0b1fe5bc44181c1
MD5 074fc2ed3c37a8d6ce3c27d32b06da73
BLAKE2b-256 8c573cf5a5e7ca319121d762c8b84cc670b8946008a202fa82a1d50dd62ef12c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.110-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 33a56a07a1e5ac08104b7f61d77e9180c55c74dfcf318fbdf73bdb0bc763ead3
MD5 5b198b08cd0bd27c38afd3f7ab912c6d
BLAKE2b-256 779556c038843c0b8345f76f60a0ac02b32213cb807fae961abb82240d9bb41c

See more details on using hashes here.

Provenance

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