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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.72-cp313-cp313-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.72-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.72-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.72-cp312-cp312-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.72-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.72-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.72-cp311-cp311-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.72-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a59d6e51b700dc8fb3c1172fe968cd877b9b0472a22effe5dd7bcff19ac7a7a8
MD5 5c89f94bed9629ce3284408c20ede1d5
BLAKE2b-256 1b675ff2f2f368614082d586a67e370a5875a6a91038fd1c2f3383e8ab98d69f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bae3af1ec4646a6d5f0fb4becfcee1ce995f999a45290da97bed20d7e4c81804
MD5 4bb01c46b04340022631084131bc9b29
BLAKE2b-256 3e910c38de6ba42dd1e222416af2983796295036c699910223b6356c453b41ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0018c7e70ad2bef657e62cf582b58c3b9cb705a9b830ffafb5e0eec03c49150d
MD5 22808b5fb93e695a086681bd5cbe4a4d
BLAKE2b-256 313b052ed34c10784a87f2e5e10bc17399a7e55b47938d24850e5df744d69c93

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 18823ca3b2c6c912de857d8575f5ea26cc51a936e53b08aebcd83c2d20704cb0
MD5 33a46d752f397b6a592ac2e4923da577
BLAKE2b-256 f3073efab11a19e7f00200d418921aef128ccac9d237d7cc10d8035437754208

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 33b9e18b620ecc0c41d138f125cf48540de214849e16705e931ef3eb58f728ee
MD5 db205586bcb5d57b0d8188e5664b0fca
BLAKE2b-256 6940d2acee1fa7a8715f901d75ccc24170660ca8f9554768b65957c94ef7686d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d8856e3a732af042b863f74fc459de79b34b105cee8a1af2187afe12306dd4bf
MD5 f540d29eb5a0e3b029af8df7605a2a52
BLAKE2b-256 14c47d74648fe54c4f32aa6e1a5cbb934c2b1be49128f6ab26909e143d8ad1c9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2c31acb7920245ddbbf19e1833f5c8ffa97028c304d828eabcd9b9756ba84fcc
MD5 350f8b7050ce55badf02a383886420bb
BLAKE2b-256 ef9ac617ec3929211a2fefab2552356e1151deb6ebe3a8775a4f471b6aa21f6c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ccced320161f813b6b3cd954f72b3393304d4dfde99dd7edabc252f929ca3fb2
MD5 0ce83ac68cbeed003f5e70e71ac5ac15
BLAKE2b-256 4a5b620ff50c7abfbc2244f603a6a3b8eb1177a9c91a45fdd9f2ef884132654b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e8f86bfd43af6484ea6416dbd73fb00ff3b69f50045310e8b5c32a74a27f9452
MD5 9d0f46a5e5dbc724a2800354ed2bfbf1
BLAKE2b-256 3858b723505f8e99616b8a97c8a9b7e725a2b618b928a2c3bd62b91c17c0a6c3

See more details on using hashes here.

Provenance

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