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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.75-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.75-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.75-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.75-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.75-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.75-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6fabdbb66748aac80bebd00b53651513413e8f7183a10c0f2bc206bcdc2c2bcc
MD5 746fc428c09a9229616034cdb415bcd2
BLAKE2b-256 de246178f42bf038379b708b075c6e3964d8bcc4fa448b2952c32387e41b04db

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.75-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 340322b59b41087da196d0808cc77cd4ad7d6c801eafea690ff71de5aa4b848f
MD5 09068797968f2eb26804f7eecc6eac7f
BLAKE2b-256 285bc29e0166ab831478dc2731907568ff13f11a1500d4094b577cc956a8aefa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.75-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b8d6b96a5a1f97635cc17d21c475cc814177195ffe9df5df4c67131fe5384366
MD5 779254ac6b9f0e3f99d8600732a37910
BLAKE2b-256 3090ee998e598ede974db420a28e799be59594e68d6ec28eaec5b57e5df08846

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.75-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 347d4ea19dd7b44b294dd825bd8177b5fecf31ada724bc958ea209f7166d460c
MD5 64c89fabeb77732e605761984cb25017
BLAKE2b-256 ff2f9f2ac2ed134ee788500ca77b36adb38fd3c58ac7c749f7d8ff7773405867

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.75-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 354b37782f24f06ead6c63995f2379a2fa14712a146d3d48f1aa5894175ec0a0
MD5 235d65e68be7bb0e84b2213a8aff3dae
BLAKE2b-256 c36b8942f3af1d9f702f93700065a9bd7c646ee746176e280d65c11c1c110c7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.75-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 323e649bada97b01baf95900c4bac658eafb4e59b793ffb2d34731b3151f3100
MD5 a3250d9628d983543d7dd99c56323e83
BLAKE2b-256 e0996eef9aa3e6c2a4ad61e1d40ac135589920cb839ddf3cc473ceddb73e5dbc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.75-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 788c697bdc40895310d079983493eff28e25c206380fbb13ba8fbea749dbf5a8
MD5 39ee99b3e8dec3649b728fc04fad4c62
BLAKE2b-256 8984fa1249b4da77c2c6170471b365b69c9b9383e043a41a88b1e7dc84b3c32c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.75-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9e3679e29e2f2d510afcaa6abec9008947b41b5e8ab0ce259b8c1a710dea5614
MD5 2f14f8f51e8bc4c9c7675968b7a360cf
BLAKE2b-256 15c0a5170a07bfff316330e14abd7ead4dd98efaad910e7523190be76675e429

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.75-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d0924508ef1269ae844ca5579e128cb021365fe96bf4b464663ba726958aa008
MD5 fcf956ed77f50f34b93f01be1c79eafe
BLAKE2b-256 b697b348d5cc21f0f3ec36f640940b3de9c390e05004d8e0945949d52f9953ac

See more details on using hashes here.

Provenance

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