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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.113-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.113-cp313-cp313-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.113-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.113-cp312-cp312-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.113-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.113-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.113-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.113-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 958bc0fd5b9facde6d2dd642ab0397831bab741e1188e4419465d3d837fb6e0e
MD5 b581b57e2a9abea0bd4991df4169e924
BLAKE2b-256 b839e6406f69591c5d1b60307e9a8cdd3d196019e90c0d2d864f7ccb68b75c56

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.113-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3694bb02e94bf0edcf7e4697fef7b238dc90cd9aa91b84fa54d07538b517052b
MD5 3f8bfed1ff0cfd935cad10fae9071e0a
BLAKE2b-256 52427fb1fcf64412bff25da8a1b317b2f59fbc11d355a4d296b319604b139e80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.113-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f6b6a678c043b9a5dc1112d6d183d3974a026eaeed9ea78aa44c06a4bf0ca2b1
MD5 d2622fd9c6aa1ad6039462bb2ecbc45b
BLAKE2b-256 e6aab78b5eef544a15dcbc6b23bb8edf4e5b2d7ea14fcb62fdd82d386bd76343

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.113-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d28b5a36549c5b05073a2b4a356e2503ac32e1ae2cf9da34b2dd070fe4fa23b7
MD5 2f71fec2f0d2c924127c0b2a256ea2d5
BLAKE2b-256 3013857876dc25b57e24d6569a177cdf4bd381cf6ca7ceeae05f17e6dad62a68

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.113-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 459bda8d2f161b52a89f9dc5ccf63533975bf995b7d0305efb6d0123effdf397
MD5 c604b8dd421258be3777da3191e89ea3
BLAKE2b-256 1bac4ddaf5df52dd1dddbf2b77805fb90943407ab23201453319cbbb65e7e1f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.113-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f29f0befb6abb4ddedbb07d223b96abb8bbee7cf57209805b15f359ca4414e0f
MD5 eb3c718c27e7b44239fa1b88fbf7c597
BLAKE2b-256 b4b253da367beb34f209fd8b5747c30215f7eca57fd6c1678dfa7c92c9abbc42

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.113-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a2ecc8e992a2c7d74022241a0ab6a813f1f9c8485c075eae368f79721cfb9100
MD5 47a5c496234793d999a907611983bbba
BLAKE2b-256 a6386946d343fe8ea7421bddde03b44de251ea6096c3df3df4cfafcb008e017e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.113-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 30bd29c269c740b69711c2975019183a9aed35d840e83435a3bdf1e0f75c66ed
MD5 79f869e75619336f9d0c1d34e5b757dd
BLAKE2b-256 f9ca9e664b2b3909f0e2c4a6c781f370ea69e0a559b628baf0f1da93120fff74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.113-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8b741067a7f112c4fa7474f865cc4af9b67d17f588d558ad46ed3c1532180d0d
MD5 a781b8d788f68c50df56d5655776dca3
BLAKE2b-256 0085a43071a80303ab9047e89fa15a1bb33b438fbfdfac48bdf0a8bb28097c6a

See more details on using hashes here.

Provenance

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