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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.101-cp313-cp313-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.101-cp313-cp313-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.101-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.101-cp312-cp312-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.101-cp312-cp312-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.101-cp311-cp311-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.101-cp311-cp311-manylinux_2_31_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.101-cp311-cp311-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.101-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 babc95c5d7d959a6e8fff58fe66f2ea061f7724f454cdda84620fb4aa26f2f38
MD5 b83662af5ed6eeed696fbea07d83ba1f
BLAKE2b-256 cfd971f6a79b569576cdfe3b83f1139eeb044e4b143f8b847a86ceeb5bb43f99

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.101-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a443e6f699289016b66080aef142b2d3eb3eaad5c71ba55f2d4ef55cce576dc6
MD5 92b634bf46224bc87c9854c779db12b6
BLAKE2b-256 50ed6108a24a098a6190cf03d47e8a67d06ec48a9f81519dbe3d08263af3012e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.101-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bd6b380b03f10e148b0a4a3889f752e837b27063740d4b9c4c11b48c4cc1e6ee
MD5 f11310f49b2006d8adb00e5ad8e11076
BLAKE2b-256 d2e89dd6c08bc48149058129c2bb52f73d067c4101f1507ccf85c9ee7ebc170c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.101-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4e3a0617adbf442c846ed7cc500679da5e34b2e4dbe159010751d2fc25689e84
MD5 422271366be524d837ecd5a494dad21e
BLAKE2b-256 be22bc500d9de4160476c655012794fe884a8fad0ad793adfa180e8f4d461e9f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.101-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8fcdf57febdcc615158d40f55a273e52d77537f32ad88c3b19629324cdf3bc6c
MD5 a33bc960d7fbaac01f2ce74851d68a7b
BLAKE2b-256 a4aab8176a6f6631bd44e16e0e7e611213bbaf7b147695cb58c676728ffc7ebe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.101-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 cb3b2ab5425d0ae14aee746bb423c7ba882f0fa8df0e01c72dc006d1c7faed60
MD5 c01fe028efc8126eb1f24b6f1c21d232
BLAKE2b-256 e4b023a34af098cf5c0e8532f933f6fe983ca2292e792419eafee255b3f0ba11

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.101-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ea87d4e35f0f357bece63e6dc014a73f0bfb4959fe085cabd6cc8bd0dc978d61
MD5 89f0d5b61b4c4bb1084f3f57bef4298d
BLAKE2b-256 4b7c52ef6b4dfd452ae033c9be26e8810a91cd85162697d11cb2cd4b4a5effd7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.101-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3f25a41391e3251421b7781771ab3978ca12a3d45c50d50c83cf2f4a715eef06
MD5 912c7245bf15e0fb077d0d6c11f74f33
BLAKE2b-256 a4a6a68889fca3e64f58c8f9d5eec6b40c726967d7a54fdfff902db14daa0164

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.101-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b9b36fb0cc509ad5c4fe33e2292b3e811eddfa4c0a236335292035f8df97c145
MD5 f211798d6aea44b8e4fdf598c87a3eae
BLAKE2b-256 758a9f5fd9ead620f4179fdfc072e0ec779b795270a81c8c4fbf87a8a01aee68

See more details on using hashes here.

Provenance

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