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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.93-cp313-cp313-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.93-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.93-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.93-cp312-cp312-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.93-cp311-cp311-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.93-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.93-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6a225553a721e6ff52972e04dc6ee05930df7d98e40b7ff3cab3b3e2657181eb
MD5 fe81d2030f6c50140eaa7fd002a95b63
BLAKE2b-256 1d5b3992afab7f4c819736c30ef8941483343a107770c9a2587957ca7828f8fb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a2772f4c4cd87c7ffb341fc89a92ee8be06c196b38421f8efe41fdbefb6d22fd
MD5 ad5e5f61a529346fc83596112b07d7a5
BLAKE2b-256 4e95c0fa278214ae13ce8faa5aab0aa2eb435d468a95bb35342cefcdc1f10491

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 cc4db5c7415c6a3d75fc43dfc75c1b58482b858d5f52b3d6094ba2ffc469c2b3
MD5 6953a3502c09a50bed94ee3f75ce7faf
BLAKE2b-256 7e7d197e1d3f168282c178a88099f7630927580ca142b3c977a7ca63d52a1b7f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ddc25d97230746ca8d694b07a9bced15e258a9f3ad2b796627c4d44458047722
MD5 907207caceb503367c4f9c987b578db3
BLAKE2b-256 43250737e8dcfa37f577dc1ffbdfe2162cf00aceed6db1d56ac443be1133f376

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9710b1e34741389903d9181493daa99a0a2047b0cb1f6e6ab1fef0a7b4df44c7
MD5 ed3e51f8151b2744ff9b7002bed4105e
BLAKE2b-256 1123ba19074d55633909b410a400156e95ddfdc400436acaebfda13638067872

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d1cd86b42765a10c1e9e1184568764f141b2a0a4a34e8cbdb6c9152013585cde
MD5 51a6d4f973dec390378c441d5cc50e17
BLAKE2b-256 0dbfdf07adb545fc1292425bf4a0551ad2bfdde403ecca2e4ec74feafa5b9b37

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0466252d597ec448c513cc8f827cc22875c8707191577e10715c3dfec9ef6d02
MD5 ffa75223a1f67c156bba705a2be4cb64
BLAKE2b-256 3759b3e7f48db9dc286c0c694c6670813e41a27af4a565f0e3726edd8e7da996

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 61a08f7e399edfc5b0b14da2b114515cd113207d58542d80a986f62411e621cd
MD5 ff8baab7a10462184cc6cfc2a5a6a588
BLAKE2b-256 c89737d12cc95852b67c0909c7732a54251151470416f8161c4da3dfcf62acd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 38677927ff967e988de6dbea9b845f8bd09fbc66f910fb3b7a4fcfc73c97e5c4
MD5 c6314734d8ebba72fdb988469c285061
BLAKE2b-256 256a510f31918dc6e82f2bf277bfc8e94f9fe40cfe8fa7f0ba0d9a3447e7abaa

See more details on using hashes here.

Provenance

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