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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.31-cp313-cp313-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.31-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.31-cp312-cp312-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.31-cp312-cp312-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.31-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.31-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.31-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.6.31-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.6.31-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.31-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 31fa82b0dad848ee25c0c077a23ffbe4e7a012c471af517f643b3f140639a8ed
MD5 8aac7cd0007d558b9d159817b531f7a9
BLAKE2b-256 9804dea487731bae7e07b4db0df419f236c869bdf7f6941b7b05ce1eb50ac346

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.31-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1dbf16b3da67495192db0d3bfa4982a853e3cbc7442b8142c770ee544646c4af
MD5 8808dfe2daf468c3cc1cea704a154d59
BLAKE2b-256 d134172673efdaadcb3a343c9e52f493033aa5036d94d2b3e3ea170e12e3674e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.31-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e0503a763202c52c7df04fb42e5553813fb4e780fd41871204ae23109c64656a
MD5 ab0c8609f69c712456a21da4465a18b9
BLAKE2b-256 e5b70891de478eb40142cbb834c18fd7e1f8f57b8e6319917857b7721ece6037

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.31-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 62736b300673b397f7f7276318d067cf6edbc4fc9ea676fe515f49ca210d5081
MD5 7888ed0c82270e8ec0b1670fb3edc013
BLAKE2b-256 996691fd267bfeb2de91baca5475f0002a19139b395de58a3ebf7f50cb15abf3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.31-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6b6b5fceb1353a417839dacd66dd8d5d2555f47c5e53053de1b6f361989f8872
MD5 b3c5550dc6a1213f36f3d8db74241050
BLAKE2b-256 849d2da5ae9c17cf6f000f535ca52e63b43fc9e3c151d46a02349cc51806cb90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.31-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 dcf82612db5c6be50312cf8818310f1630314a5f1590c5876b89734611955980
MD5 eb8e8c143b53d32f9c5bce629cf5546a
BLAKE2b-256 95029b6c0c00f2dbfbe0d7de60efa093e553d0299bdbce8df0f7c40dbe0fe34b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.31-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 253c4a19715aab990ad4d45ddd99f9a9bad63166f5fba9123d80279b83acbd7f
MD5 cbef2d6c5206ba753e89dae9f782b585
BLAKE2b-256 9cbbade482e48f9edd31b793491560c78bbfc1530099fa8db611beff8544a83c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.31-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f8db2f9c44f4b54e4083f5a27a7097d53169bde86a478a5598d2200fb31bd30a
MD5 e55a2f7fc2c89a0aa42f10f8a3885271
BLAKE2b-256 e1f74a88c00176e516ce6b214a34557bf0ea393a26742419c02bce06a62b0d7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.31-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e33f9fc2d21c3dd619038e9eb6ca21f5398509c9a913d6412241a124c677952a
MD5 8ad32003d69845b944b9f513fd23022c
BLAKE2b-256 e18ab35d30b2004acf6b381dbec08a0f3032c11f94909d3c1d5309293d083cab

See more details on using hashes here.

Provenance

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