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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.154.post1-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.post1-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.post1-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.154.post1-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.post1-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.post1-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.154.post1-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.154.post1-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.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9fdc5d0c80887e4fe512c0291dbf1a496fbbd99a0f3f8f5e27fc6b5313dd7b86
MD5 e98daf2c7193baa992770c01e2c48a1c
BLAKE2b-256 45379d2efafb04443da02196582d9a9a805dd278fe5aeee20d80e0a2ecd795b3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6409104be02fa5180279bff615881f8fbffe05111bb00fe4d655815c46d6e9ad
MD5 803ec504f168b7a93758a806c8f1acb0
BLAKE2b-256 6d78fb26409af7dd12f9b6a357ca5ba89144e505c92b20504ddf8fa59414382a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4d92363fce1c2072217316157d881b1732f138e5b98901337506ab8ce783b13c
MD5 0e00e90322c6ad841a76a669a8b851fe
BLAKE2b-256 78152c3ee61bb2dcc63d9efc8fa125e30796ccaffe51ba96b5221b5f8c95e6dd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b836df9d912119c7284bd12b2d342b052855b3e992df598893fc29c6ca4d11c4
MD5 c6f0a63abd3a7d758953cece9220ec4f
BLAKE2b-256 f0dc0d348ee546beede31775315a6ea10ba8af62c9368004c6112e0beec1d26d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e48cb98d675bc8df18a491b00dcb34aedf53f18a91a9e33078afc0b467b2500c
MD5 c7d924af6c327c5420d5ed553583ac53
BLAKE2b-256 4d2e47ff080c957a52220a8f78811ec20af98493b01e2678b3c304fad0d67b11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1a7bc94bd9d8a718fda4090e9b78856d595cf3e904c3ced30308dbc765c25765
MD5 ac4c18e559a5a2c48b6217494a140ba4
BLAKE2b-256 20ffa2f5546576b89287cff46965a4f85e8c9fdc8a8f8714170259860a945380

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8243c0a8e9a69432661db4a8e30fd42d033f0b96cb1fc462bbd0c251928c0a47
MD5 c2d58441f46e84b09bc6ed4ff71bb0f0
BLAKE2b-256 d751923d1956a088648b5b0f5b01faca503e50390ca9ce6e3b05df0e62192cec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 509ef9d7d9960f803a987e16f2e9741765eff81171242704f4758bdaf839104a
MD5 55fa3073f63f05bd2db5b944236d86f5
BLAKE2b-256 22b77916f80b5199ebc390fd27ea5d1ed089d32e1ed3a18603883f7f88629014

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.154.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4d68f723a1b6b6317555aa98178b880dacda48d1049ed75f148b918db022a3cc
MD5 760bd6c30d7e776084c1a31edfb3387b
BLAKE2b-256 81b0f28356c77398c237f56c6e85b1e303bcdc2a96776c7662070e679be13762

See more details on using hashes here.

Provenance

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