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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.130-cp313-cp313-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.130-cp313-cp313-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.130-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.130-cp312-cp312-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.130-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.130-cp311-cp311-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.130-cp311-cp311-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.130-cp311-cp311-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.130-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d829db3742630d3a97a002c59f96c7a7b92340c4f55b9d10072eca860cd513a1
MD5 394511103e0d99a885e804da17d88a93
BLAKE2b-256 fed7c4274f5e8b02ed678e0de41c3f48491c609b426c1c8e3b9136fd6f7e03ed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.130-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6a87e881a56b9462c99f3c93e3c4dd0945999278016309dea81e663dd7b58b73
MD5 f2902c8a8be11270abf8938bd8a6108b
BLAKE2b-256 5a3a11e301d2b51da2bdc7de8daa19f03458026d0ddd686f2fb9900e10201ec8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.130-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c45bd6c1f562bb4d7c32a5beaec4e738f1ddf248dd29ebdc2f0bca4d77f78553
MD5 39fb9223bc3311f65562b0fdb962813a
BLAKE2b-256 912b425aa336638cef4f41dfdd7b2c2ff58b3984cf030548f4b8604902001a41

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.130-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6abe1f9e7b9f3233f114350671409cea78ca96401262f283e8f3a5450733ec7f
MD5 5e41098628cecd09322dcefcdaf483a6
BLAKE2b-256 544a6f2f098fae20087eccb6d0b78d1859fbaf06eee34ddb2f81636606f81cd9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.130-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 25b91ab5310ba2a71114c5310d050327d9f4d0e415d2821a64d5ad192292dc6f
MD5 71a964667647b5f3d58893226647972f
BLAKE2b-256 a262636ba5e6d79d2a69631791e422806ddda6948f59f80c8ebb9f5dae17601f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.130-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1042264b389248cce79d366b12eceef4a075a3c101308bbad834eaed2ad209ce
MD5 64fa98007fb5d87e1e2d366c551aa86a
BLAKE2b-256 e0fb63e38c8ee83d4774b4f1b608b52be49da6c87bb59e091f2481acc5fb4775

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.130-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dc246d10e61a5398a8fa79040fc934d6769a75160e775dc3e4d8d8b99a6d82a2
MD5 083edd198990bf0a599af5ad134b9e79
BLAKE2b-256 49f0cf7aae1d2104349bc5489bda9dd10e35944eee668b5addee03161321f300

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.130-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 090c6f6b8dcac33c7df076983dbeb5365e64b94081fff2084daa8f69e6e388cf
MD5 aab57729f2e62a9c843696ae1b54aadc
BLAKE2b-256 72ea04b5bc8c6a78b6c85d7904e8eeaf7b7b5832d45fc25d736923e3cbd072f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.130-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 64f9cdf6c28fa7ce2d853bbedf148d1802435c683d57c0bc3325c50890f40326
MD5 369eae87efc473c1b57c19653ea6934d
BLAKE2b-256 75e4165fc80d20b117a57b94cb171fd543bccc1f5f4fe84c2932a09b15722ce9

See more details on using hashes here.

Provenance

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