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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.86-cp313-cp313-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.86-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.86-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.86-cp312-cp312-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.86-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.86-cp311-cp311-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.86-cp311-cp311-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.86-cp311-cp311-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.86-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 341768cad7eb407af9f03954a5d90917cd161a4621cc1efe5b220307b7ca6fce
MD5 964f9f6f56586fd51bfee8cefc59a9e9
BLAKE2b-256 33f966803f20c5e4a1642cd65b3aa02e83f4e8035e07e35ef00f595eb2c3f23f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.86-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f47d7b7b439494d2125eaeb9737560a46e754ea05f5420892845068f704e2462
MD5 e634865c14f4b69e15fee8f995924aa1
BLAKE2b-256 873ab7a1809380133f1b9ecaabe5331451776991948d58eee9be24daa7d70505

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.86-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 58b7d7146e8af7c3003521b5406a71c57738bbbef1796870102518fb6f3f9bf7
MD5 86df24ea0cf6b2da3bdaa477dd28f0a0
BLAKE2b-256 bcaa45d03515dc955d37a542baf004147bf429661b7fd863f9cbf10cd7ce8949

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.86-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d7dfc090cbb40042a43cf0e5d180b04815e6e04c9f3ac9cb80fe73c17cd52b17
MD5 77dd36bc706046176fffc1da7d17db7a
BLAKE2b-256 2e737402aefd3c9b01e897b3676b6162d01e4c9ae957e35a07215571c9bdaa84

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.86-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2cff8058643a714348137211c3b58a020542152df7b5ef0077347dc710483635
MD5 c1426d595eb23e4e87898b1ff46b5091
BLAKE2b-256 c78a2431e13e81c51352f60419bf9da79557984d87673195c061dd73781c367a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.86-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 22f09ffc0c3406af375ba15bebda4fbb64023c327a5532eeb8c8e53c62532c10
MD5 17a537977afab522e9053834f1c1cdea
BLAKE2b-256 f9c4f08742f9ff310faa59f789dc024b24dcbbcd4d8aa7d27fd3bc9f8c6aa335

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.86-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6742d549d402193b403e3d39d8922d5fbd3a83005f059d632a6526b8f2fd4914
MD5 8f546b5f5feaa7938a40a2b7fe35a1fd
BLAKE2b-256 4ecd3a5953d5c63f95cb231ebc3fe3fcc3beff9c228ba6a11818a6b60c96dc44

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.86-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ea8a7df89225c556d609457ef28793361e2f288f0d6d8253efccc8d7b88c183a
MD5 a22730a79e795ef80c2637b93f83e495
BLAKE2b-256 a433110c1ca91375cb728728d05ee28a78b701e87088a78cc18f30a86eb0812c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.86-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8e02763999325eb862a65e3e57d953a1362de8cd17495e4dd3009130c9d107d9
MD5 ac7c0724ed07cc41a9ca0af438b8d5e0
BLAKE2b-256 8df89a4d75e75638a31beab6d658d2afb1801061017c633903076b8e6ee922fa

See more details on using hashes here.

Provenance

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