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.

Dummy Commit

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.13b1-cp313-cp313-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.13b1-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.6.13b1-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.13b1-cp312-cp312-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.13b1-cp312-cp312-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.13b1-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.13b1-cp311-cp311-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.13b1-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.13b1-cp311-cp311-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_inference_binary-0.6.13b1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13b1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bea9a00a6006d4cbff3a199bc612eec6364a54d86724109caa1648336c2d7d34
MD5 19a6117dda95002edec7aa0becaa3cc8
BLAKE2b-256 db1f259fae6ef11935194fc07efc7fc152e3cc1b07ad41e8648b504d4e4ad2ba

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13b1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 85b1f1016840c2972a8c478f34d264f14e9743df3986fef8023c6e614784021e
MD5 92d0980ae6b5897e7d55a60d9e815b40
BLAKE2b-256 f0f35f139703576eb8d28bd8cc138cb905ec49279bfd2e9116fdec8abe043be2

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.13b1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13b1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 dc804d252d0b8aaaeaf6efd7cc49dfb511ed47981faa960d56666173170a8cd8
MD5 b4a45f2b2a5a09c2c2a6605795ada650
BLAKE2b-256 770cea338acb013c84ccfc9f7f07dcc287b8d880023683471b52ef89f3946694

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13b1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f4c0a05e1ae6957c057ca6081d63077434f56eff1c41f1170836083972b3802f
MD5 3354e849f9a9902eeeb91f22352e9a4a
BLAKE2b-256 508dadf02043f55bb1b23c518b9317ac41b5e34f861c5090c7d1b029e67d6757

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13b1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8b75f94e795e905d4ab4eab089ef202ebaf4fb09113eff919ce0b38b384f61d4
MD5 d0d629a0da7c2f7cfe74fd4655f3ae0b
BLAKE2b-256 b10d3e5b329e6ba5152ae3bf382a69fdb26edfb4fdff14b7b3d310eb8f19b549

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.13b1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13b1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 938a549bab6d98b0f88bfca9c3d8f86b9c47c2cfe42ca38b298e8991bd2f4171
MD5 8753425eaac0f7a068463c6cbece9599
BLAKE2b-256 412f60d29db1f2c5b35396c95df2039bb2e1d60e1d0e7191869ee86f250613b6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13b1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7d5362cb2f3d3a43cd1c5878b91066490aa476e00b42b156a6af812bad13d234
MD5 e0d9aad2b9c02f34ecfbd5725f74a5bf
BLAKE2b-256 49aedb288972570a2216f08e0a655f3f5c5391f04939c6ef452ea10e0d7c09e2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13b1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6d7907831480f6ca3b19e922f14248cd713b27835fdfe00770dc89482944646e
MD5 d6a293726306c531998474ea23fa55da
BLAKE2b-256 7bb214da976c7c864568b161c1c33be5a6dbd017edcd75f027f096e68cf8de06

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.13b1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13b1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 78e5a8c2dce62ff4080be199cf866c40a25a54761ae6874a9ce3896f6d1be402
MD5 54023848d4146f71cf65a7afd72c051b
BLAKE2b-256 a47493a0f4be75ae341341dddd5d0b2a1f08dfbdbace30e1a45f6273b4b59a41

See more details on using hashes here.

Provenance

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