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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.117.post1-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.117.post1-cp313-cp313-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.117.post1-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.117.post1-cp312-cp312-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.117.post1-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.117.post1-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.117.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.117.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8882ebeffba1e16a72074bef996f4d100f1fa512a784a55438ef0c4c6fbca1b6
MD5 32204aada7242cd53730f44a247be9c8
BLAKE2b-256 70fa7f0d7af07bc1819fe678b4199427b0e553c2125dda2af8d2832bd4b5840b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.117.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 44e32a4b66edd1f0110d17c2feab9f0fc7951d1e5eee4db02766c251303270ad
MD5 e89c07ab4d1435f612fa7f2f077f3a6b
BLAKE2b-256 594cf0f339c79c4d19bec52770d7c65bb43d3b0fd36c0fae6b7c26bfaeabc2f9

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.117.post1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.117.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 263ddb3f0766b0231ef329da06624c488aa53a6ce80452736f436fc0929b141e
MD5 8aa454d5923f226d268c612f89645b09
BLAKE2b-256 84aee0a69325eb1f793ed81a4a4eb4b987051c786097b9f261f1aa4e009159ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.117.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 27d29e2a0c58cb693e8c1b3191565dd6fa60fb4d9aeffbdca0057866780416a0
MD5 dcdc999fcb247e01606ec29f55ced5bc
BLAKE2b-256 3ecbef849ed65778892d6bfc28155e091794edc3b753c851c6e4720c549aac3f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.117.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e0b27ef9f7743a1644c12345f87629968f82b2d54dabad51eaa87ce4ba9f4f8c
MD5 19c5e689b344b890a0b95e0381897ada
BLAKE2b-256 19e7b78feb53ffbc6118d19de330162ac4b68b4dd4872f0c0e5c2b5fdfbf9a8f

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.117.post1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.117.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 854d13e558a25cde0f0edb88758bf7be1f170647e96ddd31e28dbeea03b1b945
MD5 9c67c3baa6f1d46628a142b97da863d9
BLAKE2b-256 f086a6b528d41842529cc031e0141c5bcae8c8e348ed0e51d537602d9d6a193b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.117.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 14e9f491c52ce1e4b241f2bd33e722719173fab9ece915587cb2ec3acede31c1
MD5 4c555c0295715f184fb35f2be53d6589
BLAKE2b-256 9a2b9ea26c56bccc728250eb3dc59e2533940d17bae82c043c82a6d74bba92a3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.117.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 cde14b12f40a17ad6ffc29c38bc5ff14fe38c19f1c63205b8fd203fe0c21a8b2
MD5 571c3b6e6a47403e6ca938ac9c854c50
BLAKE2b-256 7fe60d4ab769092b92502079d19101e98ed9d1035d2671b2a47c20ac5f156f66

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.117.post1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.117.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4e4a1a81cc8db64fce4ac2f5f8a1b68fd07eadf349000ec7fb8bc473730f6a07
MD5 944e74991598cb5ddaa39cd152ec2a3a
BLAKE2b-256 2230bca7a0a527c3812b2d59ae745d3ea825a492bc47f6330e0478e06f717dc7

See more details on using hashes here.

Provenance

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