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.138.post1-cp313-cp313-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.138.post1-cp313-cp313-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.138.post1-cp313-cp313-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.138.post1-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.138.post1-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.5.138.post1-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.138.post1-cp311-cp311-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.138.post1-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.5.138.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.138.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f202a5523f0be858f22d48a5409998430bf099a2fa065e63011ebf2772b4c59f
MD5 4d5595616b8c42958cc4aea8ff777cf0
BLAKE2b-256 d67257899b1962e9722c1283a794bd5e102a53f0fe8ff056549a88d8f93239fb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.138.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5196119fd361f1413a120dc275e6dff81437a5bca4e2225834592f63377b3207
MD5 5a7bb79182c43372b3849068a37fccab
BLAKE2b-256 960d245b90d126e72e43b7fc39b7bc945bd194dc2eaf873a4cf8e1113fedc1b3

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.138.post1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.138.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 677a5f524d838e7fe5a59e37d45b942de249d75a925d47b810effc0c9c0ea458
MD5 635848200d49c5f6ac8c5228ebdc63e0
BLAKE2b-256 6511f5d3b84455a58973afa1db9d3a7ebc07dd49a357f2b98b2b52beade89853

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.138.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3e22bb11a48e5479e3bd4efccdbeae4678f7307925756cc8ef19810353013ab7
MD5 79930143302297d10aac8c4746c18a55
BLAKE2b-256 9d91506a9015a41ba4e521c2436e75b80c68cb7fdc0ada841ad11e575abda916

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.138.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e8e593466f55039b3bc26fc9a97696d37da43c4a9ac622e824157b72794f218e
MD5 ec06ebb010b1969aa8cb55a5f8dad86c
BLAKE2b-256 dbf4aa51a8830e89b1e546245f0853a05d59231121cb7d2f6d1aac6d91b99229

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.138.post1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.138.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 601b1404a0a019615a04fac98447b9169b6b167c4e102ac686ec3f4524479747
MD5 ffbd1a705a20a411a758aa81f6541633
BLAKE2b-256 37020a94de9b2ecc69539c60c2725e3e02ea2df0bf113a12b08a1bac745715a7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.138.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c41bbde2da598c1c28d16b7f44fb5627c3ed3873627c9c551d546f448ea78b79
MD5 67069329300fd11b4c47cb3c2b0e4133
BLAKE2b-256 551fd9894cfe1e16435d029c40296247eeabd3c6736a98eb0a3d19cd91156fd0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.138.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 632d706d1a3bdc49accd221447300b31f4ca67b5bc8c5b4a565f0b3167dee97f
MD5 8b2c47ff66389fd0f1611609c0ec8c4b
BLAKE2b-256 c472e868ca287998793bebb5b895ea84c491ac9e79869f5cd5fe692a649b5257

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.138.post1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.138.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 fc21b4da99b9fe9509bf08b84daab9ce2ec56ef442b78bab281a00e317de5784
MD5 a49b0952c67972815a62311755947e4c
BLAKE2b-256 aa6d9fab9e44282020ec451339d0b80696790216059ad021a9cac6ad8ffe555f

See more details on using hashes here.

Provenance

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