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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.154-cp313-cp313-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.154-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.154-cp312-cp312-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.154-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.154-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.154-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.154-cp311-cp311-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8594bd8c3ef79b97ad4047765704a328055551d774e1b7a7134356473f47e721
MD5 9d2b4c4ae2b60e0b1d00e077b989e4a4
BLAKE2b-256 df4e290d2de827f710331f90121abb2b77073bdf608413764382ca1a0546a47d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 cc4000cf8000463c3dc4910560ecfbaa27d4e56adfe2690fc965905475b8805b
MD5 9ac400093307461c44bd87c9a2bcb6ee
BLAKE2b-256 c338166fc7e085480ded2372dc51b76ec34d910208cb43844b2c4b451404feb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 14eafb7da3dbe19ac2dfadfd2a9f63e542bd82a5aafef627bfc0d8e5d7d028c3
MD5 f4d9f4549d93f5ce6b252c9f4e97276e
BLAKE2b-256 ce8cccbc190e50b9761346b366712d471404b5fe103004127ad26c26aa9c3165

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 93d540b1263d4ef6bbafce111edc8c3ae369b8da541fd14dbd169c8b63087060
MD5 d2c9ca94a326a6187ee210dec4ef24af
BLAKE2b-256 fa1b00020e9b1c59239c99a66abd1ee1ebd01edcdb694aeb68e60075e8c1b52a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a9461ada163f911e511b0fb2249cddf0521ad087db46f145be32ceb72ad073ba
MD5 f2cc591917a2706c00df97a4b06c0b45
BLAKE2b-256 f2612b042c8458566dcbb20ca3103a5f880db2ea5f765283c58f08531e609e38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0be8e905ae1047152d9d753965c82e2145973642688ffb841720681170928909
MD5 2e7d2b21a7f09a5da95971341452b33a
BLAKE2b-256 e694a1f24c3c503c928a30899a451e8c8a5fa5975a9339fdfa2bbb4253e78f2e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 08f1c8ea9a0f974b7a699d4c6b04a9c9c7cf35ea74ec41cf845374dea8d5ebbd
MD5 a0c7241a55d7aa753c0fe2ca02619e58
BLAKE2b-256 4486c6e9cbfc325bc0924630129a44f02eab224c9005913ea6d5376ff9d6b651

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b4ec790a25a088521e2aab3618cbe7e98dd820683c6ff51ac2d5e24ce68157d5
MD5 1bf815306454af96e8bb89f6105325d1
BLAKE2b-256 19bad2186ac4aa1d062a5ff1d24cc0a0d0d38dca1034e3726172d6954094c3b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 402d0d84fae590ab304eac698d26513f728df3bbfd8e966d49bbfb0d7c2a59f0
MD5 abf051f5822ccbd5c6b4a51856580478
BLAKE2b-256 0628e98aded7e0192ac839574d710f628509d23751d4d9629f2645158d38ce41

See more details on using hashes here.

Provenance

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