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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.109-cp313-cp313-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.109-cp313-cp313-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.109-cp312-cp312-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.109-cp312-cp312-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.109-cp312-cp312-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.109-cp311-cp311-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.109-cp311-cp311-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.109-cp311-cp311-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.109-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1f03e3a1aa0ea0262907966f87ffe984551d24fff37e5e5a960007e7e9afb7b5
MD5 10977036c1d61790fbbf064c16465aa3
BLAKE2b-256 273f5beb5ed63fc2d3e20a3bdfdbcce706d99ace0834fecfeb9f4729c2f9057c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.109-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b6142e4659c7b44ce9360542b80c2e456a2a9619ed793e4808d16e63d7562f32
MD5 4bd0b0f5301341e45895d958cd35aafc
BLAKE2b-256 5f985b3398ce5e188f08e703b1081e05a0c934fe8a665cee14673437dd05352e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.109-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5f8a9b53f8cc61779c2ed6d1177d204250d81126c3ae6a981f0a4e1a7490a331
MD5 c21b9a0f61d9364c38fb4311662abaa9
BLAKE2b-256 b893334aa250f6aa68d43dadec482bc6bd347ff8f9509e1b17bf04a18b63d7b5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.109-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 83224682bb5c1ec8bc81b6c678c7df439d42974475b891995162a418c2142032
MD5 c34d2ed813e08122d176e8eb5f6cf9ac
BLAKE2b-256 a9d562d797a4358d6dfa565d35711c035e1187dbfc8be28488e8de731c34e808

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.109-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 36e8c12c41af9cd2d73d74201dd07964c7d60cc1851501fbd6457388328fcd9a
MD5 24e2ec34c691e59dea58dd6a5e0825ed
BLAKE2b-256 2c481f0a2bdbd33587282f60b2b6ddfe0313cefc3068d2b65829a2f6eed0bc90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.109-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 164edd88f390064a3368ba4d7d863bd7d2cf203fcbeb942bbe01d092be82281b
MD5 a22a15de586e9c9b07eeb316e6a35cf0
BLAKE2b-256 645d74396ee3feaeb0201b7791d3c4d1b38b8a4a56f58a5ff68f75dbcde90d7a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.109-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 072c1323acccbf3af34ebb0251384b086d59022e26a8399e77e9b4ba46e990c9
MD5 7a0862ee1a7d7d10bdb4bb300258e3d4
BLAKE2b-256 cb9fee19a14cda17d959005083e59292d0300d6ef5fc278a4dcb56639c2f5c1c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.109-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 39be6462159dfe4e57098f1969dd5f7e0e9fc0f62e4b917080e38d23453ab293
MD5 964cece6accfcb8cb88e1d931e4d0dad
BLAKE2b-256 1dc325ba4cb4d6bfd95bb1de38c490ef4944215734eb0811cd420e15a08970b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.109-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4feb2d0e0ae9d079fb147122067449941baf6c58ea57dbc885277a79fff8142a
MD5 a92c67885f126a8b41a85e3def82352d
BLAKE2b-256 5f5a77942338201f94872773859d474a7c4bd4150ffa329fd4b1db7e28b39640

See more details on using hashes here.

Provenance

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