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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.100-cp313-cp313-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.100-cp313-cp313-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.100-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.100-cp312-cp312-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.100-cp312-cp312-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.100-cp311-cp311-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.100-cp311-cp311-manylinux_2_31_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.100-cp311-cp311-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.100-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8f9fbb49842afcf2437ce49e285c1926137024896dcff5876d45ecc42ee22162
MD5 3ca4a1f65921d35ec84a5a4b8a31d6aa
BLAKE2b-256 5f5cf40b7091c69f2724059e05194facb0261cac41331f8aff949726baf22652

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.100-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a1e1d5de281426772c277bf0f49b0bcb37f5f3f02c2df02ce4a7b8015f3149d4
MD5 a66708346767a2b0e26381a989d5ff5e
BLAKE2b-256 706ce2b6fb745579654b94787c6ba6a638acb4f098590ab71ec8624e82476a00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.100-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 90d6663afa8036ca0bb86aa25f2c3afe0c238793d4449ce9905b3ca755398e0d
MD5 514b3bc340b2c2370f76951b8c86e945
BLAKE2b-256 267c6288636a4ffb6b24810c53cc9bf930b154bf9817cf82960c3511b7936bea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.100-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c1c9dc410649e40c32babbe67acef32f3bc4bd7fb8202eb83da450f6ed42e741
MD5 60afa4ec64deb67712787fda710a7904
BLAKE2b-256 3c8a62d49df7f4bd9221cf44ab34f8dce60681d5b56ea83d2cd7037fa679c6d0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.100-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5e6cc56b1fa22510cfccb715451fe3bc12516538c0c7d3389ed7e1aa94adc3f7
MD5 82481f104c3d67020eb560be28c469d0
BLAKE2b-256 7adaadfb28e573fecc64cf6e4656731fda1d5ee915bbc3f0653e0bbba23a7218

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.100-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4b575f61b5499e2ad9f647285293a7c1b661270fe8d8e5fa1367d719b28fa8f5
MD5 937ca27c375d3d48bd4531c4c5268938
BLAKE2b-256 f04c86c7a09d3aabc07de033601b7bc7cf98b4f492e0e777d875b9be87514dbf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.100-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 09ced148bca7e768601a11072ac8d7abee19485f82453658ee5ae95d0f79a4d3
MD5 0056b895f45c21a9a6717fb7d8fc4f37
BLAKE2b-256 c7a029f23cc27590332ed665dc4ed3eabd15872e0753ec4679834016c03645f6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.100-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 737d9b7d4de017d0c3e16824ea202c1a43c4cb040b5718885eecf56d46ba40ee
MD5 93a6e01996cb9044352e81402c9d2f8a
BLAKE2b-256 31195600e4ce443295636e220e456b87ed01136029cad848537183846101e740

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.100-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0396dd6cd73b8e885c64927a98e38029a29ea3ea023c2851a6e70eb738e26d2c
MD5 9a13991b41d8a3ec88614d83e69f44d1
BLAKE2b-256 96d9dce5e281434899ca71ed4925b6b57bc4783c514f27f0e7f47912bcdaedd3

See more details on using hashes here.

Provenance

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