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.6

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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.6-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.6-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.6-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.6-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.6-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8ce3840167ba1bf62f433979423b77079a3d73355e7ec530342402a2b31e00b1
MD5 4243c32773e97c3efdac9258dc693cbb
BLAKE2b-256 4231c23ccf34f678b2db7b1c899405c639271dbf29cba3856dd1290dde952cc2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.6-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 fbf572cb997480775a997234138eac498ae230b6f61b725608c2834a2a234694
MD5 5a11f4b81f4302c6aedce98b0fbdd5b3
BLAKE2b-256 30850c9daff6d165f33b473dad5f11446b89e0d64d33712299e88f1170cd0b1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.6-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2b3ddeaae5de3cc84e54f6fe72d30666af723421a7d78d8988cb2907e1ede421
MD5 0cf67cfe8efc83fe4d95503a3f15f13e
BLAKE2b-256 d8806fcdc895e695432a32dd89d645e9714fe612e1ac9ab65c0addad9bcca6e0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 96323b8de43ed01f07ab2594ae15a3c8b78abf0805c947d512da7d8fff89dd2c
MD5 0b74667a252c8eb300093eced67433b3
BLAKE2b-256 ad5bdcec6e89ebd270dfcd55fa18629bd6c167436bc7fa10966bd28d05953f13

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.6-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 475275e31b769c3af191edc8758edad78f87fb17cac92f3bf5f389f5412f8599
MD5 e82f49112389ab5d35b3565d0eff6f7f
BLAKE2b-256 248158edfc644a3fa1fbc20380d46e7c058a3444b2fc002b38153ae2a7cdc0ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.6-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3a69b5f9d926530216ca95ac904fd54c906b60a3f571127a3dac3109a542d99b
MD5 576a32f46f0d5594c9f1637d5d5f105e
BLAKE2b-256 77927ceb3ed70390388b38258505d6027eb89175eb09928b5a2c935d79e861f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bfa7041db13f4dda5565445ec53a4944555a75ebcdc08a8cdb5ba0798670ec00
MD5 69c0873ec874c00760c46be631b784e3
BLAKE2b-256 87be295952a94a0cc86f7b9b9cb5d2dfadf7b3c3349111a37ad47ee172684cac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.6-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3b8ff30743b697f45ef0a930fc9907ec2d9c4d8d79c48a60966df758416326d6
MD5 daca83bc0f679309d172cde487ae440f
BLAKE2b-256 28ceb489952feb20dfc5e1e70e19a01c491dea7b4985dfd6a1bde87bc3678a3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.6-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 192599611833970f224104103f8873907af97e12176670c0c3ebfdeaf6deb842
MD5 4cb201725f24266aec2fad087c597cae
BLAKE2b-256 e0d49cee33eab524ada751e8adcfe34b5327a01efd6497e19b5025f748ca040b

See more details on using hashes here.

Provenance

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