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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.134-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.134-cp313-cp313-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.134-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.134-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.134-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.134-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.134-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.134-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4c5b4162415095f5cd3d102b74e6e5476ca0bece9c44c5fc335a7ea34928112d
MD5 d98e01b967a43bcec15e481ac03280fd
BLAKE2b-256 3521fef3adbb199a46b77300c0227be2123b2639084cb3fa98b067ef06980cc3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.134-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8687c152745844d666cccc4e314f71d2070a3aa748c9b306522860649a7f735c
MD5 ab29e29d2d4720de9fb8f0eb5dd2313d
BLAKE2b-256 ae45e80259c84171549a0232d43fdf5d51df30782936004b402291cb21210c42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.134-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 db74c199be196112255b44594063f8958e7afad27214fa08f890e351b7f43f2d
MD5 1281db6a6fb37dbbcd2b11477746d676
BLAKE2b-256 ebcc8348e694df5ecb517c4283c3c9c97a39dc9b55de2c84d92f92d97653a934

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.134-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6d7dff193cde68174db25fc585d31181a663e8deb9bc765c5e5d9498c7a54a0a
MD5 7e1e99476ae8c40e50ac9a43a722c3fe
BLAKE2b-256 77f2f10023136eb3f0bd0ce0f871b2d3ee56a0dacab00de300dde5487b8e4ec6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.134-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 150a9781ea423796b06d7c5ca771f13e8e3e473a56d38b71bf0ae32fce89b067
MD5 bae699aea4abda66e567655ab815838f
BLAKE2b-256 7365c78f48e3560d057f721bb3baa5a2142c968f101442904fcdf35cf9d51949

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.134-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a4239f82da6bdaf5be8e9073ff61214e62588fcf9c0a494c148a7077ac4a62f3
MD5 0914a6977e83c64814f033637ea952d9
BLAKE2b-256 4f94febd34e737dade7cf79d4f4e7dbc2cd19731f06bf67fcbd7c313708089e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.134-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4a91ff47c65eb433c59a84c97f98119b89782f59583736dbb644b3942186d9b6
MD5 9f4618e0e8ea5c97b57e6bb07aab5f3b
BLAKE2b-256 e5538f8ebcfd6476a21c8ea0ba7c2348bcfaf5821ca4ba91abd1f66d979ad729

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.134-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a58577763349a24cd1da9efc6889eeabeeb96bae21b23496102504446639c368
MD5 16473ba35c07a3af3e2b8972e89e5779
BLAKE2b-256 d2971e77562e7ec648e333fd19aecc4934acb97046e2359e6eba2d6bfa85c85e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.134-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a8ad49118c81e16be3b0e9483c434805c165dcf41d674babf0ec74a1b3900650
MD5 df6068c5e01d947210ae7625e0bf9e11
BLAKE2b-256 f191b6a19d1a27235c7d2e4630af6649262a80dce54e1c2993df3e6e50e28efe

See more details on using hashes here.

Provenance

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