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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.133-cp313-cp313-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.133-cp313-cp313-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.133-cp312-cp312-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.133-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.133-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.133-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.133-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.133-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 454ad7e190f92d0d0600bd0aab55972ee036d45ff424deed4a4cf9bf24aa8849
MD5 07ca1d9f1d459bfd4150642919488da2
BLAKE2b-256 7cdd311ccda42eeea911df3fc20ec4c7a4385bfa73070fd14431212529402989

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.133-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d1eb4f863f1c17b789d3713d1a2e238bca46be6f48afe9d0296c40e0fb23f208
MD5 5c4ac2299df8aa124a93bbda6228dc18
BLAKE2b-256 26e0f5b7450b6597b3d073145fe770d81bd64a88565ae373844fa11fcff9c882

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.133-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 cb116ba9a6d331e9d420e9700f9d901a73c92a94b94d791eae470f90a8300c72
MD5 11dc6d2489634d1068fb7299f840080e
BLAKE2b-256 2107b125e9071e7a398d67709be755ed998ab936340dd4bf849ab5066b32ba36

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.133-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c77b7f8297d1a8f5d0f53a648836fa91f827e418516e1e3d4b067f0f23b54d7f
MD5 6d2ad76d96fa5350a721bab39553acd5
BLAKE2b-256 85469ab430583d0272d5779fd8115ab6b78aa2a54b25a22f0ee1a6a1706caa52

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.133-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 eb33db816cea06e22e875cd76d1737dbb81d2997df58be70ae6317744cab3f32
MD5 9e348d2742e3ea6fd43ea602d43a5f8d
BLAKE2b-256 46d706690fad42aca66e5e81c33a1929c539c02026c87f7391dc6d36dc68bc3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.133-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 33e03e4c4de038142a14d0d7c0a812fae058140cb123dec187d6efdd3b8cbd96
MD5 11eb3084709776fa4f4278b828584e28
BLAKE2b-256 bc1dc829d84f461405debf53f5d270e10eda27ecb1323cf5cf8703f79cfba677

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.133-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5c409882adb9a0d2217ef957e3fdd8e9224b0942fa49b36210a19e371ca32539
MD5 4ad9c0cd5f140f636ba5339c521a0be5
BLAKE2b-256 13cec4ca24d2634d8dd105e2d7f63d6882fb4438b40e91f8cbb65a3e80db5564

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.133-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ec7f126591559c1222abc725ac8687a07131351d23741f4eb20e9e1c0760ff44
MD5 e890e42975798dcef11bf35664584549
BLAKE2b-256 900948356251ca7c8fbd1679274c9e3e9ef568605ab9442fbe27405db3f9f1dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.133-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c919ebb06f29c407d68cd3995a46fa27eca3245be7878e49c42fae515b9f720d
MD5 ae67ce2e465308676602748b0a2f9e63
BLAKE2b-256 44ff10ba64c6f019b3fdd3972995acd6421eede9a48296f7c6d2d0fbf5cb9801

See more details on using hashes here.

Provenance

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