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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.95-cp313-cp313-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.95-cp313-cp313-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.95-cp312-cp312-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.95-cp312-cp312-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.95-cp312-cp312-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.95-cp311-cp311-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.95-cp311-cp311-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.95-cp311-cp311-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.95-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1ff8be14ee2004b31fa4154f72307fde289f608e77bc2d2e87b470b8e893e6f2
MD5 cf567e37ac3b3e21e7ba7ba91411ec2a
BLAKE2b-256 0531a66c48a15d3ad19dda83610892697e43965e7d747b2d8d119c01dfca81bb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.95-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c1504fac6b8ae8b87855f2ca13d2bb07f4cd9c0a7bd30cf1843de451575bd7a6
MD5 c3c1bd483c7d17f708a74f351b05e9b8
BLAKE2b-256 e9a25877df8fdb5349c2e7dfcda83dbee839116bcc704d80d18916cee610dfb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.95-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 fe75144f778a0a4b2129f168ce3971569a0aa59c4056b657203b570e5072a343
MD5 bce1ae990e177ead11d6edf5b0a92392
BLAKE2b-256 9caa728e21714a679954b0c007373952d34231dfa7473dfefcf1ef21bbedaed5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.95-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9a8a4c4f9b7f75f21afb777135694d22be3375b245497089ff7c21c95f2ef35b
MD5 3d2bab83e3bb9c861a763c63f0deefa7
BLAKE2b-256 e420e048ae05034e74cd7a732cc732764d67c35076c1aa2221ea654ad5ad45e8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.95-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 77fa2d89c61cd2e399c193f21b3d3b5c2e1aa790ccd8512228b661cc8ead8cbd
MD5 39e32f93c94026cb4dc6e9a7e1bc09ce
BLAKE2b-256 fed1e9d6454cf9eb52649a94de1f889b2c79cf8d2b985b594b5b7da171aed289

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.95-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 27eb8517e72b0a51568ea30ed8d98264aa2552b30b34696412a7a52ffe069113
MD5 8b1b78e8f1fb26e3b2e88e3a28bf554c
BLAKE2b-256 91648c4730d5bf85b6a57fbc62d7c89e7060f0867e92d00e1b60d5cb892c7554

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.95-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 66e9e7f7875d8fd872bc0b3da43bf4e551802b338b09a8442eb615f912bdd53f
MD5 40e3ebd16f4d88b6abd54116f724b152
BLAKE2b-256 f1d20e461a15d8875c2394e6d062efa81f35ab72f499ac55dc861d31c3c011e7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.95-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2ef651f81eb960af48eb8142614bf82f704febaf40cd16fd69f41ea658484ce2
MD5 d91d7add36c3e966d2fdce695be864a6
BLAKE2b-256 7e631a14f07e38b96b99b37406d46842cfcd6fe01278bb98ad2381422d0130b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.95-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1678dd14596fd1577335ab3f8f871b663b1c034aa5dc195ef768f9f730e2ca0f
MD5 ae2ebc1c84b620c5158695d74d4fe631
BLAKE2b-256 9bc109f283f0ff2c83e87250d8dc47e9b38311a4cf8dec49bb1552960b6d5ff1

See more details on using hashes here.

Provenance

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