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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.48-cp313-cp313-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.48-cp313-cp313-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.48-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.48-cp312-cp312-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.48-cp311-cp311-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.48-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.48-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.48-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2ff0e9be7ccda0acb4db32a1deaa2077e474af63c373f1277cd1e31874664cd7
MD5 1b69a63a8714488ae97746cd2642f3ed
BLAKE2b-256 53b2ba512f9c79089bcd9274c14c53591b4517c22174130a3be8feb680f66ad7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.48-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bc7b153d427ee097ff82d69e8eb2bd24021182cde2353e24c857f80b1d524010
MD5 648fdeaf7e325993f45efe59cae46866
BLAKE2b-256 423656a29438a746c95a44712fe58f4a48e872d76a5737208fcf1db0426f3403

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.48-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e7394c827016d717bf62751c05cd9595735c3052941623963e6f2466becea1c3
MD5 d0812d0b354bcc3422bb5a9833409c41
BLAKE2b-256 e454900e4cde976d29beb21f1ffdf2c44b522981343896ecfae77752ec6fed1e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.48-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fdeb62d3a28ebef5d122b8cbe36d27a41751c5faf255f949d1b918fc3ec493f0
MD5 f8844c1d02fc850ff5341588036be671
BLAKE2b-256 c77f76e0578a38cd4f3b3e9d60b32c4973d42789a4e075857d468095447ac3f4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.48-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8e5a2db5f0c20b576865dd3ab88ba4a12ef689c138820583a2dfb809b06c68cb
MD5 d5d024dcce5684a9e4f3bce3e1a8c7e5
BLAKE2b-256 1fc2dea45ad2b02ae3f188109897bf79bbb6e4f3957e598f5b3bf83e9cf262d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.48-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 50205b9b14e38a05f80f5445a21f74a47c60d65f5ce31aae35d8497911879484
MD5 91b05095d1775a9429cc65da2b9c0db4
BLAKE2b-256 d289f16dcd4d120ba918f3a894e736be1dbb980929dda33b4aaf52819d715b72

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.48-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4e042f078dd912c28307907b0c36dfc13b34ee7f80003a8518ba81b107e321f5
MD5 2b2d67050df2f2cd29df6ee7873603b1
BLAKE2b-256 2e5b5882fbf183badf44d4b0eda84e58d4bfd26472751b9a3706a84cddfc0246

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.48-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5bc3f2e4a9439b8ee0e07efcbd5039a2fd5991ee643fc52758e7fd8bf3139ec9
MD5 ac03fc0d948f997388272db0ffce6378
BLAKE2b-256 bc55e9c567708d692e8b22e871caa4e0389eb067424db008b145ab66c8b2570a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.48-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 51c4169690343cab6405f311cccf2aa6b24edfcd5db0c52c6c1a6461a4de4839
MD5 5de94c71865210ae8e76d8daec2491ec
BLAKE2b-256 89f5cae876856afaa78b4934cff546de5897e711fb00be04a3ccf342159df259

See more details on using hashes here.

Provenance

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