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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.66-cp313-cp313-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.66-cp312-cp312-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.66-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.66-cp311-cp311-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.66-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.66-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.66-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5c3518f3808d9347eec5df0e318186991f747d7f174f08e0f7b6acac450fe3e8
MD5 a7f3810249537b0bea35d575cc9cd9c9
BLAKE2b-256 ccee464a716515ecbc8ee2d6e1cc535130792041cf63b408cc5d2f49da8f3dbe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.66-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 670c0fc1e6f17d10fed00c7793a42ab1fca9ce95886a994006b215aead77b1a2
MD5 8a3f4038ce4edef2f5069c8a1b0e7f6f
BLAKE2b-256 7b76aec77015b6b32fccaf80504d50b9b09c557b1030d8c303d52ff269dac070

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.66-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d006e29fe11d0a486cf3b35941af5c6b4a8211bb0c11f43685be770c579c0d78
MD5 34a6ce403da8cbc05b57e1621c9f1c9b
BLAKE2b-256 f75f03fe6f016d425b07579f24b15b687fa2fc611c372af5c6d7f631f0726299

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.66-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d8bf607d56a09c535292b122c965d1b3583c32d0be96b987dfba7abbda8ba556
MD5 199eb02897904075b289a633101d26b1
BLAKE2b-256 70d723d7e38c343b9571a8e09a3e2f6ed699a4d9063e368aaa8d718be7b07c9a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.66-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 afea0bca7c091bc813b32b9a41f71ff30ad6584f43b1c8733411ae70dc4c4801
MD5 0861651054c28a6262dcb7b8def1e58b
BLAKE2b-256 81d520cd60ef8c12d1c2fd364bde2566715fd60e9f1613dd9b36d459d90cc0ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.66-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3ff030c008989429d14b308205f6d0c1cbe734fbc8e0244158381131a12b355a
MD5 944f41f4015f0577140461f722e75869
BLAKE2b-256 9529e8b708de2f2d3c37bf3d77fd3ebca82d83bffc99396f77eb19582572e372

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.66-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fb07ec4d177e3523445a671964439a7d6e15a2e69b6e851861c0790824a44cdd
MD5 ee312d4aff8e7bae1c308984a0ab6080
BLAKE2b-256 2ea394d54b32fb88ddb65d24071d2450ac1aa39f1b024a1a8ee53c38d3c5245e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.66-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1a7f6a64e8c57a56f1987a39d50cc25edc3fa653791da50fa2ca48c7784e7a6b
MD5 48f54da3523fe78ac6587f6a1a3e3fbe
BLAKE2b-256 47d9a45cc4cf111e0f08255a1b543266aece21c49ec71d46bd96e9a4792cbffa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.66-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b941c761b2c3228f428f2f55d70563d0208b31f657c3763947f4fc7330f3411b
MD5 e40a78968a0b4fe531222768816ff25c
BLAKE2b-256 df90e7bc5d658adf86d0fbabdfa5ba298d2a6e6e857691321ea51dedf8f60d10

See more details on using hashes here.

Provenance

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