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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.118-cp313-cp313-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.118-cp313-cp313-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.118-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.118-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.118-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.118-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 498c079bee88db74cd214d3074c119dad36cd4028624e5c2940ebd267da30aac
MD5 cabb380ffb6ab00dc0a78d7add5d455f
BLAKE2b-256 dc2c4346aa85f542706c0407cd8a1a9b46cab2a57fc9ddb2c5781d600c691d3f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.118-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 959f81ae3832555e8c12e969b4ea6c7f798ad78f637e349d84008705109694c2
MD5 6a52780c2d33c5e678d54d97cb2c87a4
BLAKE2b-256 0294d73809f5bff640000ee429314b4c8c01db06702c1ce2e996aa237faf0b37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.118-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c5ee107109e79d07c9df71138fa18aafd1877b9b9f9b7b88195a791455dfc38a
MD5 339e8375551cb483ec90aedc63568227
BLAKE2b-256 485f09879761130442016466f038127b53ee82b210f7c47eaedb89c2aeaaf9c8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.118-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 23fb6b9ca41a07584c4bc6de3031d0aaf2807dca451b8227940c76e32a13b882
MD5 ad3b8c32b1425013c08d20dc9ca47229
BLAKE2b-256 05d56db730f06759ad51f08fcbf98a04eb6c34120ea490c9325b57450334280d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.118-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9c8a7d46cd1fac7f41e17d857819b278f94d9ef811ab88c1843aa3a63411550f
MD5 1ff6ddbe70fac7563aa28e37316abcad
BLAKE2b-256 fa013c46a3093b47aec2ade1871192ef90aaa0273211f4f681a8f095982edce1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.118-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ba6230a4fdf32c03490350b60a96c908b96b7d060a38ff15963c2372fdc28676
MD5 828f9f4672547d09acc27786549bb868
BLAKE2b-256 4b6d0c46a09204ea7d12154a3a619551f156e45ea57e54a49d40e10784b93756

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.118-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8a3f3fa53cb39ef5fcee2a028db81bd061e436157d9720ad6a957e39f3657425
MD5 117c04f562127460f4a5fc7b9a4a9e89
BLAKE2b-256 48a5d9aafce5790610c8f0d2aa8300de4b567a2ecf73b37faa9ac6444dcad7fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.118-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3f06a81a10d5d3f1ebf0db41fc94a585a958d614d8c3592a0577a40390f364b3
MD5 2511aad659ffcfe40757d7b1e6d43fff
BLAKE2b-256 cccaa23c114067bb3b19829c24079e09e72c08f18a77305fdd3876d65afca605

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.118-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6e7ab7c1f8389b5bdc220689bb634af1dbf9229a364c2e779c8001e46fe05298
MD5 c442c433fb29fd9fb02d51337d69c1df
BLAKE2b-256 f84fbe483056328c8d123803601166cd4b99f775a637af506c9fa187ce7deb1d

See more details on using hashes here.

Provenance

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