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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.39-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.39-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.39-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.39-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.39-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.39-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.39-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.39-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.39-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 42364ec060e54f5d2be523a0983695b55a1ef96286e884751fd4a54c46b58f48
MD5 d206b95a9be1373e15c6857c92bafd6f
BLAKE2b-256 57e6c535bef1d34086516bd1afd6126158ac7f8899f1faf34b68d3da24823c2a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.39-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d09793f8f4d0269271086330fdff5021de7db852a8be7c626c4e1441c90962e0
MD5 97f7376518aed2915a124c6cf595bf87
BLAKE2b-256 bfcbd2a2b780a7be4994959785aa5d5c9e02a145d7886149c0aab4bd083aaeda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.39-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1e1c9eb75810542b3c7d7140ad18a96a06443878898eb8a07e4566ecf124f053
MD5 d08de035aa38495a9381abc7acbe1ce9
BLAKE2b-256 74e51a5332ac25f2dea322fcce6ef84be8b8ec4241ae2dda225a72dd53a46d2b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.39-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8fb8d1e3e946e9b061583ead77f34a032577c0c8aa0f0200bf745f0929d14483
MD5 5c5d2fa351e0dda78b43bbfdf06726c9
BLAKE2b-256 8533089fdd1f03b726c16af4f2b52b87d219ae34bb3a9a771787cf52863aa660

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.39-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a16edd31ed03e768d5e56473aba3184067b915de86cb0bf624716e374471cbdb
MD5 37bcdc59e4812aded6eb23abc658c12d
BLAKE2b-256 6dcd492d8ac77cd28834901b6cbce1b8740bdfa682043f3034e97e1763221c5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.39-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4edc91a60a666a3732a7bca702eb3b41d8d8b2ebaa72f8c4effd17ae3955bdb4
MD5 bef4e71941e717d54f4d0603f549d329
BLAKE2b-256 93db3c60fca1a268f908e5c9afc88542b2f21ae3ba6d0486e5225073ea185a5a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.39-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 623aadac736daa3305245a21064db14854bbb3692f8af9359fb2ab3621958bff
MD5 6f03643acb2783f45adb6a5efce7ba10
BLAKE2b-256 04c44031bd82e7f5f28b820538ee16842b010eb919ab70d24ddb13e011603d2a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.39-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8f916d709de8552048145167e5b09f94bbbd8087c911b1e0b7dd8b7edddd5f28
MD5 93eb90c4afefa8a1f65f2836ecd59829
BLAKE2b-256 cc9edfd2a87f794d7a8dcd194bf7f6febde9e6367f789e665955c9c082dd09a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.39-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1fa5a050b23939434b754138951b1b0728313588540ad0f5a9401eaca649e6c2
MD5 5c8a946529219a064bb1dad8e49e2e66
BLAKE2b-256 6bdfb5c580ee6a25ec74b5c647ed7470e0132aae1ccc0c29633ce55b92a35534

See more details on using hashes here.

Provenance

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