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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.166-cp313-cp313-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.166-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.166-cp312-cp312-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.166-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.166-cp311-cp311-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.166-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.166-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.166-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6ae7869b612ff9059debdecb0bfb38b16a683776a011a3e30a363a909c6c2a53
MD5 048e21973f4c52a36b2031436d7ec69d
BLAKE2b-256 87231b2e2f643262338b117f536da05a920097ad746d564cf012a8656e69dc3b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.166-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 744f35e076f9c9b36e8daaeda618fbb3634b9984695567d9ce60b0aad036a6d0
MD5 eaadfd10d30b7044948ae62d56202361
BLAKE2b-256 28eaddfa6645636a8555af7f78e6472d226b6b4bfc53907dc5d86768aaddda56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.166-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f6cf0a96f07456ab3f42f37e767a94c18b7ceb91a2ff8086b00b8d8050186f10
MD5 368bc936acfe57a5f3cfb052c68f16bc
BLAKE2b-256 cb127179cbb35ffd3b8cd50257e09e5217fc65f0ece3dda03aff0d22f3f3d077

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.166-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cbc456129be300e0510e5f28f2a6a1a3bb55dbdb51a899c8df04fa6fd82f1d74
MD5 8c704c29c9490c5147d7245c8c1b4654
BLAKE2b-256 2fce37079bfef55eba13b41fe5116b45015eaf65ab260aa23ada92e69c0b9c74

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.166-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8ceed41113d091d37459e309d49d78fc91ef2eeaa2fd930688d9a9901c178179
MD5 270e874b60504ed429c8e5887139a7db
BLAKE2b-256 c7c5bbc0f4213fa9684f1dc31b5603bd05e08e780c441f8b6f43a9767e59fcd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.166-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4a3a23c29372bf9e84b6f20f2a9f2ccda4c459b96e579f757874516df0cbb420
MD5 1811af86b36acaa1878c95d65fe260aa
BLAKE2b-256 c273e198acef29f2dfe3c0f2cd2e655fabbfab63a09ce6b768639ec6b21cde2b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.166-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8552fddb907e36ede96903fd32ef976b7aa0a62275c81205f716750d6463ce43
MD5 ef00ab44cdbc4b40c4353b29f728f20d
BLAKE2b-256 e930e869acd3d2d9eb9811cc1acd6ff154e73b67442f7d0fb99eb37d422c74b3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.166-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9a0324c16cb922c6f734a9a219081372f89053814ce7fbd26bd6ad562943846d
MD5 a24a5168a83f62b5362d940b80ed85e1
BLAKE2b-256 d93561ad936fbb77d66c81d5af640ee5d22832dd3562ccc6f694eb1a5dd1775d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.166-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2d42f5439a8031f6ce5f02981a89b66308d91ffeb17a500da4000e2b6368c226
MD5 ccd8b57c7e544943f823adebdd6dabfa
BLAKE2b-256 a8c86c84bf8de365ebae00523b8d618526d2c112027d51c6b2a5fd92a2394aa2

See more details on using hashes here.

Provenance

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