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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.78-cp313-cp313-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.78-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.78-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.78-cp312-cp312-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.78-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.78-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.78-cp311-cp311-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.78-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.78-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a21d91b7e4df03071ab9a12d3897cb77150a17fe8c96600756bcd2ad3a499144
MD5 6bbcb3ab41694d208fae8808c578b0a5
BLAKE2b-256 640e39780ccff28f8112ff3878a58bf7277bb68c71d967c763364993faa7916c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.78-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f65ddedabf9104fb9404617fe8de3ede75ad7b7eac66babd4897db59df0712ed
MD5 0d4c9cdc9f9c40503b3b82fc0d0d7c99
BLAKE2b-256 2463754a1f1e2d45ce91f5f018180ccbf3532dd40eba2883796c7fa4102f1ea3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.78-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c38de1ab8b6c40ecb2203b6e0014e40623f48db772f2d4eaa7f5333b5bdf86e0
MD5 f3d38502d6f30f099eaa4bd965d305cd
BLAKE2b-256 ec6348475b5939c25c85014708bad3560d88ea76bb2b9ba72c54d087d74bb460

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.78-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4cb6e0d7b5bea4606c05d0f76d74431334d4f81fef2778f4310649b5003f1423
MD5 f7d115bbdbee8901f0a1056c8aa55a7a
BLAKE2b-256 5a2f8777c42e8aa7c0f2c61c7eb9150e4bef2999da66f02b2fbe2983ac593877

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.78-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8b6533b91b349fcb12c223b0248147a1cb50c050877a4ab855759ec61b819338
MD5 3f4579345ce4c53e7e1870546d160db6
BLAKE2b-256 3658db16c0a436497c3b6ad864ceee4537d66a4fc3ac99ae2bd3fbf2cff2f529

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.78-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9eb94bb50ab679b925aa5a1e44680d414e2b66182a3c4d364181abbf47b307b8
MD5 9c602593becbf95d419787234c1cbf41
BLAKE2b-256 6404b1368f0f985d133b0e62c5fbabee5c8e5af6817a8a8d77064d0edd22df46

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.78-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5d0c8a887dea80d133b4a8a0eb2435c16b3fdfd17835e4ce1de0e9f78c154930
MD5 76553b69e2a745fc37a67e8c99a6dd44
BLAKE2b-256 7bf216d978a7c5b81fae716a7953ae199c5bc3990a7ab0dd8c128915fef90298

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.78-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 fd41e22bf53a3fa81178299dd34a62f612b3c98e2930da7bc64de66d521c2d36
MD5 0c5f77257b707e98f95fa33e85595cb0
BLAKE2b-256 2d49f443be87df0dd3291ee83b90519be995c148f2ac62ba531a566c6e282dce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.78-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d98f4040ff65c9a3ea290a261f77b2c905df70bea16b993077d3c59a393aaefd
MD5 fe7c307e045e048976b462628d967557
BLAKE2b-256 8be29129ee4fb6bfa10a6e9068b115345ecf10bfd77c71037297daba67f1af5f

See more details on using hashes here.

Provenance

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