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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.47-cp313-cp313-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.47-cp313-cp313-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.47-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.47-cp312-cp312-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.47-cp312-cp312-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.47-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.47-cp311-cp311-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.47-cp311-cp311-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.47-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a30b036f4bb0a6095814284096795c5721ec8163e65831eec5b7f56cddf36a65
MD5 2773e6194e595d17492b2e1d71f11946
BLAKE2b-256 aaf5e4b4c121d8080edf667d7241dca6b8789b3ddf61d251917b67f1424e6480

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.47-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f0ea0ab599075c57304841fb6ed2fa977abca60d06cfb56c5e69492901ffd004
MD5 f54b3fedce7ec6c029f6606f69ad11f5
BLAKE2b-256 38e7a7313b104f0a61814e6bc83ea7ccb1ac1a20d1c52ad4ad026d4429075ee4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.47-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 287d008da7d7e2f20c58a79664c38c1ec191e34284d762552fbd708a265bdff3
MD5 29641ae138016d4fbb037c2c971b2d98
BLAKE2b-256 6f66133bfd383a2e74c7763fa02be8585a13a87e4dcc1c5cf445ec6e824c5d7d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.47-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7325262e152a9f1e473a841beefc479262ea379b3c73f969d676f37b69147d01
MD5 8cd47a8b646122740adf49023986ba3b
BLAKE2b-256 df01792c3deb7f0d885fa40c5df3de26ea21cb967ef9f6af226b6dedf7bcfd94

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.47-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0bf7764e18534a206c09ce1c83228504e948fec34ff97111234e71fd9e31abf5
MD5 3e2feffed8b739beba71287206102d64
BLAKE2b-256 43cf6afb5b7935c69bd33c1945bb8b8b0272b49106fc9334765a1a0cbfa0af4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.47-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c52b58c302ac52620c7de0079f29bfa5cdd2b02dd6a64ee7f85532a42dc4f391
MD5 d8f3a6ccd6e02f826febdd8eefc2c1bf
BLAKE2b-256 fdd6dbf05fe7f307d73092c93bc176bf7ca1df363672a8fcc8d79f5aef832df1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.47-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f54adeb8fff5e3007be9d4bbc3490124cfcbea2e600b688a554f267be1149970
MD5 a2afdb80e208bdf9a784860b6b270248
BLAKE2b-256 1cd7ec29120e94a5442939ba493f25d7fb5290c2c061710fad0258f5aeadd671

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.47-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1ad8f3788341967d1837f4b525befaa0150256b1540152e47ae9cade6bb3050e
MD5 07066084cf8194d1dd32f4c4264e3d4b
BLAKE2b-256 61b0500737702e27494e861663e60ece2e236a2efda0a88b08ec88f3301dc8ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.47-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4a01c68e64eff7523dfb14e93e95711a8e63dba8157caeca9b0a2a094487f24f
MD5 79eff80039f7625d6caf503d693aa8fb
BLAKE2b-256 e5399172f27e0fe3174bfa6f2bdfff569cfd56e856b0b077e1bb25c148f369a9

See more details on using hashes here.

Provenance

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