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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.59-cp313-cp313-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.59-cp313-cp313-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.59-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.59-cp312-cp312-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.59-cp312-cp312-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.59-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.59-cp311-cp311-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.59-cp311-cp311-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.59-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6d43f0812e5f133d846b272dda016d188065edaf70d1172eca8d0776acee85c5
MD5 09c4c3febd4b089e13fd9fc509f658d9
BLAKE2b-256 1333e742376515c90522cc809ea0c6bd006fc36d5043d0a9a9d94c2214ae895c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.59-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 25a616cc317582c4da304886ad01f5c6dbe7a7e0133990154de7b9b1ee0bfd29
MD5 94e8f565e8b9934e3d3417db2d0bb311
BLAKE2b-256 7bca72d2a591c4ad4ed60c88782a030316e459da26af77f906c985ad517e9b68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.59-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 cfe7904d6d69a4f82a3d68459cb0d0cf22b597bd1e27459af6822da401c0ad89
MD5 adbe6341f894a673e9b8612b9d8107e9
BLAKE2b-256 cf7988897af4e7386a74d6c63b816de4a86c044a971ee4144ba2621523a50a0d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.59-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8c387da15cac6706f881643852a4b02dce779d04183a371eefdce657496e53ac
MD5 91d542e4c8d11f220d63fa933892736b
BLAKE2b-256 d684b169f03311befab59b7d490a5ad90e027c0ca48363cc4065b031e91c162e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.59-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 77c27c225689d9572f42ab4d23d9e045f0a2f68d2d558dd50bcbc9e1a3658058
MD5 702d7000a70bd2c6fbe91b2c57ad261d
BLAKE2b-256 f4f84e09c70cdf7093a08a9a29f339202aa2df01c499623c452a62b72ce19069

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.59-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 fff4ba3dde76486efce027b45f364c7885b8f9f06d647897f848d15a668e96e9
MD5 ff9a6190980ae2af65694850f63fbd3e
BLAKE2b-256 7dd37a105821d93d3ffebce543cc7b8b8bf9a87ce1dc8b2ed7420d81d4119443

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.59-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a03db915d656f22548903a6597ba89515c9ba91cc6089ca4cd04eabc8f8c95c3
MD5 ece1cf11023a88518b38a8240e063522
BLAKE2b-256 4dd3e1e0bd4b685571c80a8f878ec51099b86d926329a8b00da937db8724e0fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.59-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4aa6067c1e62cb43f4ca6c6104f1cce63271089d9f4db89ee89a4399ae2b256e
MD5 0bea24ce9f02718b6cc2bdd935dae8cf
BLAKE2b-256 0e5995dc456dfc60f9a71142769a5992c717007d622707ba9f9a084fcd2e6aa6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.59-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a390088c57429811edcfc504f5f40dbddc0445ff2f6bf30cbee95ba6dff771ec
MD5 c71928d5214cf5ecad7ff902ca76ed3f
BLAKE2b-256 28e5f44fa0d3b0e58122e06f33ae3eb0ccd3ff57958fea7f196e754fbc15b264

See more details on using hashes here.

Provenance

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