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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.94-cp313-cp313-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.94-cp313-cp313-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.94-cp312-cp312-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.94-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.94-cp311-cp311-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.94-cp311-cp311-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.94-cp311-cp311-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.94-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 39a731e42904851a8440d2e6b3bb3dfdda1d0347ac300279441b973fbb98685d
MD5 2343e72765f109e6c2a518e2e795e5f7
BLAKE2b-256 4fc2b2350808b79771653e63ef328fb3dfab59095afe5545f7ba837a6de858bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.94-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 38111986d524a7ffca05827fcc0c3104ed1e7caf760dd9f47875f52138315acf
MD5 4190925e433ecbb0b5d23cc37d69f144
BLAKE2b-256 4c7a959edc089fb5db10f046343fbb03bf30b6f1e5dfe040b553c5ca7daff013

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.94-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9a3cd7984341bb8df01f06201a6c9d543aa5f390ac576efef64ab3b6bd022b95
MD5 ef23aa3f4e02399cbfae72cd83a75b24
BLAKE2b-256 de0add0f6e3a1bdf8a859827ac3f881ad68f65f99a63ae4c11f1deecdc256dec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.94-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 47e873dfc4a1ea577707cf6045af166f35fd20af387dfbf8c5ac7d7dc507949a
MD5 24670be36bcf5afebec43437c9a8a08f
BLAKE2b-256 8ad6131c7dc4ca571628bcb41f381b9cbcae6e33cc1a0ad1cbed07e7903250f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.94-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0667d457846546a6279152d4c28b96ace2bc7cf8edc88f2287ed984bfb05812d
MD5 dfe9ef25318cfeede3b8400ab54e94ce
BLAKE2b-256 fc1b562bd71542e71b498cfab85fb60d621550922c8c77b75305a77b1d73b5d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.94-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 52372c19d351d3273b0e62a91026ea0c11eaa4d015a07dc05c2013f960d3a763
MD5 ebe6ef4ed5f3717052677c49a017dba0
BLAKE2b-256 0551b31264737b8de3f9d7e0853ae75010aa1a617b6243fecb1965335321e58f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.94-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ef4b8d91bd00b2bc242d3cd2da7d54a54efe71bf41ad90f8631df0fe18cb3fee
MD5 07bf6fe0555b685b1f1679f937e191e9
BLAKE2b-256 7ab269e90455f71b372ae2850550c4ae7ab1e68330df6c98bda8f0580f1db82f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.94-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 dc533d9b99edd500b5dc95cd00e90977dcfd20542ac98372ed876cf31b955d47
MD5 a692117e5bafe612188ee3ab6acf2c18
BLAKE2b-256 afbb42048db9b06b67b3da67972d785402925773bdc874392bec68c099bd9e07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.94-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 90a26c600f481f711842e3958318859d3a55f0a3ccd624692ac77199e490f379
MD5 9a821ad92364fc2be97eaf02dd789500
BLAKE2b-256 640b1751a3d7155d27b3b82ed7b784b7eade287211b0ebdd7f20aebeb5eef333

See more details on using hashes here.

Provenance

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