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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.37-cp313-cp313-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.37-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.37-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.37-cp312-cp312-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.37-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.37-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.37-cp311-cp311-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.37-cp311-cp311-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.37-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2a6ef9bd97f5d318287fe1ddb03f2b8c34b2ae8373c55d27482be7ca9be9caf4
MD5 c29863e8e3890796a315b48185d801f3
BLAKE2b-256 287f4335541d65cbaadbff8dee02cc21a5ad3ef88135a84a498a2f5413f60047

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.37-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b7d5491c5776b6285d816c69eb7520c31ba57e24bcaa5528200a6c837de9fb9c
MD5 659f6abc7ecabe030906f31cd8f864ca
BLAKE2b-256 7161801bfd402466c91e0d93dac13b2d66b856f9ca9d90a8686b99077945e14e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.37-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 61326952538ef718f3c268cb1a9c8fe7ae07d0d8730c167ad1df7c148c3f0776
MD5 ce035c0438bdba6fcaf17fccc7c09afd
BLAKE2b-256 e5922aad5f2b8803472fa894ec941bb17e486463fd5f78721c515069bd1a32dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.37-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c0f489d0e894ed0e46d150bc1248e64e7d56a1e45956b239e05a07f1a6105b08
MD5 d10f94676b75e679a247e06af2de1e2f
BLAKE2b-256 3b730b28f39ab349fd5802349fa2a1777ae68103216fab019f886d5732e20194

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.37-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f5e0449125eadd940355f5c17c4feca1a8a00bc6c996fa060a4eef82f432a668
MD5 a71265711fa4d1f40712cbfb749a1389
BLAKE2b-256 b1334b6049873696dc47207301040dda9e02292654a5f83b10849bb616857724

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.37-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9d40b01f54ee8cb6c2d2a9bfbb8622872cdcc2f6cbed3ddf23fcb0d79035a8d3
MD5 9224b97a0f49cd6bf1a1fa571ccd8312
BLAKE2b-256 a650f6a81356c828efd91d8b82578919113c7e6acb2a3c632187cb9d62c8dc7a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.37-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f522f9dd5f2f2b4648a9eab31bd1231d0cffda86ccc07b008c6e2bf5992b1e29
MD5 66e6a498846ede5eaa05b1d737f96463
BLAKE2b-256 25d4645135cb996deffe857bed9cafb31aeb44edf2b95234f981a8999e3a0481

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.37-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 22e6ce85425432a9ca73337af332cd8bf97de6092a089707339528de10a491af
MD5 40430879a5073bb5e1c35e97ce93a562
BLAKE2b-256 f5f7d1d759584a7e877e37033407db41924207fa7dbb59badbd93114f51adf60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.37-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 12eb9a22c3a89fdd43c34339f7e921db41d725eb8276a09ad504c2ae24fcc107
MD5 dcb9cb558c946d6c453098d6582585af
BLAKE2b-256 401fb3d20e39271f4e43f24c39eed08bb64e77f260a35644e74d8e6fba0078ae

See more details on using hashes here.

Provenance

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