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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.136-cp313-cp313-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.136-cp313-cp313-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.136-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.136-cp312-cp312-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.136-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.136-cp311-cp311-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.136-cp311-cp311-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.136-cp311-cp311-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.136-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a75d80593d1f0d5692282007245c1d9ee5ba2c717f1f324260cd065b75f0c594
MD5 36a00f7a652410f190e6fb1b2d2f7570
BLAKE2b-256 9cc73be9b57271c9734119211b044e21fb738b22f102441206b5023ffac90bb9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.136-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d74011aecdc32d7b92061411f4a15e230bfca4e85975fc1cde1c3f53e938ffa0
MD5 c8e7ee43942cabf770c607196519fa90
BLAKE2b-256 253a5c65c9ed11f2b9c41ea5cf5a697bbd0a0bc0dc8ccaae579d1236deb03e9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.136-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ec3f4009e03326fa0030e4d157174d8a97e031d017c91fb1253a53f5fe9c54d7
MD5 e1f3c1b51224d1ae92c99302bbf3b548
BLAKE2b-256 11f106ddd267730cc7831d0ada5b6c362b005d9d1ec72bbc4accfed36736048c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.136-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dddf9adaaa59a4b31ee7106fc1b004bcdc4555836d0fb7a8c9764d9169555e2a
MD5 b9fe9ea423f8222dafbddf015041f0a1
BLAKE2b-256 cf7238af16c9f9a9b72e1b76c636227090caacb7b61c51cccd44509b09d41d99

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.136-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 00bfa5bd08518a5f14911be839085147703ae9fcff495f421b38be260e365596
MD5 c346f61fed0364fb0af17c4208bb7302
BLAKE2b-256 18229e288ff9d602bcf45a4004cc881d1190e318453540626f8eebf055727fd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.136-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 98c5ff15292f5953c46910fd002d25965b187778b402e1b9fec0ed9e9eac3b30
MD5 39baffe7c275ec987939de50976c16a7
BLAKE2b-256 3bd93ac371510e32679acd873fb506e5dd5c263cd8aa1acdf503420adc3d6247

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.136-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 250b50bd982ea0ad8688d326bedfec69d299fa79f9813ac90bffd69d4691a3ae
MD5 e86fcdb796479b67ee3aa1835fea4153
BLAKE2b-256 96341844691ced17545864430b16ac49a5e7a3027b18fb5cf7e212367ccc5636

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.136-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e9e49ffaf03a8f5608fd0809f826b71b2348e9cfd87769280392c9ad431635fc
MD5 7f759b73b14e08597efd740b22b19db4
BLAKE2b-256 05248ee3e43f7b70a499ff46b8405caf7693c17549865f5cffa19da622ccae87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.136-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ad43ae70b7b8127382d7ee946194fe1d25402a47018435308606f3a0e8abbea8
MD5 5c65840e41f91c7a0566b3d83e74ae68
BLAKE2b-256 ca89cf5bde6c4cd2b7ce8888860a3fe1cbed9e783e9397089cf8cdce727d7cb8

See more details on using hashes here.

Provenance

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