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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.17-cp313-cp313-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.17-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.17-cp312-cp312-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.17-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.17-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.17-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.17-cp311-cp311-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.17-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9129a69bfae972ca3e98f3d04229c1e8a43de21a692ecd4333b3f8bb2dc0b9ed
MD5 b279e4b5e410e20730a22c2cb2ea8b3d
BLAKE2b-256 1c1d8c7ee6c024fc1870271e4a89de88043b041e8522fe261b106b1e03054b79

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.17-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e216aac13c289a4ff4e0a3adc8854f105b292209d639ae88f3f61d5345cdcb73
MD5 97095146863f2ef79742dcea1bcccf4b
BLAKE2b-256 3fbd982e75e07c686dbce23d346885b9dd0403a444c8da9da7709bc69746c279

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.17-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 18f4647e4993be5727f860d7cfb4e911658c35e605653195e1f2e9fb8818c170
MD5 84893e4ea546ea75a64e2872924e7c67
BLAKE2b-256 9ad9d565c0ae00cac4d46ebed82122d0918450b3f6a5db2dc5658da6c65cf6f3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.17-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3c4e0d110fa91e14c2ad243e1d858e3b870c5919566d5079de0c9d9f28b62aec
MD5 c63d37a7f7d8167b54bf212e8b1a662b
BLAKE2b-256 3b4e1f39c01bc0a3f08faecbf9fb713ab60a5d8d09bacd21bf92acb69bb2fc15

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.17-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5c95854ba0c355f58104b734be5237e64d06474b93259d2465dda88af4f5ee08
MD5 07b8ee54e100a82379d87dc9a4b0bdce
BLAKE2b-256 0047349f30bc7de3b930fa3d54b348bcd1429794ad231b5527dc0a4e829f5f96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.17-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6b8524a159802e16ae3dc7563b5bc86c35ec4bd44477f703bd444f1a6d85f13d
MD5 bf0ee82f7a1b52af9fa96a77b35a2a4e
BLAKE2b-256 034f88fdceac295c6e69164c1e475d7f537136e33a8225a6a64ac26e81cda2d5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.17-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7dde48b418e4dc8f24b7eaccdefcf1a2a9b0f91ffd9a196b41d9e9ca834a82f0
MD5 4fdb5a18cbce93ceb3311759007937cf
BLAKE2b-256 f275937388896d41f0bb4a8cd179efca82b3d2ac2ae868f72eb870baec651571

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.17-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 66d582c04e04c613ddbd5e3b8d7549812575b9a18601c50523beb04f2fa6d644
MD5 f082c6c009dd5bdf96ba36937ae50ce2
BLAKE2b-256 8e32f4d82ae4c85ca718aa6327e226cad4b19544631df67fc646ce66b278c703

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.17-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0f2bde6059466bf4ec65f72d3ef72e2c1d6811a2948bcba9783f41f2ffe71824
MD5 1d799044b693e22d7d049d8b83708984
BLAKE2b-256 b3639c50270565d7c0cfc8e3ecd78f9f17bd454a07b6ef3619e01d0124cc0be1

See more details on using hashes here.

Provenance

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