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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.81-cp313-cp313-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.81-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.81-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.81-cp312-cp312-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.81-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.81-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.81-cp311-cp311-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.81-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.81-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ab73267acca764be531c63708c138e2266af6cfa524b5ca5f6f4bb5de742b770
MD5 ffcf93595b87b4471cff15fa14400c0d
BLAKE2b-256 f270aaa9d0ed12d04e1e1a62981bde734f5b66c226a7b3391e2ad5c36712418d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.81-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 142440a3306ddd4c81e1d77e2aeda4e6f614b858d9d72993339ba1015811ad35
MD5 5b500338bb3ec1f6dc657af23394b850
BLAKE2b-256 e45d75dba9f7fb9fda6019bd58b62183c92adfeceff70fc1e2456c9f34d8a97f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.81-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4eac73b2cbba6e902557ec10141ea7666722053a7d95b5e88d38b80b4ed2034e
MD5 3d6316a594734c0c5dfb693cf0c75978
BLAKE2b-256 ad823079f0f18254a0245da15f0c60efd35b4d9db0d52e851e247d77b2217689

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.81-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c4471304c712c8542963ad43de4d349b97efdee605faf93a2148c47f1ccfa274
MD5 2c9c83d4e8af8ebf4909e8b3f8924356
BLAKE2b-256 047d87f3e324d9edc3161d771cfc0c6ef9958385df055c65ed08e1bd1912b95f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.81-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0f01cad79b283ca37b419a163d9f1bc8b0a6ee1c92503002c75948ce1764a261
MD5 adb74010147b2d56b1e452e89646912b
BLAKE2b-256 1e93083823363b09e9654201321829e49e63f9803de139d4f8767c2d367b3d4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.81-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1da3850965e554e161632a35d5a0856a076771b78c03993cf8ceaa0c434d590c
MD5 fe971410f72aac2dcf113627c2504a80
BLAKE2b-256 bcbd006200428099fcdab37552bd3ba0a3a67bb81368d6fd4033de2eea4e1b43

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.81-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6a489343283e393db4cc1a80eb19dba0bc2b40953fdf8e77373d5eef55bd2477
MD5 8390e217401ad8b6d76ed73c4e7308f4
BLAKE2b-256 a6d9e8b5094fee0ec2a082cdf969ee534072af5364d1b1aee6c5c4205103b27c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.81-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0ccd9d69b43f8a61844f105cd141fe40a42952d7921630abe7605c5bd317befe
MD5 38f5fd4b95b2b9ec239dfc458bd4c4ef
BLAKE2b-256 5d75a14ccccfc2180e1ce62390ab1b822e6079b0a57d9b9547bfb9fd12ed5e70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.81-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a75c6d2e65aa4a05ac186968770944273b8c8d1db144e2298e280b57f8546ae0
MD5 a84fd85d2d587005e210ec355aeef189
BLAKE2b-256 7621c3b70258afa3a5d698bd0fc8cf00f529d8ff5b1a33d0bf9325b51ef82de0

See more details on using hashes here.

Provenance

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