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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.62-cp313-cp313-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.62-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.62-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.62-cp312-cp312-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.62-cp312-cp312-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.62-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.62-cp311-cp311-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.62-cp311-cp311-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.62-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c101335624ba3fe8af139a8ef03de821ac396441e6a100427e7e1bfd1a7ecc94
MD5 d859217dda798121fdcf503fb354212a
BLAKE2b-256 fcee6f56669aec5b15b3f3934bbdda807086ad224041aae916ad2f70c9b256f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.62-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b46ffd8acc51edc5f162f8dc469b5453d174329a44badffeb3f89c0b050908b2
MD5 d0a16b0976d13708dab310af1285b8a6
BLAKE2b-256 a586ef091fa78c2e90e8fa8c9b00330e537d09f0a02faaf6025d2332a7d9f10e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.62-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8b45f4d45fc6823a3ba8b922de029c1e90e07e714fa22ec1cf54a082b26cddd5
MD5 d3dbf8ac89cc32ca0485953dc25c3218
BLAKE2b-256 54a2d5f27737937478959855133be1a47fe24c9a6bf0c6f6c7bda8155cccb757

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.62-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3d866e00af8415a763f4be9fcf840ecef1534d67d2de83143c5429860fde6e4e
MD5 2237e674249586fa7c2955b056a6d946
BLAKE2b-256 770ae98920eba8d813e74eb7b1736493f068d18162392b563470b0cd72cb3e54

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.62-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ab0476e4ca3042425ac42251df11bd472672e5c9ac35899ac303c9b4fb6a9bf0
MD5 f490b5c6645aa3c918e121d66f435143
BLAKE2b-256 e1c9c63cfdb04d0551e4676afd6833e1c1447965a44209d1ac98f72cc04a412b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.62-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5489c371e51082ab602b8969ee705c7aa8d6bfa7c151b698a99e7d7067778939
MD5 d78b5fbb98913b591ce0a8397da6434f
BLAKE2b-256 5efc4976cbc373a1d73403e7eae0523a939b08a50ae0534ee942894b7a881201

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.62-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 942978bd9b58348d2ecb468c8302cc480bc5a8ab69e4735a1e4644fa64acdb8c
MD5 2f2699676549f42acbecfad73cd88792
BLAKE2b-256 5f4665ca75997221e36b948c9d1e5215f5cf1151a3161bd67b7c62d60aa0d726

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.62-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 be9bdd76dce98f36d6b47866720cb28900b1779f08bd442c587371879966672b
MD5 611950c15eb293c39350f50a400c2e32
BLAKE2b-256 8787451ec08fe025cef87fa7258da094be7e6f77e6de021620c21ee349b729ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.62-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8db6b4c261a7b0d58dc5909541332d431b4908f7d67988e10aa7eec4d44330ef
MD5 5361119f20991437fdcc32c3a132a9fe
BLAKE2b-256 d8b09bb64161088969a0f4a50f218c2960677051bbd3dcf6df9e33a5289b3c40

See more details on using hashes here.

Provenance

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