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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.165-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.5.165-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.165-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.165-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.5.165-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.165-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.165-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.5.165-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.5.165-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.165-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e11448a7371ae1a43c4cd4bb2e8a6a212acc7cd11a95189e04bec97263709bd8
MD5 303d0a0c53c26a87e3c8131ec3951b15
BLAKE2b-256 b422ac0041622fa366e0f9b08a3ded64279ab16b15ab92ad2fa2576145bffc3b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.165-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1a69e0e262896c6823ae188527a3d424d50476b2db319a3a2c3977030663dc87
MD5 6cc3498449a297707056d57dbb852a24
BLAKE2b-256 634e768449719ca3d1e5b64b755f9628d9408c3a68fee53dba796379e667fbe0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.165-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7ad99c4e9c044912600e1ba69408ed41d8f2f07a04b12737f73ded31981d28b3
MD5 e97a2d308e5712cf7d019dc5eba20faa
BLAKE2b-256 887d132fe67b0146f7d3e3bddc0efc278c5c9609afb23fce4cf676b2fdc61f45

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.165-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 491da4d3016b37555ae644a67e1358c3f8c63096b54db3c247d6511abc799410
MD5 bb8520667389012ed0160affca39bb65
BLAKE2b-256 609835d41361d0208901b8c7f5e08278ea6027dd50201a90394dbe414dada37a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.165-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5b5aa358d76ca0c40d12161f13e7a2f23c672d9fc9262a729f1342980639e97d
MD5 fdc43429ca2e1f4e6c1f80b8a1ce605c
BLAKE2b-256 c39b482cd5cb62d84e29e4f10142efe719a6223468e43ebe37cabe03c966bb42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.165-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ab9881577fd89502bd4f89658f52f455931f292dc2150a170906ed4d89222bfa
MD5 05e344203814fba9ca5a271dfe921c6b
BLAKE2b-256 35871bd2632d29175b0c506fa7b3f3617244062682c543e3118dd248df8a306e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.165-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b220d8d2214c41042e87baacf7c9deb45af1367bccca98a765de7706961e7071
MD5 efb43d3541be3af33bd98e390ee54475
BLAKE2b-256 24c88bdb197812ddff696bc05e4f2fccbf6884db367f046c2e16a291d2883847

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.165-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 020cbd369fe12f14b067d4c27be8c0c8941200f7085d06645c6ffaec725716ca
MD5 cd138bd778f724d62ea700892c5db9aa
BLAKE2b-256 1949307a7fd5e4d72689a952e06f176961d1d5eb5645a717a61cec7e59adbcb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.165-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0f212445df752a374a628b06ee159cfd9c1e044bd555a1e28c3c133480c33cd1
MD5 ffc22c31b3b2c54fa055eef62fcdefc1
BLAKE2b-256 e94338ba4edde9b33d6bc027770eb66d424640609740ccaa04ac9a8afdc89ff9

See more details on using hashes here.

Provenance

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