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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.105.post1-cp313-cp313-manylinux_2_31_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.105.post1-cp312-cp312-manylinux_2_31_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.105.post1-cp312-cp312-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.105.post1-cp311-cp311-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.105.post1-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.105.post1-cp311-cp311-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_inference_binary-0.6.105.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e78426c76939955120467d6008b5adcd27226d405c48242934aa9582b7b0a8c1
MD5 193e715b705c0ae1f1218003e5c2c8e9
BLAKE2b-256 af8994bc2ed509ce79134d261837d81a7f6230bce6859973338c98c42e94304d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9e091033d9d36cfaad58cde3cd4f7b14310492eab27273912a7ccd21ef971e4f
MD5 2293b660341ab8cf24bc635928b3d800
BLAKE2b-256 27f40b405dd4cb3bb69ae996d061ea884115a025dcb2effa56d19725ab9f11be

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.105.post1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ca9c9c710ed5cf7a1749016efb03bda7843138bc95db6df08351ec0a72ca6ab4
MD5 9e455a285958e9f244432f4066effca9
BLAKE2b-256 ed116cc555422f31d76b3f83f4522a689c616ae4b134f0355b0b33d9c151aef2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d814f3857dbadb5635da97ced0831b2542e937288f5c618783e4af7ba10021d1
MD5 2cee6f7389a875a42d03775c953b3f39
BLAKE2b-256 7911bcb661502a6d5e2fceaa593edb1e88d5ecd119f54892c5f541496eeeb24b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8d546844fac49b3b4fe815d132f6289f22febb9c02d020cf28a1d6be1f7cba55
MD5 e4f2b947e25ce49f84ed4d5a5a4b5603
BLAKE2b-256 119f33b07cc342689437604f88f8dbf3bda4bde6bc54e8fa3f177c7bb56d6bee

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.105.post1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 75a5aa07a84b2b708a75595ab39fc231a2b6763bb6c87f668bad923cef2ee524
MD5 f0d4e72c065db9192772b30b5e613508
BLAKE2b-256 e1716367fc8ffa651c946cd72160d393b8506f2407a03296353d07623ca2ecb0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cd09b2886b09ab9f9e2c2868e0d803156e71bcd2eca829dbeec6c51ef85aaba1
MD5 5fc98d80960dae773c35409f905d63ac
BLAKE2b-256 b029d3f2281bb22593b5e0a8829cd033a3c3f3dc7de6bb5ac3b09a199dc81503

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4a26058571cf9e14ee70f692b67432c066eaef41df388ed04ce96b1e13323566
MD5 e1826fa72b70e5531736d5cb0f20618b
BLAKE2b-256 e77248505e34930045569e87b30f14ce7303e32804aeef50bd207313cfff9658

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.105.post1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 71d177c1dbe3eedc8c8dad526f3c14bfa35876b0d659965cd469383dfee2fd30
MD5 2c5b7b60e3488f8a56f36ac537f3aab2
BLAKE2b-256 770b19571ab661f03e48207d7748c44e832ed17789ecb1774765ce6c2786a45f

See more details on using hashes here.

Provenance

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