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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.42-cp313-cp313-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.42-cp312-cp312-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.42-cp312-cp312-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.42-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.42-cp311-cp311-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.42-cp311-cp311-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.42-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 fdfd58ddb660a9673fee4bb11f3c8998a43d53e8329ed218513b6fb18adce8ff
MD5 fd085349aee81e181168c379a555883d
BLAKE2b-256 0b34ffd5d98a6385b2acd324fd2abbeaa1aa72887bd507f11e23eda651e6fe68

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.42-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e727b4b20696c11c69d2a501f02b0f7bf8784825b28ff9241a7ee8f25cbe82eb
MD5 0c3491c2e413232c3a348dfa02f2e7ca
BLAKE2b-256 ec1a7230e5b2486b833b1be22cd613a82a70271518ba659e8f05d2bc97f8de3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.42-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e58f33abf46bd475c498d33bdcd47618a360c292b58ec1a71c62ff83668ec139
MD5 29ce45ca73dd53d8fde086c7e5dbab5b
BLAKE2b-256 54e71a8e7baf9706e50ffd6d03205766114dee53fd82e6ab2391597d731e2cea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.42-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 448b252025471384a273318383d05e529ed0360b4b63af5a391864bb4d233def
MD5 bed7a268773e36f6532a08bdf4a848a5
BLAKE2b-256 b86ea129a5eef0be0ddf9e6bbc09c2939793553720ac8a707310edf9f3d48c67

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.42-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 643c38854415e1a551c92801e5b6b81dc18aa8051bb2ce26ed07d9ad751273d0
MD5 88d3c4cf70b60426d27a3e04216ebb9f
BLAKE2b-256 0affed90406c696c8838249110b4871bea5ff80a555cb61e4981176d90f857fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.42-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6b416b214e784dc3da8d4f838fe5f4972841670db0f2d2410b8a1f2c71632d47
MD5 10e169a474fdc0a1ec06bc5ac597f6ca
BLAKE2b-256 6edb4d95e6458114bcd0e1a841a027ce7a54edc9c4c8787aa13616e2c3997d68

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.42-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 06abc9e23ddc7bead69e9dff97b85063462372816b0a9b27738b1850d7ac7c31
MD5 1b61ca85ecec95d4d9995869b920e9d5
BLAKE2b-256 dd3361b206f760adc2a5c555a3860b0d644b80af86492f483cb0168b3c19e3a7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.42-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 7db04f4f9858d77ee4d980aba1d4cf7eda32ae469c962a7c7d1db424ec82d77d
MD5 d385770859f85f6780c47937af9e6f44
BLAKE2b-256 cd53c617abe49a26c81a327062058ba1cc1a9260c22d7d1be023c14e8e370a6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.42-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 27405cc6d5c7c3f9691a487845a3e0959f32b485c43069ef82f736a42cd2341e
MD5 c896d181b89d3b45280f32be3eff472e
BLAKE2b-256 db48b0af804c22f4d9f7cff175e9375b62c1cacd0adbfc9b663f5b0b409b9b8b

See more details on using hashes here.

Provenance

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