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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.29-cp313-cp313-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.29-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.29-cp312-cp312-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.29-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.29-cp311-cp311-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.29-cp311-cp311-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.29-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b181afbe3ff91ecfa1fdf737e7e042edf3d70ca35fd83b1612962790f340cce6
MD5 1f85f0d188ea731f73b59ab3b884e3ff
BLAKE2b-256 13ed7900d5565bbd90795c335c1aede88e3174747d6687854c10844f0910e3d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.29-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 615ff0f266c6ee3fd7a7e9bfc67b5be7adb56743f034afad5bdcd93c553a1259
MD5 5a7c5e8d3dc1236df99bcdf8258a7986
BLAKE2b-256 49bee515e3836241bb4bc3d93ad9c4bb1773e7550fed9314b3b2c4715c1ae39f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.29-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 db7ed31cc90ff38ff8615af6a8e4d3f66937432f231bba9e0825e947c545a4cc
MD5 7238da6eb9ca8010a61ac4678328f1e2
BLAKE2b-256 6e2dc438eb80e19f4c7a33e20b04016188af168f80b9f95ba2acb4bcb906f166

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.29-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e400b9a0d13b81ecdca540c23912be62fe7d0947fa06d7ca394ba435e60a28ab
MD5 8042b468715367d155b43e7890d4eec0
BLAKE2b-256 1454b06f34b1d2b0e60d8e71eefa358be18b506fa3332f9a438728670679fd56

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.29-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 df8af984a30152fab3000dcf8a638310c004954abc5bdfd007e8d14dde81f40d
MD5 efe50b942d85b4255d51759f1a7cda17
BLAKE2b-256 c7b4cb95027ec5022e522a07f783b485c767a8a224bb5568c4957ca60b3ebe15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.29-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2f310d987d10766ccfd7f179862f50e959454d47410c01c2a0dfe730ef3e7931
MD5 81d28d2ee8c2c8fa447fb24f1ae762ec
BLAKE2b-256 b5357e9095eb3ff7c920cba142846420d80c37e26861b51f73d9298b84fd1cf2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.29-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fa18e48c95e5dba4221668bbcc4a1fc4f92c5f1f7ab8aa37464818f675e0753f
MD5 41eab72cdb5b5b1543fa0d46eada9a11
BLAKE2b-256 050c13c6e6e7034083bd62ebac341f0dafd68e3f42e5bafc1dd4eafd5a62615c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.29-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4fa97ddc3b951af253c9106d2bd64f9eb742068b40299f47d6771f0201755890
MD5 cc947e0f8f68a9f7be88c174ea4b3c24
BLAKE2b-256 32065f831468d0d8c693c39e080be82b891a06a52c859b3264b41856e009b55a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.29-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e2416e08176b8613c280419221104920e5ab0c2b21ade17435041cf14a676519
MD5 74b342793ee7eeb3d01c8943986ba5ef
BLAKE2b-256 b8d040592be6b96f3cbd8e920264f2534c0b910623b4f4fc7c05dfccaca49114

See more details on using hashes here.

Provenance

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