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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.97-cp313-cp313-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.97-cp312-cp312-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.97-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.97-cp311-cp311-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.97-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.97-cp311-cp311-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.97-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 344f4dbaf729991891637cac9c3b67224f425d3949fa868e0b7cf04073e30667
MD5 5d96547d1f24c306850038cb010292f1
BLAKE2b-256 5eaab592b2416c71677496fcdbd21f00727a1b8c8447c287442e289c21aa7a48

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.97-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5e3d6789cb12e9b6f46fd988720c9c14203e44417cf17b6959f4c1169c0efb0f
MD5 fbba6f923759a080b294d96f889984dc
BLAKE2b-256 f281b88d8272a0dee9043e5b6b090f5c0e0b62b13ccd915dd248306ab7036559

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.97-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 70b68871e2b0b1263eb23f35f7d0addeb3fd179d971b855dc51b94c5bb544821
MD5 74f7417106f56de6073da970b506d27b
BLAKE2b-256 c1e04226e1d987bffa82363164d2efe4531d3509b0853cd8e031366a920160b4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.97-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 09ba3b2bb5f59f840fadf7676ae4a17339916c6cf2a361f26f17388496722566
MD5 74e58368fa3b1106e8541323741bfce4
BLAKE2b-256 6051f18044d2a781b86519578476262de73d86d472119db844199c35b4253f52

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.97-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1f1dd5f8a23ef7360445adf767f6bb50220fce92158de683c50b6c3abda26a90
MD5 96b27a435bf3a8157596f49136a79ad1
BLAKE2b-256 45f829ba43294201cec96ecd4e86d20d32f1bcff6a21f4839f1c52d44557fcba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.97-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 21db81a07584653eb40967c6d57121893ceb2526c74851ae182eb2604b0d3681
MD5 b5e79e8a80378e014757b3000b618464
BLAKE2b-256 96c7997577eab4b522512025985180a62c10e9ca216372c8192402e5b3db980c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.97-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b7314749cead0cff598f35d660ec943b444ad96ec6e4525ae469b2112e79391d
MD5 1366c7a5157b75b5f7e690b298832905
BLAKE2b-256 2744d1bcb2719c1695cfb310d57342e40d9becf1cabe98cfd2230b1443dfd782

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.97-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 11802ef2f991c4545f367580e123d7de8deba2cb03cf6b97e8fc4c9ea875b28f
MD5 fe36c07a5a02b2cc2e5564cd6abc37f9
BLAKE2b-256 76e42546f84a9b08558bf9af04dcd68b5a96155ce8f830bbebde66dbf548f69c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.97-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ca34b31c189e40d1b92f179afb6b27c75aec5d3b7474f786cf052246a9f9e3a6
MD5 4d06082dc204a11d90f0caa51c1913a2
BLAKE2b-256 739b9e3540a3404fdd51e6301a539e278f4ae71ed97a4eea40b5565cd1dc17f4

See more details on using hashes here.

Provenance

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