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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.104-cp313-cp313-manylinux_2_31_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.104-cp313-cp313-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.104-cp312-cp312-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.104-cp312-cp312-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.104-cp312-cp312-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.104-cp311-cp311-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.104-cp311-cp311-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.104-cp311-cp311-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.104-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bfeb2d748426a729731b39694f04f348c902aa51fdba88ea2d8966eb8880da37
MD5 020d9fa96a36814d07d1cd69b3d09e39
BLAKE2b-256 20dc3b9ab2f0fe7c4c6dac44591479290ce79f7ca3124f5658944cb3f353a567

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.104-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 573eec99cba3d73f8873728f95df8437252dd5376658453f1eda5a1f37a34997
MD5 9ddbf19e897a30863fb0e9c68d394e69
BLAKE2b-256 ebefc74cbb540163fc597397edb0aec4cfa6e9d603445fd8c3b6e1525fa436ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.104-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 62d78a31e770a78e2352adac15b54488ce48c2183a390234ad5e56b04a953550
MD5 4d9cf68e665e38ac94a691054dce633c
BLAKE2b-256 f024762ad65aeaf1ceffe863c1bbb101b0e5080d8a1767af8cd3615c6b1889b0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.104-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 55817dcaee7dbd3e22524d50d772623d499ed6bc971f0a0ac33c02db63af444e
MD5 6419d75f246749b5630a8088b06fa244
BLAKE2b-256 f8e88e282d3ea818aeab0ec8ba7d52a46d79aee0f8fa0de5c39c3bae50479cc8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.104-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0f3cafe90fa48add70938d81b9d05f026ed2890fb6ed32641a539d389c00fb3a
MD5 7623ab6c4616146b354f9d5faed1b06d
BLAKE2b-256 a94e65f22fdddc5548c9fb5a2b9bdee85c00840d5cb62943d06494f4b6feacf3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.104-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f2b581dcde2f9709c817752bc2b39d7806448af2d5df81fc44f428152f905afe
MD5 c5ee06606fc12c5ff549d9119de644c0
BLAKE2b-256 88cd6d367199f5dfe5431fb3cb77572d2b8524b8f49ed564385018c6ed6dd193

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.104-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7801a7ccd2b04b06f6cbbb9a8e83d69396f5dcd9649f877fcc414aa2ad6d98d8
MD5 8028eaef08481d1de6b6c1e6a59005fc
BLAKE2b-256 b8ac9e1c0ec7448a3fc25c61a1c3bf9544b55ff04c3a9476e067ed52e74d36e9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.104-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8a3cb12bd9a0353c9bcf12dbbc416ae624810a2f3c07a880b00736928bd189ce
MD5 11fd8779b19d6b1d0622f6e8d5b671fb
BLAKE2b-256 581135a07db570d124f874f5bdecdd1b4ddc4959149967cc026040517b3ac641

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.104-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2e142b72dc6312c88d95b3149c51ff0fd0761b51260e0e8ea83d2ddd9ea255c8
MD5 3cea26a932de844e7d8b8fac2e398faa
BLAKE2b-256 74bb888acc25270ed77e645210cf0f16cc14e337cf57c998e9e8a9d91bc63cd6

See more details on using hashes here.

Provenance

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