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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.36-cp313-cp313-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.36-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.36-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.36-cp312-cp312-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.36-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.36-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.36-cp311-cp311-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.36-cp311-cp311-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.36-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 dd87dbdbbdaf80e250991285de1fba69baae8b9958b98a887272cd5c861058e4
MD5 f2e150ccb7f46c5865ff39d376f48572
BLAKE2b-256 22bcbd9180b1d15cf6e11388cf060d39d3e6603aa850be6c9d208aa23c3eebd6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.36-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 834d71c14331d103079ad069a8d9861ac50de4b240b6bde65ff51fe2904743e5
MD5 9e322b9922e98ba0782f7f2f209ce6de
BLAKE2b-256 163a00ec3fb3d840d92ea506ad728c6f6c46cb42d2001f7c4fffd519422dd0dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.36-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c7a707b3178d5a85ddd654cfa16f645888b3a71bd168664b7fa8bd452a7dd192
MD5 5e061e27ee8c36584881b45bc734fdd8
BLAKE2b-256 183cbff7aa7ea0d7ad169845f2999d5dc2ae931743833392515306d796ebd9fb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.36-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7a4bff0993c9138e0ef9b7f02e370503e87984c70b692534dd918f4fae9b97b6
MD5 0cb5408fbf9180d25a83ab6452b1ae1c
BLAKE2b-256 4274d62430d95ef8181a99ce23391143cd0bda26c7a69cb3ea08d70a861b760e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.36-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d62f84c4e3d7d59ab5abcc20313e02b4ca5b9ef67c7a6e3de273cd59bd46c055
MD5 07abbcecc17176007d67a159011f5486
BLAKE2b-256 bf7d2d1098c578b3b4e3f5f8158a31251f82409cb630aa9a10ee21f81ceead9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.36-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 52419e92202d42cca84eba650691f3f819ae964d13d80a4ce3031514e2db426c
MD5 d2e0ee510cc051f7af6d202b1ccb5812
BLAKE2b-256 a8ee770d03c14ffdd50bb35f9fc909b027c403db0a1f8eeffc749a965df0bef9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.36-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b6d1e3e348a934d396135e520bb6a36d505b39234935f47af470909195a63f9d
MD5 6cb02b81bddbdaaed05480a26337a1b2
BLAKE2b-256 80a67b4fa7a94dde37e930ee5854f588349c6d74731628b1e5ac223d9a57f9db

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.36-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c4ec63deebc3f910f34b79071446f501a35ab26042612ebae088b1b1cf263e26
MD5 b69a6b6290222b89ff066eb2e0239af4
BLAKE2b-256 db5feb0d760c1e7a07656030fb3feb4ef22ff886b8521d91c875379a2d23696c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.36-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 79292fc89ae3acc67252fa6f00d3e22a8cf25660939d68d77ff08f5182a0e247
MD5 fbfbca650dcdd2142e265a8687f9e2cd
BLAKE2b-256 7ed5a7bf5e94bce30287741c20dd062720ed51a184b00ade63b8f96c67b1a03f

See more details on using hashes here.

Provenance

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