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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.53-cp313-cp313-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.53-cp313-cp313-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.53-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.53-cp312-cp312-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.53-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.53-cp311-cp311-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.53-cp311-cp311-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.53-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8122519fc76ae1b9ef7175aef7f43788b6b75e549dcb06f17174d6ac1ec554b7
MD5 fe82e7cba0c3cc6604cbe415b839ff0b
BLAKE2b-256 0294bb21a6b5101d487bf69a5965e34a4dfd949833011d5781799ad7fd91ab02

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.53-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 cf4030d698e8754491cb2b2a76d2939b6ca8054ddf241fa50e024897ad443bd4
MD5 9d9da587187f83df6b2e75b8893f1613
BLAKE2b-256 4f7eb5e2074748bc2d0dba7f7e9b77c5cb0a92d9134e15e8f79c4b1c67e05437

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.53-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c320a39be5478b11da8134c5169def9e5e335cbc616dddd6bfaff1717b397b31
MD5 57c2478e079bdd187394af305fa951d1
BLAKE2b-256 4dca7dadc9cc03baba64a526066f6a91ae20e018855f5ee6554a581cc86c852f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.53-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7191efc98f82e05d998e2a6a87e9a1b4efd449a0ec6b64415a0132c42ef62003
MD5 e124826a22226ba59a7f37c77e6ead49
BLAKE2b-256 9ff538ebebc79eab4d1242ec81b543e0eb464d8e5a0beee7dc60ed0fb6a11213

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.53-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 66adc26d71d8295ecb50b9de190e3e27fcc2ae48b653c199d162f27331db5b36
MD5 7e912c8cb5a95f4c0cf9c6a524bc7c45
BLAKE2b-256 c7cab0eefd616fa6a4c4d18a843714c53946418dd22176c4619076aaf87ff1bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.53-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f3cd7c8c37558ef0b7067cb166ce9227f158bb12a9b989b83986440e766db011
MD5 2ab63fbd060854c8d57f3f20321fc6e0
BLAKE2b-256 0ddb45e4609e5f3f791ed3d57a165882b191330e1699fba1ef31ae3103f1fd7e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.53-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 185dea61542aa0b422961a5a814e2c64f18e02c957b8d1691187fa8f0783b3a8
MD5 1283d7ea375e4d736f64503166ad0ce3
BLAKE2b-256 4415737f27fa550f662f92f7ddf5e0f096984db10834deef0eb9f60aaa1fe009

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.53-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a42868cf8adf3e5da411d59c6beb570b517716dc21cb4e2d41e3ff2039c4b064
MD5 6ae3880d13bbb61f8bc894e152f209ea
BLAKE2b-256 c46ee9a16806211e8501bf03f9838fcac4c7f49730098d861ce50a00ef956e7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.53-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 362c3297c37d46011516f7c49182297bab621b3aef60846247919ce315e72b42
MD5 5895386fd93109fea0123eac1401df5a
BLAKE2b-256 3f26a35827259aa0a9c51841ab251b4b33a4c5e25786c1706a05e15cfaeab9a1

See more details on using hashes here.

Provenance

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