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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.83-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.83-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.83-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.83-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.83-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.83-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.83-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 72db6e8696cc70836c87878abf3f2036b89e2723049bd27e776da5c3d22df538
MD5 80b0ed4a467ac5b07e1c43af1f7e3749
BLAKE2b-256 b39510b3938421fc74a8173f244e05f7d1cf56ce5191c32daf37fba244a59659

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.83-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 efcb1b11bf0b1736f8924a28dae0f48401ccbf6c736f52517cbf084871fc1a4f
MD5 2694eabf6199a3a7d93b2af0ddfbb7c5
BLAKE2b-256 9498c9e035c63ef2419a83b435e5b665fb9b1efc794a56e2c564ad47b4f772f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.83-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f5a99754be0b2a4838be456f153ef8bc0f5b2db871468e779c9c1f1b9467a69e
MD5 cfeb15d00bd4e73913e61370996e57ff
BLAKE2b-256 c25827d02357fc8c7ade2aa8a448d09bcea95328aa04370c0bdce71380365f37

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.83-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 93749360b0b7c6772994386fe7cb4612de38f173e0186c269c37ca9343981b9a
MD5 64d003030e0dd7df7b777a11f8bfa047
BLAKE2b-256 5a621ded0f9fae87ff0a21d41c0e605ead4349f7075e4a5f65c12595cfd58042

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.83-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5949c0e3906b8bd80695e6f66633dc20d93465dc8ba989862e125528dec10ab1
MD5 e50d0939ad76f438a75ced62f03779db
BLAKE2b-256 a18267c14ea87d6c63b3e4b138fb2e8a5a4fb3af6383d266ba73c305f69207dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.83-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 fb896a7a89f8254c096b8dfd1d008aaa2303636952d7c66ec83b1beb02eab1f6
MD5 f213159ed056afea4902442a72ea2970
BLAKE2b-256 ead901f623ebb7f36ebd70ebc643c551e681089490db0013f1ace92c53bd6b00

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.83-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 92f1d14c01597e67432fdf9c396ca81e677fa691ddc2e7a9cf01a48994e29cfa
MD5 35279064a8575509dfaee404cf240da0
BLAKE2b-256 76a8cdbf6a30bd68d0790f1083d693bf399a9a249804ca1b47cb95f71f66ee89

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.83-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0ac1b4bb52cca7e3dd1e15185def562523f5a7650372ae2f26db7fd1c31feb5e
MD5 62ba367b9a9d6d41a31b535a202e0055
BLAKE2b-256 9e813b8bd1dbf4624e5e66b991b1fff8a5542a02d0a1889a242d7fdf6a646f3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.83-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e816937925892fb417dbcb1e4d62696cc5138529c355bc403a1478525ebe4a23
MD5 a8f5a8d3e2b0776f0f749af281e59953
BLAKE2b-256 b15e9b0b32f13f4f759b872e9222e04954b76fb083176f60c52f1e6a6318e135

See more details on using hashes here.

Provenance

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