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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.137-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.137-cp313-cp313-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.137-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.137-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.137-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.137-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.137-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.137-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5937d859cb324f6e1f7793b2c89a83252664663cacfb64ea7ed3f0914c42198f
MD5 224c43bec1fc497f0eccafce901ce55e
BLAKE2b-256 8406d8dcdc156e1217228fb1bedf72ecdf7a297b128625ac9ffdca026607bb2a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.137-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f4e53826f9dfc12d52858a7b8b82cf5cd66c516685cb6957108b825487bd6fe7
MD5 886db6cb11a9a91b400ce646691235ea
BLAKE2b-256 038ce422a334f0702f951613a2fe85f8b28b42edd5d1f96836d6650d7a618471

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.137-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a54191673321f66b8ee702a4bf544cff214765db2fffb2a8dc22e3a1b28af383
MD5 ce4a829a4474870b2cf98c134dec0a76
BLAKE2b-256 32ff390c8fb858e071d59a7fae17bc898e5b39d78c69c4e01cb08f4de62022cf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.137-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d314eaee20611fd8c4837a126ed53acf583562d1f3bec6730b72913af0518d11
MD5 c11b1d3623b46d056398b41143f3eaaa
BLAKE2b-256 2c10c4d7b2d8646a00bd2a7e56ada3e1996110a82f7df254684bdcc146d7494d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.137-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c622214bfee058c31fbbb1e60777658a37c4f0c5075a64699efb7adada26df5c
MD5 79888bfd023f1cb2aeaadaa169fc4565
BLAKE2b-256 baec86f21f8074353b954f39cf7825e6ccaf9047ceafae4f3768531656baefbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.137-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ec55d914af48d186bb88b0f2168381da026d327a72f1de6d14149465aacd97b3
MD5 c43c48dcc43e449d0befd6cefb003e84
BLAKE2b-256 4d422d2658a366ca8cdf4572fc9b7d259a56bda765bb4b63e2ffc51d99cfb8c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.137-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a3fec1ff2be38a7b5deb63149026453eff1ff4da51780b35f05d06c361808210
MD5 59c52e671262873ac8cf87968a8bb0a0
BLAKE2b-256 ee0a87d173a9eb9cefb4b16bb38d3bd3947e76a18f67bbc42f9b727cd6a8f822

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.137-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bdca0b06cf9bb4c1038a5eaee6380ba43024890a91ddf22afe1aacbc7943241b
MD5 1d35998192f0ad04fb6ba7c05cb41cc4
BLAKE2b-256 d2b6f0e3a3d1a2b115f2cc571ae21fe22d3e8d96c14714b04142de1c31bc1f65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.137-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1d63bf8c09374ed85a5f1e2e3fcf6ef7c9d09a13d28d630afed8ebe1bb00ebe1
MD5 a1234d02deee754585f76d7744146fe5
BLAKE2b-256 b011158b291c57ca2ce4e5b4212aa3b067380219b87e5be8a1417322c7eabff7

See more details on using hashes here.

Provenance

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