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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.61-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.61-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.61-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.61-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.61-cp312-cp312-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.61-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.61-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.61-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.61-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 76ec3f09ab996be9aa32717ebe8566e8cf766c6587d1cd8d1d5113ff47c1528d
MD5 4bab15ee73c78d76138a5dac3963df7f
BLAKE2b-256 1811dc4b3113ea1c98c5bb39291ca603ad53e8eed43c91038e9c8fcaf3b27c3f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.61-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bb1ba2a2608ec8d8b7785bb6a559a21d96dd54874a8998d8bb69b1aa3eac40b0
MD5 0915c90be0d0aa2890214d8349011bfe
BLAKE2b-256 ce7fe697a3852865b5a7df7a2199db3e9e65463874ec606dab702bac8a8053d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.61-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 18a1ced849faf5d95b2e924e20c9796411143fa3fff36e9e4709299ff8bfa7ad
MD5 e18e240bcf9eb9e8aa4a2d2f71639921
BLAKE2b-256 f6b71defeebc2fcceb999ed3ad09898fb85837f9d8f824ab5f04100a38e95410

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.61-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6fc03b8d9900180ba1a16ca769c15dad6ed210ac431c848397a00534d8a7d414
MD5 4ae11959559b30febb68daeef6e7b692
BLAKE2b-256 83a005e6ea81dc70dfad834476d480deb3640d43dfe889ffb91aa98a97df55a2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.61-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 87de9292d986eda479e405f805dc7d7dce0b91d4b089efc6397539e379fce280
MD5 b1917027e4962c59a5008708aa5c2fae
BLAKE2b-256 3e73255b7fa344d13009f074c80f247432bde500504ff75bea82b66be8f228dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.61-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7d7968d1576525ccce8bb396ed6bd18f9269234d14a672542b641e255b121ff7
MD5 98fb3b42f5ba0fb7bb6a9b507bb06181
BLAKE2b-256 d6753dcad01e0d6f1158749090cf06c03eadab9e69de81d5c1553771e768bdb7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.61-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 58cef0b3ce3702708570797ea2dee5668a5326ffea344ddb19151842185a31bc
MD5 09aed5db18c1d22655f6cd312e95132e
BLAKE2b-256 8b3eb248e596a7631190d17b4060671f9cea749936f493e0e91f7ede2d481cca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.61-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 773e1439dc7ac8bbe158fa6b1da4d3463287434b6075dfe0b770e5d71323897b
MD5 cfe9378cae26c99e4e58e776de5c3b8e
BLAKE2b-256 14ee48ede327c7a310eb745150be905953ea0536b78a10418b986ed9e1d18b16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.61-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 222045ebe8d88a21c05010e826e4536193b045724f9c0da9a5e4d7dcd7beb820
MD5 cf5d4c9f6ea9b2e2efc39f2e5d4211a7
BLAKE2b-256 a2fb0146614f2be146eb6ca519c85c79f17563a2043f7139d56a0b24bc3180e0

See more details on using hashes here.

Provenance

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