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.160.post1-cp313-cp313-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.160.post1-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.5.160.post1-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.160.post1-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.160.post1-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.5.160.post1-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.160.post1-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.160.post1-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.5.160.post1-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.5.160.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 063212ed1b44986b7c22fe1937b38d3e538bea5befce52b8ef04d8d9f9f435b6
MD5 847a7c90abf0724ce1c867ed609f4448
BLAKE2b-256 be4f979a132c6d3be566305f6f1da3b77b7ff1ecd2c565499bec4270426a8a0f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8c5493b333cadafdc530dd7dd4756b09a36c8e1972ce89c388b51db5063cdde3
MD5 b9482fab8e8c8a483a9e0f91265a4464
BLAKE2b-256 b4eb59ce7dd9498023b76e684e1d32e4c99bcbe97d62eca988f0fe08dd428462

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.160.post1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d449e8a00c2c28abdd1f359e89e24daf5b1ba412a1ba2b0b01e50c039a4cc862
MD5 60360cfe337a70f95bf79e5e636f78a2
BLAKE2b-256 33cce579b20fa83c758f4bd7ddce411d81e5541657d0d8e0772db8ba06ac1c98

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6cbd43d4c092ddff82d2d5866934aa7e5889a4adb853c05a26c669943a487e8d
MD5 89bc24cb3839401357e2ffe71c73f5ca
BLAKE2b-256 c39fe44cc90486500c0a5b12387759956660cb9303c6436255143646b629b102

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a194f22cba7fabe0e4596b57cbe018d93e20d3f8b2f1326be8b7c1a986436ea6
MD5 9284cad44d497e75094902d7cb20e181
BLAKE2b-256 d5da537ce327f2e4eb0a124323305a08ad09afa851f0204ad0e069035a1301e2

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.160.post1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 48a9f4ca48a589a93307bc9b992968a8cd523100d5099d1092d11d6840a6ed4b
MD5 89d222b33b869bacf408c4fb97123234
BLAKE2b-256 46ac483bb0fe5e6072e650aa7b45eb00e3002216319e5775e7aea1d4dfc27d05

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c6ae683e9f4d108aad9f770641932b9b6c0724b549c5440f186632ac198bac5c
MD5 48687b0e1087f3cd184391300be1b9fc
BLAKE2b-256 ae4372dead68f995a04f75fc52d66b27a4d72f670dcfa5da93304c17e6919742

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 89de7bd618bbb6a93c7effdc3b440f778ba122122f711314c5b5cc75eef20bd0
MD5 b5b311f62f32e049e6cb45e546b926b0
BLAKE2b-256 cf7f2663fb72d58ccb9ac98ecb8337672338206925658dbc43230e3d6236ef8f

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.160.post1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 325d17f4a5b75eeb751ea3b39fdae43eeeda5b61adf9354adeec924e82979397
MD5 38df8123141159c9f7cb14db8b12ab27
BLAKE2b-256 b9a7627aa5700cb4c6758016fe87bdf717e6688e9e1f4dbab8b46cc8dabe0bfb

See more details on using hashes here.

Provenance

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