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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.101-cp313-cp313-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.101-cp313-cp313-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.101-cp312-cp312-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.101-cp312-cp312-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.101-cp311-cp311-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.101-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.101-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.101-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e176a923379f674cac7234390d7faf3f55ccfde213e1eddf7ec0ae323fa74122
MD5 71b3a28e69c6aa5f3700942ca6fc3484
BLAKE2b-256 bcabb252e6d3a2eaaa44e786afbb0e3ad6cccd828d9fc150e368192b12febfa0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.101-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b5a47a76f84fde909260e4bfe812c7238ab48a53e9cab771a2a739c9cace8445
MD5 27ce7f1b11859f1c22690c4950a95c34
BLAKE2b-256 8b42925813dab079a694f09051826070cabfd9d4850b9802ea271454564aa877

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.101-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8fe7e49aab64350cd9444a307f45aa9e5e2b32276667d988652fe00b024ebc90
MD5 6231dd0382ed6c4e1f0b2b86433d85be
BLAKE2b-256 fbf65733a2d05e08c7ce71608df5fca2e59c58c65d332098f906215059482936

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.101-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 facf7e5a7e4c0f5443e4e40fa91bc1bb002d3f5f8627379ad8b6f1b99e2de3b1
MD5 a93d443b1a5a4f661ebd416ce8b773c9
BLAKE2b-256 58122cf2c68657db6075130a27ffaf269f55073e04fd26e723c94cfd2ba8b143

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.101-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5a8137d5e256612dfb4ae35a4223d9257a9280cdd39f40121c7c4cca5a05575b
MD5 2719cb2042eecf9adb0a5b625878a7c3
BLAKE2b-256 22d385a552cd3aabe8ef7827993a4eec84f859ca23ff6ab4bb33a54d6e9b6302

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.101-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8f64834a16e1159c496ce842cecb479937ff90b15e252ce076065cb1cae6b8ac
MD5 938fe59c624001223f0776782ff0dde2
BLAKE2b-256 e9fd0ff2cd203e648c0b150c1a2f50390fa6f376f5c29cbf7ef6563c83469d80

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.101-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 98b5d7423184a74525c5fbd62ba14be40f5f1fc803e1c57e877b59958bf66b6f
MD5 ae5747a28fd2fa62b437782c3bf1d0f2
BLAKE2b-256 44871e5cda5628cf49ea0de2f42d7100806d0d9c4f1c2dc29508fc0350dfec31

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.101-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f64e05c71a6bbcb2e97fee571fa77b26cda566eb3ce68561bb938260db3624a4
MD5 bffa4f5d26247da4b5d06befa00db1ee
BLAKE2b-256 b59312ea323ce16d99f61ecb5ffabe1489acefdf0dca724dd7455ad2b2cb86a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.101-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b4288cb0b09394bfb347e5e58dd5dcdc0e6ca499ef4737e875a8a1d26a62d21f
MD5 3c0b06eddad5c9882057728eec680eff
BLAKE2b-256 4431ba48bcb1a8ab64d70be654471a13026c7610ca7e4c4e0334f823d67979a9

See more details on using hashes here.

Provenance

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