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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.2-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.6.2-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.2-cp311-cp311-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.2-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.6.2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 61d63e7b0a60b3ef3a1294c1592d032d34b30d8fd769fe93b2bc39ee1d36178b
MD5 051e6b853befae00aa9e40b3d16072a6
BLAKE2b-256 83aac248899c6f1485c5c4420dfe05c97f4ab35d9d9415f57e950bec94a0b77d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.2-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9e7c096ac68b9a266ec402c8570cb9e1ea581b19f4e6e97a34c82439329e2bfd
MD5 c5a2b21d726bbf9cee85d4a05a35df8c
BLAKE2b-256 acfce8a6a9008c5c62382540dcb54d46b9bbaf5df49f43c8b8691f705619f0ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.2-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9aa2243bfe6875b006ad679dd500c548de7208a7699d356e09bc632ff52f8725
MD5 316204fce1593b5f8a5221e0393081b6
BLAKE2b-256 3b7d8379be1a31c451c940cd0f76a011627a8f6f669fe307b44e866531a370bf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 71d20f8fc707c0de7635aac8bc429cd37773c6ced660926f52b04e9189d9ca4b
MD5 3a2f82509d4fac4b45c954e9a7c13c7c
BLAKE2b-256 70737d62ceb82d1f70551205fe6f7c61b86f6b94418088b72b61312ec90c9e58

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.2-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 50e5e62dfe6c2ed136c5eda51a5f1314cd05c99ed58720648819db77fbe653fc
MD5 9f1b46221d7be5791c3c20edfce49a0a
BLAKE2b-256 dc37819d45f0b819b57e37ce3cd09397655a7cdf86dbad3a5c1e78a03f859713

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.2-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 835de8325037ce14654e0a4227711d8b5ded16b609e48dc481ec2d177bca83ce
MD5 193c8132ea778fd73b5053119417a436
BLAKE2b-256 452772064373357e64472acdb8fb2c89d613483644c0dc174d785dd8e4ab197e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e4a36e470321a4a9f2a4dd1502f696e62fd7607aab2dcabf87a857187cf5d1f6
MD5 2c9412b6822af35d917f0852f1cc5fee
BLAKE2b-256 a28927e1f037d8359f29a7e83a0620d5e5db2149c5d745183caf676d276a0bb5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.2-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 33d7633b9e0b8936fecc78437ca5e89d3e324b815631a1b437da48e11f4375ae
MD5 6343dcc95be28e2c039b744239d8cd17
BLAKE2b-256 58f37e5f0b7cb13051840c436d5c228e69768a74b55e3dcbcc9294897e766c6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.2-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1836e003f16fdd2cb5b2c5db8af08ff1db50f9200e625873cf1b04c336717d81
MD5 277e782d5d83dbd65c7be179f85278f9
BLAKE2b-256 0c5550ffc754a7c18cef16bccdcb32823ce37a4a09be1795468cabafcca4c239

See more details on using hashes here.

Provenance

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