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

This version

0.6.5

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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.5-cp313-cp313-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.5-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.5-cp312-cp312-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.5-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.6.5-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.5-cp311-cp311-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.5-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.6.5-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ec30b0765e795d0fee2cdf8c97b6f094abc5f9ecc6a7e46c531e2551688b598b
MD5 652c8b4ed4d14c0a5a2b1cbc31e5cdcf
BLAKE2b-256 2c8b19e447fdd7add661225c5cd2088b732efc850876fd816a7d589744a0c970

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.5-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 db7e9dc16bc181081702d3f2a0c94cbbbf33d34a45a6cc0466a3c29cf1518f83
MD5 63a560294276ae3cecee3ee65a0ad5a2
BLAKE2b-256 753f6a9e08a783f5539b3f1b4664647525d604aff388d8dce40884fedbc0c607

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.5-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 52382d1b05a5bb5b5e300567146c311a0b79446104f1c29406521480d062b46c
MD5 4859585364b86d6916690bd6aa697413
BLAKE2b-256 c7112126967d43791d2eb9c17593db1149f8b570682f493b135e4be3da383a16

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7d000b0992833ae0925c79e912c2d33ff35db930eadb2d20d155d59190fd23b5
MD5 abc6888686ae7cce444028e8d78b6758
BLAKE2b-256 cbbddeb95c2861bf31a7c87ab8bbca8b73594995d53e64395f41ab5576740ba6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.5-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 671bc6309fffd7489f4337b2d0b1b3c0635fe1336aef1e463773484ef4b41cfd
MD5 59de92058d11f2e90566711e7f399c59
BLAKE2b-256 abd156b73e668638b2b5333f32fba482577926f72da34950ce46e5db49ad6466

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.5-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 119d97f77b21536fd55aa76098f8ba3dd073fe373bc812deb9da86d04164b709
MD5 c9bb8a7aa8648741951865753adfb98e
BLAKE2b-256 e4f8e81e440bcf1d993b334fe0dc376d98c93c4e29600ec1de04e5f43a2c73a8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c3ea369269e60765059347428ee8fbd602203ed4fad3b7ce258d5112daaea0a6
MD5 7f1f744e2d528741fef9af646ab0bc36
BLAKE2b-256 44078fc3dd9cdef72020413c037a5448fc8018f9b7594deedf8880d3c99dacfc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.5-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 647859608808c2f8543088aacca7fc0cee286765284a77e6f7b7752220de581f
MD5 723927edd491f4a5a4cce973fd2118f2
BLAKE2b-256 34f8e46c2ba278e9de45bb46f997391a19505e9e24eb4f223d294d5061bff3d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.5-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2c3d4d5bc7906e87bc5930f67a8d1cb6031780c2fd0083fb68f6a0b624dca0a8
MD5 50bcf0036c1f8d9a78cbaeef85e7ef28
BLAKE2b-256 6d8b57c7b2eab336bead6fe079b0723249e7ae8c758abbe31ece4ba35c488f1e

See more details on using hashes here.

Provenance

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