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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.106-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.106-cp313-cp313-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.106-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.106-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.106-cp312-cp312-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.106-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.106-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.106-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.106-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6a7c3da7d95b7465914e14a5489838c26b85f4a259ef4ca4c7c7369847b011d1
MD5 b998ec015b0103f0a203779664820d1a
BLAKE2b-256 7ffec9d91a03b0fb9a88643a0911d33f76a1dbd3b2515aeff347308ea3385792

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.106-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 fc49105b2fa72230c2c0f37fd828f0c4580a7e8b3933662a293dbed93a2bc778
MD5 79c1ce01bffa46f5eb966f7ef927ac29
BLAKE2b-256 bb1f006700a82415e3a803d1729bf8c64a32ff912e65bd96358b9dc73fcf4f89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.106-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ede4c25b86283ff40df2119da14b104d3db5f0bc67facebd191feb588f268ba6
MD5 d20dc4712619a4d4080090a7f3699c61
BLAKE2b-256 d3db411075e7805bee2cc726c384e5571184df60f8fd96cad684532f04a3a8b8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.106-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8859dca9be9e8abed40ea2bacf1ebd9bb21c7a8ab78ffaedcd504b3f4e6a2554
MD5 748d53838ed8497af054b5b538c21056
BLAKE2b-256 070bdf68e1c68713735baaad488364985b6b6dfde423ca654a033570d90db7f5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.106-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 775b75fdc28db5feab2e2e99848a2d8f2af172d6f789ce6dc6687df3035ecb44
MD5 446c657e0f1284ec2d7dfb5770b070c6
BLAKE2b-256 4238326909544ade57b9ea5eb722c03a6e4206dea85e77ee9c7ca09f3bb6b6d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.106-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 69a0fc2e11d8ad021e25bfda6c976f5f311591f4c923acb62192a4d1a36b72f5
MD5 0382158972f07c7c0fe701ffd72944ec
BLAKE2b-256 e943d67a31533b43b0a87ef7a7ce2a757c008b9a7f41d54f0497811dd796c3a5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.106-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 13e9870260b5a764a6ca6b120976ace94a3105fc6b4ed5822cd5c0048ce7a061
MD5 c654c84bb5c82cbe45aedd935b0baa12
BLAKE2b-256 1c2061590e95cea5f632988b1ed566563db5669a153f1a244d9019aecf198404

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.106-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d04c63e1bab1d69b58eabdc3897dadc322418057e424eb39f5fcabf93b0e9ea4
MD5 2f77da75ebe49092632f0b024d6b1035
BLAKE2b-256 ba0040a6ad02a3e8c015397fae6606d0b7e967601bbab531b08dcb5c0d12e7d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.106-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 373f2321cc12428b53a34094ff65c70d3f7ecca63409648966a1c3a525faf149
MD5 d4ead7a0fc877813dd573efa93f12868
BLAKE2b-256 ab1950e52660fbba1d61438f7ff02e7d29dfe38b8d8c0f594115b6492ed1e87b

See more details on using hashes here.

Provenance

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