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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.69.post6-cp313-cp313-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.69.post6-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.69.post6-cp312-cp312-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.69.post6-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.69.post6-cp311-cp311-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.69.post6-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_inference_binary-0.6.69.post6-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69.post6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c662c30e76fb10a0bb7ece6a66ed332c66a421657458f6d43879944f87ac19eb
MD5 827eedc3bc5dac6dbad4184399de2171
BLAKE2b-256 34b8cf0c170efbdbd380c0841748363ec9f78d9985182f960c6adb7f0cb1d3dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69.post6-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ad4151dfe33244e51be8f61cb8c62b5617ab4c4df6c46bf2180b6d20f5fc3909
MD5 68f26640cd1f06b4f25b90b1ba61d092
BLAKE2b-256 c20ba58be16bdbcf5ed2a2f80ff16c8fbd6a946f1372f043fd88244bf75f83da

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.69.post6-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69.post6-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 087a82fd55b3d010bb4bad8554c6f5d0333895f32cc3c70be90aadfad0830bdd
MD5 271eb5256370746be8cf5b73c1ab72c0
BLAKE2b-256 fad8a1b1b916151c5dd8564f108de41d6c97e8c986a7cf9fadef670f029604c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69.post6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 403ead32b37af5c47b0968e79432e216e3108be018becd6b76039811efd946b6
MD5 9167b4b2add185c1dac78bc2cd0a90cf
BLAKE2b-256 cb8991884420e367f5466e2bf3f487b0e42596f3bf2cee020412cee6f3fe2224

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69.post6-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 55e3b5f5e78e4b948c55dc968a8cb6b58fbf5d5dee2737c1144df1441b6734ec
MD5 184b8d84c3a132ec7f63d5f8888af2bf
BLAKE2b-256 9ad58067621bb9b3cd407f0460e06e6707a669802c7a219347485d1b861b3637

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.69.post6-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69.post6-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 751cc4b12ed75422fdbd5a944a41a990ce53595484b9eb457b213911d794b74b
MD5 fd024e2415465ec16c805aeb4f129152
BLAKE2b-256 bb229b6f80aa9b9e630a0740a931472e1b19555c4abbe1cab3d47ac3454e6f1f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69.post6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9550b9d2ba539d0617880d74a013b2579494d7b93d9c65be94ddcb5387352c87
MD5 ef9efe9c48c4dc30cc15b96749dfb8e9
BLAKE2b-256 638e11abfb4715c61b1057f91b4b599ef65e228e9a43936d368544d70f22924f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69.post6-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3990656f263a3675f69db290c68de95c2509b369cd99088fdba45a14b52c35c2
MD5 e46af752d0efd91073fb694542939ab7
BLAKE2b-256 a179541970ffaed82a32ba84241be8f5a3c72856fcf3e8049ded473d192f5e51

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.69.post6-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69.post6-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 986709be21e1f9600b52e912cc8581550da077c22913eb4eb0e288d58670137f
MD5 7a980d6afc1bb7ea5f975fb4436fa9b0
BLAKE2b-256 143abb0b17b5406bc0287c1376327cfe75872e8812a6a45339ece63bec992aea

See more details on using hashes here.

Provenance

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