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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.146-cp313-cp313-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.146-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.146-cp312-cp312-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.146-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.146-cp311-cp311-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.146-cp311-cp311-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.146-cp311-cp311-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.146-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 41906877ebb87039f71d410e1147f72431e6afe5a2f0feee96d2fc4b57d9883b
MD5 8506cfd956d82ae5783c1d5180a19f36
BLAKE2b-256 2f960940fd42968e334be74f000a71269e5690433d778c64892f2f7ff6a19035

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.146-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5670e1babb03eec44b95e2bdebe9497cf26507a3e79d53f01379151c230fd3c4
MD5 bef157ac2d623493239a785a58f59b08
BLAKE2b-256 5e4c2bac43184eb3db94002d5b5cee1801159ee4d4f73e11bdc934d3808f061b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.146-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7afde2968daf008c1cd84b54d082899feb0f9a0dd7ad88dc14b61b3ddd7252f4
MD5 8ff49eb0048e58712827bf328ddc1295
BLAKE2b-256 2919b42f556d893bc7ed6d0c3ea74c078761908906332185dd278e7a3883c570

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.146-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a319d39e3e297ceed6215acea61df59cac6e3e044552053481cdd1480fa441df
MD5 23f36266ddec159c129733235ec0023f
BLAKE2b-256 49cb8f4347cda03f738a77e857e938f5c686a0b5d2289b753954019c948ecd81

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.146-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5dc7832e5971d04de2d998d934635d78cf83a10fd8d3d2bda679b1fc3cc7b9d8
MD5 42fab804792fe9b850992fc5fcf25c7b
BLAKE2b-256 4620b67950fd8cdfb23f07aa601776b5018b7542c21dce8d470e31ec39330398

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.146-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e1f43a8a46e45e96ed56681448f662a7bd78a0b2b55e729713a3052ff49205cc
MD5 694b2affa851d0bf9825f87b6750c7da
BLAKE2b-256 7b5c1264f2c8d88e7cb171431082667836cb02b12c44bb97361174f27fcdc81b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.146-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b0d7765d89b1561c17372c914ebf304a5a3db1d7ece96365d5dcacac74c85f21
MD5 4774f85545427f62e82c84ac171cc92b
BLAKE2b-256 a2e5238736a828d41f53ce4e2aacbbfc4f488f80c73069508f774a0d31bbb65e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.146-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3ab496767ab56ba4688a949c51cbdb159bc6403d669a655ddb88aa3c462120f5
MD5 c707474e35ea371306dfc40de412d4f7
BLAKE2b-256 82278714e1fd132a3a9360203ba14639dc355391d3d8b6ea10ccd033a6072566

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.146-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 861adaef3729b6a7b1a102cad216b66e5a28580758912846b6a39692fac77c71
MD5 2a2053d2b37085dbf33cc7426b6bd4e9
BLAKE2b-256 c4708394d3bee8a09bfc53e3dc19d265d7cdc6662b7c38778429ca76a0df349c

See more details on using hashes here.

Provenance

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