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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.73-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.73-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.73-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.73-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.73-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.73-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.73-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.73-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.73-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0d27dacc7531a16fe9accaf64c43d6040f28597f3ce15faaf27fa514117b471f
MD5 bdb75e4119ee9cb466cf97a6c3087107
BLAKE2b-256 18448df038639be6a777b188f0e24922dc6de9a6f39d3a62c76109f90666ec05

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.73-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4c9e4eb4fb6231b92cfada04408fb06073689e077236dcbc82a97d91c37ad897
MD5 428e079d27a05125d4df19d0d8ac30b1
BLAKE2b-256 baf98c6dd5b69d00b5436637c3efb21e95a7797943eebb21ce7ae982434d3b11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.73-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 af3490a042746351afe613c89becee6ca3578e33b474fd2e4d17be1c76eea5b0
MD5 7eb544c956d6eb9cdfe757526a2621fd
BLAKE2b-256 bdffd40cfb8f95eb1b3b7f862592fa7fe54f95263a1c9bd5ec1f7faeda18a2c1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.73-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7931fd47dc31ed43080e360b2697cc99d4313e275b5259b7f0c9c9c6e6ef18cb
MD5 701e9d2aa9e92db83908ff08627684ff
BLAKE2b-256 180c4ef99726db70f4a5b77df97257258f65f115c2e4058ba7eec919d0c5d4fb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.73-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5b8f14cc9a64246a333fb617a21e459c8eadfc9a4ee96faf69996f67b92df689
MD5 479d8da550fa488df6676bacc2f1f7f6
BLAKE2b-256 9fb118676406e1c981eb1611fba11f1458888c8fc275900ec933263e634c1b4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.73-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 55c06ec0401f476a031a76148dd49af4807fec69cfd8fe3c2cabbc8057b4c559
MD5 7671cb9d2d7cc08acef6f0a3d62cd041
BLAKE2b-256 11cd958e261bfd7e4643197fad77cfde07dbe18b5eefb117ceaf09e0231c38c0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.73-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e7c0bbee301c88029b8289d9fe3f5c4a9843e8ab1fca3f8c0deabd1ae82532ab
MD5 0cd32cb1d2f5141b0b4fa5a8edecbe04
BLAKE2b-256 d0dfab64ee9397d5380af84ba8ac01ddb944896735abea1e9c028f75f8e543fc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.73-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d284b4980f3035f20639da19a1fc2aecfa87dc383d3a998233e92a14fa57fa68
MD5 f5b904959e8021054ab38043df31f5d3
BLAKE2b-256 71bb028f14ef165aeef11c5a31e57a4712457756e996393639aaa4257c9c989a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.73-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 28f39eb7ce0d301eb1973d26c3f6604aa0b7a3a1dfce0f31bd69076a0243fb47
MD5 c2cbac2bf58b300f8a1d4169276c5710
BLAKE2b-256 3343e9b71aa885f965555889617fa112971c676ac5123a01229712f5fc9d6e51

See more details on using hashes here.

Provenance

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