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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.30-cp313-cp313-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.30-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.30-cp312-cp312-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.30-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.30-cp311-cp311-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.30-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.30-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.30-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6311c7b66e66574ec2d97b7221eadc243c8fac349ef8c64e90de1517ed428af8
MD5 e59af1be2e5aaf3dbb0086886bc39cc9
BLAKE2b-256 12fc0c18627fb184722bc5e269080fee4fb2213119b9a5bba032f1d611c4b577

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.30-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b255f308937734d88ea7b61b6e2fc782f95db4174eaf9b99fe02ca5720b87ea4
MD5 8fcb75d26640e76df799d4b4b714a363
BLAKE2b-256 f0f281498e5f00de1440e05b78b21ac3ba3bef754da5330ea0284dd5fd9fee3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.30-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 00b8778eb7fe40819a3928fd07f68a0eb4bf5b21f426ab92428bdaf48c1a1aea
MD5 9f4cbbd2144727bfbc5d36447b66d889
BLAKE2b-256 99128f90e0b34001fea31089ad20bc4244f5b49d416d0ac45df8c0625fe4bf82

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.30-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e55a7afa450e4b77e5c7d0bf4db9b4388e59fd0bb977b9cf01d1e09139bb4318
MD5 e5ad2d72c1db26a218aa8fba36a40b7b
BLAKE2b-256 6c1d271761c5f59530bf673894f083f02735ce52da64d900c0bc16c952eccd0d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.30-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2e38669e48b89256b71f525baf14c8e1dc8b2aebe557508f902395dc6733a88f
MD5 da49b1ccdc83663b6bba937b2ab7e8c2
BLAKE2b-256 ebcc68ef33c9f08c166af9c708f67bd202d7c9cece8d4faa5bee3da0e05a9ed5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.30-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 94a934528e6d538abbb1f2a339e94966bbc7ff029cc472aec832d2d6329f107c
MD5 84b8e6c4e3dc0ce3376511f44805757f
BLAKE2b-256 b51e0153a106fe8963fc48650a1105877cb9b0597023e3a5dc21d530246e8726

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.30-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c79c30232a48bd6319b16dc23d16de00e23ab9af9b92bdaff53e77f9772a5997
MD5 d04478f69addb9fb5f11fd0a76b0696c
BLAKE2b-256 7150163b0ede58323928257e8e75d89a82ae738216e0785eb39a6cfac97fdec7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.30-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f98d18fbfa62d54d596f5152f38faf85f275677c919d7f8b8d2623ab41712a96
MD5 af891b4b248ceb88a4617333f2063f3b
BLAKE2b-256 b727dddd41f0b20b27f4c6b87992f5e0fc8035194672ba91b3f0d550c5178634

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.30-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 254399f433fc303f11cb26a94e0bc9241ab1c431dfc24b9529a7e70b2766df52
MD5 eba294538041d4a54b7e2237fc4b8d3a
BLAKE2b-256 987460f3d22e74b2ecee5b9db0b5adfc8bae596f63e62a699ff1a1548ecf8d00

See more details on using hashes here.

Provenance

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