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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.131-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.131-cp313-cp313-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.131-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.131-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.131-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.131-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.131-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.131-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1785bc732ad59e5b512176e31945092073b332b88d30f3cf7b72c10ba3d44c5d
MD5 738ef78fab5d9fb9bd9e64f1e8875ef9
BLAKE2b-256 600bedddd196271c0dd502f6306782f19cf8dcb2629889319731ddbdbc3d4beb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.131-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f3279b132575df91f0503422a00cb83a166fa262a88091c24545d0efbd25e214
MD5 dc71e93b815a9ef7f6432651139c1807
BLAKE2b-256 305a882762213f2c67596f3042d6919f29127676330274c7b65e7b02cfa893d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.131-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 27a5876b9ef056046858568e75418e96e73285f5397681776a8edbfdeb5ad14c
MD5 990d46a532b6e0883c5dafc6e079c3ea
BLAKE2b-256 b32e70f5ce3d21df35d97e03b6fcfada684d11fb2128a6e1433af8c74ab88902

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.131-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6b6ca7a099f28b9b4eda50b683fe39ab23b876d1ed89fc205b28b61bca7abfaa
MD5 b9a0e9e929b6c8bbf26b36160e54d1ad
BLAKE2b-256 72381c981f373e3864a0b30c2e05a1ae3188be78831329608e44867e0e11ddea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.131-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0ba4c89f3d4e4b444c3166b7f570b68c8a5a1cd0e9e68a9f79684e2edd657b6a
MD5 f7c1ddb391479ddb631c537ce7a8e211
BLAKE2b-256 b207972bb487fc9e4c0af76b3c00bb8f7afeb25d8cd88122a6dcdf9926d058f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.131-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 125d6765d38829ece5027e0ee12704f460d7d7f470c8d9232c0bf03db639ed40
MD5 4de9742b909938941ae0a6caf047bfa6
BLAKE2b-256 357845452b15555767ac8f5698c0b581bb4f848d1c63a7bd031056a5e17c4c99

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.131-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dda4729e9a874005be10d4f0644f1da313117d624feb2d0e9b383e680df0b114
MD5 e5d2da6d2f78b9c1ca0a62ee408b28a2
BLAKE2b-256 0556cc21f9a40a9e505310ef7685124cc73d4b875829b493e68094720ad6354e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.131-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 25d0b12cf4369f96e0a64a10e9cd49e270aa7f9529d3ef3b98f7327ab0ee2fe6
MD5 b9d9f9a8fd39a25f326f95a3e731e92a
BLAKE2b-256 276a4d237225774d224410de2efcaae3c4d330e7fc0bc0be78fbc49765c1974d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.131-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8ccdc608cd2d8dd7b3d77f4a2ad73820f615eef90d2ae3e9d1b6f88e84bbccad
MD5 e05e77d58d689728ea44ae71cc6172d0
BLAKE2b-256 426ea5d3c2db66ad07a069f82f575c27893b384a91a198a2148ae2464a664ce4

See more details on using hashes here.

Provenance

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