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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.57-cp313-cp313-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.57-cp313-cp313-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.57-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.57-cp312-cp312-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.57-cp312-cp312-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.57-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.57-cp311-cp311-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.57-cp311-cp311-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.57-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4fddf86d762f5bd496ad74f327d9b0bf79edb72f91a3b3beb77dfb42434fa754
MD5 19480170ee7a4a990423a2cbbc324429
BLAKE2b-256 ede33baf0476ecaee09bf13809c09a16226e9f21f044668aa377a5195c6a6abc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.57-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5ef05903b737187d87cebd1bc83200a8faef710da41391a4743f6092df24460d
MD5 a01ce0aa3855bcd79df660c5b2beca8c
BLAKE2b-256 aef4f35e3f48006466b7847caa8881c76275f358c4942dcbccd5cb56b7d39374

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.57-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e808f2253a850e44e32662def1f538735ed6791e9c0c3d8988c6093e6f28c449
MD5 a9d69533c2f8450bb0fbd404717434c9
BLAKE2b-256 c9ada24bcdd6b41819eb74e73c43bbf67b293002cf3c752b6c477b299efffaf1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.57-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 76a2cd739173390eb17e36dd8724270d39cd3113a972429df4b98b4372da7621
MD5 9d00a42c3357b9f1d54123c9e29b18fc
BLAKE2b-256 c5e103475a2d395b30ff62436cf95c722330ee48a93f461882d7f5e7650710ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.57-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 94fa4324b946458493cca068724cec8ef596c5653e6dab06446fca22b5d05ec4
MD5 da27bc8c2a3603d40be59c8577d4204b
BLAKE2b-256 29ac49299638c1877e152fdc7ad51b005f0db82a5a1189251cac11fc2c1f17ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.57-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 26a8772dca4eceeb649836d58755642037e7a369dd38d532b2221027bbf12748
MD5 48e0cce4bfa85613933670c150a6c10b
BLAKE2b-256 ba3d0f6cb6d7f08085de385bebd90b12a517046a85617e5f6a44d523e4c9e86f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.57-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4c330e232fe8eb1d1af8b3bf99e9e671dcfec88cba3971cc27b1b22f1e2d1d30
MD5 c75397c34b5e45ea8b17a29f79d071c0
BLAKE2b-256 8e59858b3a85774215caa57ec16241df117900eee27adc3f6660cf9cac1929c8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.57-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 73af495bd4a196436b6cf67b91e25e8c4787480e7d04a8b1bd0321e1d5562860
MD5 1e2e780a43a8a19666b68a2d289a2042
BLAKE2b-256 9dc3396ecfe8c931bdde155bb2aa8eb77e9d5b6c235061069d3a7afb857203e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.57-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 32a75a302c39d2f2b447145fa9af7d7de7e7b6548a230ce27e0da53ef02aafbd
MD5 89de9127c4d6a5405c72cae5256438d1
BLAKE2b-256 6e010a2869992209d617b57fec12c4eb72c7788ede9edd05ccaf499d1c44ed6e

See more details on using hashes here.

Provenance

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