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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.52-cp313-cp313-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.52-cp313-cp313-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.52-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.52-cp312-cp312-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.52-cp312-cp312-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.52-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.52-cp311-cp311-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.52-cp311-cp311-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.52-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9514afa99f234fa57c36c01b0ea0782d4db62f24cf48d2adfae8d5f7b04cc44e
MD5 75729a3224d06b3edb02a5d7c485f2d8
BLAKE2b-256 e38f55256669822ce7698ae720baac5b3d8a4d5eaa83e8ad2f04939a5bb529e6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.52-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 db07aac4c2875a004a70f8eee99873015c0c1acb99cbcc27d0164e027f3cbb0e
MD5 ca054f8bb1feafbcf56be4748fd5ff0d
BLAKE2b-256 c9d170d9bb1dacec3c3e9609564fe4416460d0eafb5c74852643880918fffe8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.52-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 73fd0e69d6ee7dbfdd305cda110fb314a76370ad6c2289d5a2fd09491cbb0a36
MD5 61e3fd023a2f9d0ce3d16397eeb0787d
BLAKE2b-256 bebd92409fdb0809a4f46780b12513604c79002aac3fd9354f072736c2af2837

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.52-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 85f7492a522eab2f9a75f1462acc8f4e734044360288bee3d8c9c0c0d45e2cae
MD5 7c904454421e2714381f3082ae8616cf
BLAKE2b-256 73ecc4313cceb45f4569f32b400a57fb87e9b6269882c5b54010b72198e9b452

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.52-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a906cae3211307a0dbab298ae1cb3f1fe85721821bcbf9ba5a345c9de678c835
MD5 1bc97f08d4653a7416755f7c350ee3cc
BLAKE2b-256 140ef346b7eb8cb3de392baed00a75e5dd2c7726039964da34172eae0745a126

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.52-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a51429634e94efcfcbc5fe51f976083a3cc88ca259baf04f924806575114e8f1
MD5 fba960c8da0da48d5a1851a006ac23c4
BLAKE2b-256 c9242055809134c1b424477e302e6421f1c520d995e9a577c64f3377041d99a2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.52-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cf7e8ff3fe415a9c83c9e7f80d47118353db821d54a4fef3c6ea8f46e2ab0660
MD5 2f40db08acb4186e65292711b7896cff
BLAKE2b-256 48ffe25af7eff2a58d5246d5ae0ea187f05a0e403d721a4871d2eea4884d27ad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.52-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9aea69b69f9aaaad1f0e248ba374998f53ad88fc33bbe10236f1a1a91a3b063c
MD5 1b4b98efb6144bdf483dbba526ec8999
BLAKE2b-256 3ee114568d53bcadb37e4042cb67129e1052b82d314709f682beb6b9d7ba2930

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.52-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 948638afd06cef45ab15b937f6d44d3b6859fd17ab21ad206c408fd5dec64d71
MD5 e75e439d9ec3047cf915e2a620ad0838
BLAKE2b-256 baaaef0f15120ccb2f952d2f3ed333f9dbd72a0a454770b144c61e0be1289a44

See more details on using hashes here.

Provenance

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