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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.22-cp313-cp313-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.22-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.22-cp312-cp312-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.22-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.22-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.22-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.22-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.22-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 feabc22476b784b80edbf80b05420e8e37be67e7594dc6f3cf68540783d3ea30
MD5 ec216f39852330cd8eb14ee5a5274725
BLAKE2b-256 0ff3abeec93e3ae990ef899f75b6158a532acd57bcf7f48e15dce2bfe332fe7f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.22-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 171195b09595f1581b4c322412f712b63d434c8561629fdfa2ebbe0f6efa183b
MD5 dd3d26bea8dc09d535b39ee9667c24a5
BLAKE2b-256 5ea1ddd29e51fe1b4d9431224a0d16e9cd55b7b2e8fd24ffb6bcbc47bc2430e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.22-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b660d5fb3ad9ecc4ec0dd0f25371463ef5d5b0d3724559f2af52424f02e9ab81
MD5 8bdca7dd4f8256899b85b10b1d9c35b3
BLAKE2b-256 d6c1618aa7be04e1c548e53652f0e53c05e47bdeb346e3efdb7e40c96c73cb8d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.22-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f2dc091fed674a2fccd1d3116ed0c5da0801a2b50c3a68162c62380164de2ec7
MD5 73463bf3635e9e8af2be6ca7b83c0de4
BLAKE2b-256 7f52da59be1c90120a2fe3749e993b9100966d15ecc4b9769235a4630ce4b894

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.22-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0594c0e11c22aea0c6ba57cacb7e68b61fd169c7e146ddbfef7dcc1899cf606d
MD5 88ee14cd10a1d5fd9645a7659bba3c58
BLAKE2b-256 eaadc435623ccdd48581908b41e1d82a833e606034a00a788a911f58ea524464

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.22-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2909cd230ca75e3dddc2e9cdd0d1ed39324c89aa2336abde160ec98da2d04aa3
MD5 872396cee3219f04127be8b3bb1e8496
BLAKE2b-256 e3f24049b850a15073bec4522e97e7c95c184e1df23c8932d9ed7ee8cf00e77b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.22-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c11aab1d708b79ef5e0699108f3196ada851f012e118967a45a161bddd3426b5
MD5 d456943d3ecd1ceea297135183f3842f
BLAKE2b-256 30e1a39f55998a882b02c268d159d5af03415c697230d5156a7630ca1d98e680

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.22-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 33845a104cd154206d7eaf1bf2616bd186a1d97bcbd66a90618645542e6f4241
MD5 07bf53a8ea29867172b2156190d7a9db
BLAKE2b-256 db09bb70174e7262f98d232aee3c7a4c2b464364ce44503dd845b9772eb7234d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.22-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a552c3b7d9ea911c6a0c8ac57e8467a66bd710e9441629e7bb85767d7840359c
MD5 e9661986d0b2397f2b1b99b8234fe15b
BLAKE2b-256 6da39e81b92ee1b81b30bf6b8c74ed6e41cab94fb0ca95d40749b658cc5a945c

See more details on using hashes here.

Provenance

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