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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.90-cp313-cp313-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.90-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.90-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.90-cp312-cp312-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.90-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.90-cp311-cp311-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.90-cp311-cp311-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.90-cp311-cp311-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.90-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9a46edc5a49ec85c3624a75ced4807d0f0554fcf715f1c37a052dd7730026ca1
MD5 5e0ca969ab71015206c33f9f72a31083
BLAKE2b-256 0f06574758d40e379c3030ac1a8ec853f8fc8ba898af6ca38b5c2d9c38cd3844

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.90-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3ed8637f50474792bf852a487252567f399ba83485f673b7b650efc4a69f2796
MD5 5d1ac49a6aa8990017941ba9354f45f0
BLAKE2b-256 00a962d12f4dca52438a9dca3bb012419a1acaea45f9839d84f58e1a05e3e2b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.90-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 87277c94b0fcf79ee5db87ca5f7db3a4a3b75dbf11e186f5b527340879649a47
MD5 693efa37feeecb2b96710b17731e739a
BLAKE2b-256 c5e35adb627c4a0044a33c8418c5db8621c5adbb2a226b9b5d90897cc32f0d52

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.90-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 921593d92fcd248a6dc87a0171548ccc8a171b1f17a0ba4422585e93a6f170b8
MD5 648f98c278cc3f1bb6089894c101f2a0
BLAKE2b-256 852bbb779f626ec032ff4b49a71ea04782afbf8d3fe2cde17d60a937a93d3b47

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.90-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4b58690dd48a9e225a41f1983fd76b4259840a164e45ef5b5ceaa78ae544280e
MD5 be7082115fbd26d49fbad762aadf5886
BLAKE2b-256 7fa35c5565e429e9e188ec6658137c2a2de643e307ace657a23d6625b318d64e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.90-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 033711950f860854b563629c6249626e10639d59f94ebaf61bdfef2b5473b228
MD5 c45e61cf2d6545576c0e96f2a78bc898
BLAKE2b-256 5909f3c4c5c8711142d47b16a3cc48dc99f4f5498382a5c4250438984d04486c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.90-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 52460317adfc5526fe463620d96b0d315fc9818bfc8d046059daeb8c5c892959
MD5 9e71785442441a53f9377938b48ae72f
BLAKE2b-256 c0e8709c87904d7cef6d316c5b092623b0ef53804c4d567d947354d18c8e91c4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.90-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 18f02b890468b8b6cd7a1486257c3861c690afd02f05a321e3ca54199b08fecf
MD5 35e3a4eb20c9aac3223eec7dbe249649
BLAKE2b-256 289c57a62f93800e1383a4057842ff34730e135b296224b023d3add14f7c3eef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.90-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8b605ce3ca99934116adffb02d80e6fdeeae5511de2cb9dee86180654d5228d6
MD5 31d07fabd9c5d189c5d2e617eea1aed3
BLAKE2b-256 3b89891b08e5c10240d4506dfce7aca40c9181da3458f67d10235a4d70f86119

See more details on using hashes here.

Provenance

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