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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.68-cp313-cp313-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.68-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.68-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.68-cp312-cp312-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.68-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.68-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.68-cp311-cp311-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.68-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.68-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 653b3b2602e60aee49b5a80ddf637b1d258723a4b83c55a45838dc0c16748593
MD5 7c77889595fefdb815f9c681b1ad604c
BLAKE2b-256 0d6f3189a8eb69957ca495b8285034806aa4fb5e389f3bbdf3745f9f1f443f24

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.68-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a742a4650fc3471f4937b5376a3db573d889bba72d30f0a51ec5eedfc6930df7
MD5 26751047ef55ced5f2afa9ba7ad882f7
BLAKE2b-256 844b97d2c6f31a1720c2cb1303341931810c664045bf4ed97e03d6dcae194a4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.68-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3c1316801857370a8e18e7e6b1c4fecfdd6dd0ec6670ee2a942c83e2ce351968
MD5 3c0c9b86a77e6eb8a544aeca5ebb8e38
BLAKE2b-256 16e20f78b9b28667dc19a7ec21b44c30c916f889ded6045104634e215ae0a4c1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.68-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0f6df7b9cf38e26f67dd15b692544bd1be395a4310f28f70cb02d2b48108f2c1
MD5 d5f0f6e89f832f1855dbb5328ec6d2ea
BLAKE2b-256 138638d9d89608141243a9acd2b371c73f0ea82661d490b8a9e6fa9dd31e866a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.68-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d429982ad8affaf615377b9eaf655f53dcc8022cdc8bdafa35a32b62542f347f
MD5 49fc91c9dee58976a0b8d3d5e4bb086f
BLAKE2b-256 60c35afc4d144c9fed45a9d6dcbf2b65ab5026320a94009db3d1718166ec4883

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.68-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6d986312b97cc7e67f713d30ebcee800af935adc37deacddb8633b27cc617a88
MD5 9a99f7552269d40bc18cd6e6d8b0a24b
BLAKE2b-256 f47044100879c4b8b61a40811665cbd911e2ff7e13728c6aff254bb2dbb9ae6a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.68-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ab9d33b9ed72528699205dd8fd0b064bc6eadcf2dc05c31e0091fdf408f22dfc
MD5 04fa99d3e9564f5c4350f44a7b84857e
BLAKE2b-256 2f7389407238a9f7185e2e40571740cac0aeeaa282601a7aacff1177aa11688c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.68-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6ce319db86142043fd234713bdae3f85a2cdbf975991ab6cfac45b4fac3bf1f3
MD5 38574b4d532817c18cf9b36773c33a42
BLAKE2b-256 e593415573606bf103bbc1944d3926cf3266bcbc66536feb2d54722ddd3cd292

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.68-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 35621de3cccacb51b33b6d55fe2e365e2381f418b278b37c4d83ae9ab0169bda
MD5 17a24900b0c0977ea940e853ea07752a
BLAKE2b-256 292f83a0afc9a1f63398de6187ab1736e5997bd5c6fbee9f6c462db2dc75afdd

See more details on using hashes here.

Provenance

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