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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.79-cp313-cp313-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.79-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.79-cp312-cp312-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.79-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.79-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.79-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.79-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 90ec73294b9741812b76f44e47c478f91a4fab3492c7427ed7b8e481c235dac8
MD5 1983f7565b4937f324957b4c44a1f257
BLAKE2b-256 a08ea2cee802f12e435d2ce79a407d3b968acb7f7aea2b0b079188ebe232ed5c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.79-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 858e22c2a38da79f3e7cc23eaa0a0feb9d8d0ed8edcd71fa4cba9fee1936294c
MD5 3f4517ec1c28ae89ebc100b06a312354
BLAKE2b-256 fd150484b99a1e696bdaa36e1b81a41a5925034815ca5d820ce576dbd26a136b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.79-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 68735ea9ffaf87cbb652bde49b56b7269effa03f44520cc6160f8fd1bd6b9c89
MD5 7e87ea8fb532bb7f41b637f2b3ebdee2
BLAKE2b-256 5c502b16c5ddda2f17b9be73b3424a782cec869a1c1388f4d4789f0542b5110c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.79-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 067068f91fe700e2df47b2fb620dbe71d7c74cbe2ac8264d3073eda369e227fa
MD5 0cbd02140959b9c6f205bba52ff166c4
BLAKE2b-256 3b2c959dd32fcb6873185b6962db9ccae1a789d0d752c65b742774a7052fab22

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.79-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8afe353ac5191bff24e4e127082f7b10cbc51508fe4b3b44068b8370b2d48fbf
MD5 1cfdcc0fbdd5354c6c528d0172d9ae9e
BLAKE2b-256 27465e580af4337f3aea5cb06328db357b704ea91f3d6f904da5221840c3084d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.79-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 333c38058be9ce07853d03c9843994fd4066bc2dcb61705d6846994eed3feed0
MD5 127a2ed281deabf992afafa658c65553
BLAKE2b-256 3131c7c56fb7b810a72afa559d6fd3cf9468cdaab3f3a826ee06db7643c21158

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.79-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8eba9f6d4ca654fe0203fcb7078e2ede204b498ce27d003bf9ed9559f6359781
MD5 5ad6c91957883b8ff4cd9e1790c4baef
BLAKE2b-256 d4a3daf43ed66ab329310b01108d15cff2ce30042ca46e563ba6c85610fdf89a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.79-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e4ac71f4a084f05ae23627f8bccc0077de4fa6a0b9d86fd4726aa4822cd84045
MD5 e0164646db3e2d43cb148c2e5ed882b4
BLAKE2b-256 3adf1a92f8edbf3a7cd6bd21e38cf8195c2fb71c3a08330825366cce3e9e2140

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.79-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1f7fb4ddda5ed372a2484e36060dafef53f9976809d36be34f95c1462b65faa1
MD5 22717a938e6b10a9304be210ddad576a
BLAKE2b-256 ab3c84bc25467166cff81da0c3fa35cf207314fa3539b49c6e2611ad5a7bea0d

See more details on using hashes here.

Provenance

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