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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.27-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.27-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.27-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.27-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3e0c9a14c2b3c1a4aef20c43400fd970627c1e748d52abd4f3380eb687fe5435
MD5 e6ba11e3936ad1d65e2457f28422994f
BLAKE2b-256 83e2fd0b87551c49828f2527a0a2b4ccf2047e90a9971b47cc311e154e36d968

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.27-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d7c923c99c7c22917948e72512d1ccd35c493008f6c3a072dc588904f4206ce0
MD5 d19d416908c5084eb797caf7e72b284f
BLAKE2b-256 32cf981df706528b4f1b81981613755d0e151a19d42ea76bdcc829b1c77eaefe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.27-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 39bc09ee824353c6f80e46b797096b3fca9ffbe9a564e445baa6cfc8c99a75f4
MD5 d01bbfa6a9dc82972c24b7c82e233527
BLAKE2b-256 d350b7e5578adf5bcf8488824b1a7f17f58391dec6e7223935e0f9e3059a6c50

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.27-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a8defa2b44e7a64fc55ba265002fe70d3542432d8be2de459abb4f196576dcda
MD5 d6876b1e805497c0d64ca080e727a8cb
BLAKE2b-256 d1ad01e0b49b2a93f4a183d296c078355750bab3717e5a89385f75627adca718

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.27-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e8efd496acee2898f483fde81d520040da556f07221be3b2f27ac66776475e4e
MD5 57678812608146d447b3bbce19946986
BLAKE2b-256 09902c7746cc291336c25e4020968549bf542e867e8e47d9fcac165fba407b68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.27-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3ac003776f9534d1a48d07b90dcd024400a200d2bae4e29afbee2f81862739be
MD5 bab00599bfbafa4eda46e1788939c93d
BLAKE2b-256 5501de55039895c495fe1aede4f6ad17bc9182c15dfe1c306b1c55858b46f1da

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.27-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 134b1055fab657e94df820f28c433001808ed205e5e9fe0fd582d9450d42c998
MD5 13fdf7644d420e63a9aa61d4d6820daa
BLAKE2b-256 dce770d5bf3f6c352eed8fd1dac068bc64d4a46b2eef42a6726b8049005ea27e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.27-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8e9f2104abed54b50f17ca6b6ec79ec15d0b65cd39d301cb05e11543f1afc7eb
MD5 9cb060384d6aa5cba44bd5b7918f83c4
BLAKE2b-256 f9da7aa390dc1600b65d0259c380aeb30ecf0e3bd206e26d73ac0be41b6bd39c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.27-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 dfb5a60e3a3d2f7550c00badb7b27259b9653ccbe3a74d1c4dbceebaa888b549
MD5 153e5de16ef4f76c707a525f3f98b5dd
BLAKE2b-256 8da4f1b0864c298d98bae52b1d858602792aeb4927735bad84c9a6b98a3b1b50

See more details on using hashes here.

Provenance

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