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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.20-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.20-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.20-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.20-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.20-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.20-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.20-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.20-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6a7fe0cb5b627a8364dd961a12e17e289369a088ab000b09fb92c5ab95698774
MD5 aa9aaf0de2d726a79f8a743f43c1d0b6
BLAKE2b-256 62c3d8ca650df4cd14b492337801ab603953d340ca31c9215cee08e2de6428eb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.20-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 81ff27c714124a315d29b5a3f2466807389bc52b77e366fc3bb4f9e1b7d0a7df
MD5 29dafe96794cb899e5805a156028a3e6
BLAKE2b-256 f21fbc0261a6ba4001348156795fffe9f4dcacfec66b6926f0d40ba6614abdf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.20-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 591076cd3d42212a34cc6aa6597e8f0c73e08b5c7652983e5bd2efccaf052fab
MD5 18c109ff4da40b0f5425a4917f3929e9
BLAKE2b-256 f03820f78b409a461be56659bb7eb3149bf2917eb48a171f855b362777aad81d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.20-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 faabba54fd0a50846dd33411a27ffc202478f05710bd11fa97f70dbdb9098590
MD5 c5d1ff026c214c84ee850570afcd2766
BLAKE2b-256 95763015debb849ee89aa0bdc6e02fcff3d3543bcca912f7efb91bf5a72f1d1d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.20-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 26ce25ecc0835d4f8d5c25223c363bdb2c7f2c1c27fc04fd0cd564ca94067de8
MD5 c8d313d4664b925060e358b48b0d3f2e
BLAKE2b-256 77c84044ef60669afa1d51df87b958c64a8749ab08fee94ab1081ee2e2e6b3d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.20-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9b48c158e8f906180cdb4ea36a6ffbabb2ccc9ad938cee52cd69390a92a4ecbf
MD5 aaac7a16ed63aef567af2e5b89848429
BLAKE2b-256 9da479d6169f8c198c3e1b6e6b6c2a6d5fc4c01ec517e1d0ab5169e66712126f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.20-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3b77856f7fd7ac218a9d59a3eacdd0e9e4fa2e32810bff9e177927bf336ba9fe
MD5 1e66e2948444d1f8c43f851143580600
BLAKE2b-256 c0939ba7fa01affb727ce6871710cef1b396e9da14c0caae8d73560d43d52e4f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.20-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1e57dfa221b8c931a1de519a8f3971c1f09195916e88e8850caf79196e689deb
MD5 9ea36f8676ac8e92a7dd4fdacd7d962b
BLAKE2b-256 7fe989ba3bd83aa79b7fa1892317da1f32fb42c48dba64582ca69235f07402e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.20-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e8f7c46acfb44823b106759e9be4e3c0b8f823c480986e840ffdbe91531b066f
MD5 ddeb2610c2055da67c24cce7b3d7cc40
BLAKE2b-256 8cae502c9a553f7428e782e194badda1b96562ec791d010666f2e392bcca401f

See more details on using hashes here.

Provenance

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