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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.26-cp313-cp313-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.26-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.26-cp312-cp312-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.26-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.26-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.26-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.26-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.26-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 74357a1981c84d64aa703746e8cda380e0174048d3767e38aa1160e5e82519d8
MD5 e0313e1f4cfef2ec7ff5f86d8b2e65c1
BLAKE2b-256 31022bb89858f3bb9fe4e071d9f6b40a8e7a052edca9b0e2078b8ffb592dfbf1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.26-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 16ed54e945fcfabc1d8d4f60dab4e59a10c182276a49fdf62614e1cc69b8cc09
MD5 555b234c0bc669a9266ee8743421df59
BLAKE2b-256 1012c1293342b7c6a46d265411aafdbd10f81d9c898c2f434cd09a4e712163df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.26-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9ffa193b1b1a19905efdb276a463ea8d8f1a8de0bf22bd8dd85e51c2ea489045
MD5 df66b3686467a614e5b0d3265df050ac
BLAKE2b-256 cb5855e74b342124acf84624aeed453022a83aaa96c91ac8ea9782bc14aeb4bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.26-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3b8f8d8c92661f93f4a7ff971631abade127030bf6e118beec9f744096851f8c
MD5 b7412fd0e66d360ab8e988123fd3c691
BLAKE2b-256 d005c4985d007da99ddf733512a3b0481a38ec55cbd99e345a3d98e29e48b4c1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.26-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c57370c5b3905501cb0ea977ba075e861deac4e8d7f82f2a2d3b9e395477de6c
MD5 fb92b51bd9dfc8e1dcb0903771763655
BLAKE2b-256 42330452594ceb1e71bfd5ac60fb9ec281f33df6646c63dcacfd91721ebab748

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.26-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9a41ff86e61dcf81ba28251be71947610f51bc74a2f60601fd86119fd670ce23
MD5 4d7ca46c73a82aa709402ed071289c41
BLAKE2b-256 a7a8389cf28520ca0ec3e6f52ebeed05c33c2e335d665e6618e66a86f1917008

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.26-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6b9666327b2d0cbe6bd43f19143183cf4b09a886c8be88b2c84e0b56f22466ca
MD5 16db0cbd3df12969460e799c54ad9bd7
BLAKE2b-256 2d24d73f3fdc671fb87b12b4561b80e22d1a6ff732a71d57086f6ae22cbfd821

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.26-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 00a65e3e553f6e602354e3ebe2d9195051a913bd369ac0894ec712a9d60f6af8
MD5 1e631d9cca4320b5e1d3c2c791940c3f
BLAKE2b-256 6a95043808c9099a860055bb1d99fb90c32190eefa3c3f99187a30619d979c3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.26-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 193f745129965313708ccc31886f49c4ee90052b8f28443ee3164533232b6a28
MD5 be8f3d4690025107b53dadf85efce2c7
BLAKE2b-256 ae98517eea54cb4ed450142ccaa173bcb8e78fa0bbb8f8f47eb554164bdc60e2

See more details on using hashes here.

Provenance

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