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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.35-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.35-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.35-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.35-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.35-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.35-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.35-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.35-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a5bc6b58f7feaa3084907c43334f41b496f57fae54a779d435876e50defef0d6
MD5 ef10036336da689e5e3ce558a00efd2c
BLAKE2b-256 270c0dec7c56e65388a23d9bd9fe4a1d8faaed6b0c65360ee501a3c0f5abdc75

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.35-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 831e04ea438906f5b6cef29667ceb460dd365fe6d533b446b9facf6503ad6fca
MD5 866eac0a0ff7030e801953614214cdf2
BLAKE2b-256 4489a01d50bc1fe7c10cd5dc702907379c8f97d30ce9715ce6baa2d7b23b6248

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.35-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 957ecfd6e6ecccf780ad39a1e20938be7a8b70bb56eeb016f243a42be4294620
MD5 32b88073924d453130d497bee75c2300
BLAKE2b-256 d1fdf6cd866a72bf654946de7f0023f9347254c457760b6b276d209b7529fe90

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.35-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e430ba9dad53aafdc1b3c5d89816dfe814d380c1e8903dc94f83145293d94575
MD5 66de36e9491fa83d6460595684f3c7b4
BLAKE2b-256 e171ea69d65bdd7efb09d91d8646365f18c0281908063a9dd0b8d4bdfb2ea150

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.35-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 facd9661efc177fb604a443f2d2eb74ed1c8aa52f2fbc8d3626ba00c224c171a
MD5 59195953de0f34f1d9ab8f6c4dec857b
BLAKE2b-256 626b8a3959c2dc3a53072aeeeea41eb1ec23c021cbcf35aedda115c6da8513a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.35-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5aa5a5cfb064e6971d6578cc247399f951fca33d432efd700a53fece0f9ef94e
MD5 0dbb90359b6b72ca423c076d8a6f8323
BLAKE2b-256 a54c15a001cb68858c52ebfc884fa38f25a57c6ccde643a5c471f4a9f031b726

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.35-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9715d1224bc45231ad8665eb52d608fe508409e9d5b27eab0d97f29f34032c88
MD5 fd9bb7eb9f3b916fc715ed24387e0d8d
BLAKE2b-256 a1e537aa401e7ce50a78a8ea7418b762c7eb9e2de71d19890be02b01ebe1e1dd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.35-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a22bd9c196a97c31b1fa723c56fb9e438897b9321337f2b35569924b5ecb5064
MD5 f3c566161e1f9774855d51638fcf25bf
BLAKE2b-256 e6655a4de108e3ca3931f7bf1f1f3e1cca690ce3a4f1ad80de0233e1ca7f4d8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.35-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a4d3b5144da178b5ce7672e57e79dedfdeae8fb5d715e2e36a58adf18d70b702
MD5 d782bf08adfe0adac0e695df33bf660c
BLAKE2b-256 16b34046fca177c1ed355a6a5dbf0f1e3cb9e6594b5582d30faa8238a92ce789

See more details on using hashes here.

Provenance

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