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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.128-cp313-cp313-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.128-cp313-cp313-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.128-cp312-cp312-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.128-cp312-cp312-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.128-cp312-cp312-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.128-cp311-cp311-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.128-cp311-cp311-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.128-cp311-cp311-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.128-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5d51b3a16320fe6be11020a65e02803662748a304f958730524f7c762022ac18
MD5 4330497a3636cbddac7786b82240aac1
BLAKE2b-256 913811def60fdc7a2e6aef7df8d507bc3045870bfdc79745ebafdce4f68bbe10

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.128-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4ed760b8b713a42aa925bc44dd8c4f4f797736f807c509601f4d2cedfdb57fb3
MD5 69e27cda80d21bcecc30fc56610fc26a
BLAKE2b-256 ec538d990865f6d2de291af90b716fab508c194eaa34435611cfda8283ce8ab3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.128-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2a9cd845e75e6991de12ca481a2637759bcf2a11d6880477a5841fb5b733ab2d
MD5 f17b5bfc089b5ee075fa6aba0427103f
BLAKE2b-256 66f5431ed9c2fc3f4f02c8115a6cb46558ce764ab036cdd9be987949a7a19eea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.128-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b8fafa5c5846ebdff0c689339657244a4840c539653da19c978ad3847e82c911
MD5 c52eaa85cc7c974a4c0ec89aafd8ee57
BLAKE2b-256 73af4c38487ab9b039be37c55d034d54df002d6bbb970b1f54fc031c0e5c96d4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.128-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 42ce675fa53a25d699a7deed25eeacce6c3efda64efdeebccac36e65f235b306
MD5 4fd34d2a70b637918997ac3807f97f9e
BLAKE2b-256 13a99966d1e807ab3fcea056f72c07b0742f2a009a5605db5cd2213845da49ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.128-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 05a8de66fbc24b201d187eaef26497a24f7b7072cc4d9c143db8f09d972a46b5
MD5 8629088e0bf930f9dcffc53ad9d28a90
BLAKE2b-256 f1d4845cc59f37ae5c7a87ca1b3e4b937365276988a5e64fb8fd85f13d75324e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.128-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 89428c9e767f6350b6ed1030693e9a8b1b9edf89e2b21349a49b584468b43e21
MD5 c6d493b5f1d3477c10c646310e4e9224
BLAKE2b-256 02b287481efd0cc2161ffe288552e575b3231d19553e5970ac7d04ad686db03e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.128-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 05409ed9f35c3311040dc20069f6cba72132840e06ffe9c2d4ebc7f0de1e4481
MD5 ff83cbb6f3fe248890bba5e182d8efd4
BLAKE2b-256 5722edde13befc6055057f95df347d2ca76ac633ba78f235c130994cb323208e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.128-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f7ee3b89b2e9b1fd893255ef6426dfecc5d6bdc3bdb63abe7149d16c3aeff98f
MD5 c4841ba337c8ec492618a663f87c108e
BLAKE2b-256 bdf43bcc01530028aba268b51a862b299f6f3f1d9ff2fba38eb4cd88e19a137d

See more details on using hashes here.

Provenance

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