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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.150-cp313-cp313-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.150-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.150-cp312-cp312-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.150-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.150-cp311-cp311-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 68874953d6a2ef060a8c6cc9daf78c5d2e5ce4487e16ec31cca4ed33c5d2df3a
MD5 aa98f4e98a187df8369d8f738c24eb3b
BLAKE2b-256 ceb54f2d00b55655f2295ccbfd6d527d375071962a77c9646972030b67ce2f96

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4138547a44aaf2d03d511aedf8d917e75447517c2b0c529714aecd1caf32e7af
MD5 e4f0d3c7442776a89231ce311a445f27
BLAKE2b-256 46a37f0dccb78940fda5d7088f7c7fc61c96399fc2c92508e43a329081db1e45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 584247c40accd7eea12ac4a38f97d9c7fc6a3ead8ca9ba69d54749634ee7ee91
MD5 074d2b3696dae66191233742a8b0c724
BLAKE2b-256 8a7e98b322f9549ef647e8c1e7a387229bc7a9b67c9ba5f3f0ce6ad99c928261

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 998d26e9a9b00bd9c7a350be5f9dd38ea6800d98b3421e6944d3a571e2054f56
MD5 cebac59aa58481f6100721c516d2b47a
BLAKE2b-256 e9a0804d46dc240f032986265bb2df59ee02925738325c50cb55d70237a1b8dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 61304942528fd92cc79c5dd46f2f411e5a49f5bfc03da48183a5c9186ff9cbbf
MD5 f58e597c0c14ddd2213433cbdca97f20
BLAKE2b-256 2153800f84ba94baa1b02a342606e1a977891185147695b32c41909b0865d46c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 49c50195ae1bed84d4e8c74a6ddecb16f3add1da5811fd94c1d5723f841d6b2f
MD5 31686c8b7700993ac01bb6e2cf548ce5
BLAKE2b-256 410353151e0d70df7783a1e4b7b804c34d440bdea469184bf89a5a552de35f72

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 98861bd8a182516f05d958c6f70642b7b5798560aed1dcdb20c1390f6b26cb20
MD5 83999f1456e8318eaacf1ccd25cbc327
BLAKE2b-256 2d1a747245b5c7f33677210abab9e1c64d756b6c1f14aeaeeeb203a2a755b2c6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0261dd186b2fddf477f853f62f3acec8a31016d7f6a982aae19a65698dfffbb9
MD5 3c6f51c79e220e1744978712443deae8
BLAKE2b-256 cefe96a71237f91761d64bec43ac17e105bfe899d264243cb192f605c6b56da0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 dcfcaec665991678c2332be305571b48e80ab05fe4bdde7edc48fd1514ed4021
MD5 a3162fcebc9c084e3e505be7596ab690
BLAKE2b-256 84c1ba78f270e694f77eae85c36198d92212bd91e823ab5f70cfe1d7dfcb4d20

See more details on using hashes here.

Provenance

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