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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.89-cp313-cp313-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.89-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.89-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.89-cp312-cp312-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.89-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.89-cp311-cp311-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.89-cp311-cp311-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.89-cp311-cp311-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.89-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6c0032a0c297789a86c4e4096fc89a51005ec16e0e209081a3518d7842b8d244
MD5 29a07bb5b6a2607cb638b09744d8f868
BLAKE2b-256 d22b473462eceedb6ec0255b5b72d69c44af7080ffa187ea459bc75d9306bfe8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.89-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f86e44b9d812c8a58bfa9a2810589f1b98543a27d5b7f32dbf91729d21499ebf
MD5 c1a7b4a3b90161957118fb981d73ff61
BLAKE2b-256 57ccd17760eb518b78d2d86d8d391543f3db5fc570617fefd9d574e5ed9a9b60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.89-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d8222931eb0413bdd0003fb4469146223fa6efd6c815204fa29759dff73bbb99
MD5 426276f42dda68d285ed803ea5fb310a
BLAKE2b-256 e099ff39dbe176672258632fea5b3c002119827a1c6829c642c4954d020891bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.89-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 59c6a05c42c0a8a532d7ffde85658c2d6ad1df5c9d97c4207e7beaa8deda8d4e
MD5 7847ded8dfe08ad8f248ea11d57abe6a
BLAKE2b-256 c5fcb2399b78cb62d4f835caf771bea7dc1a40ba87969a22f02bd5f4046a66f9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.89-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3e37e2015a66f18d3704ad259026e340c8102d02293ce5b27b8a4ddc8682ad9e
MD5 67ec180d158e87aa6dfd6b7f7f2a45c1
BLAKE2b-256 d91aca9210a2956daadca09c40f66dfad057782eee06bc459215742d19467bcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.89-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3b4179bbc649f33f2c06c4736472a92a203e7a26f9c444dccd549215cc1abcc9
MD5 7960b3a699229f24f62989bf430b1bad
BLAKE2b-256 673445043568e7e253564ae85488267c1eb88655444e3cf006ee68b82a51cb93

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.89-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 89d5b1c98604713cc2aa12621fb737b23990b70ab0d8f39882dc4c35c39505c9
MD5 f8bfd9dd54c9ae70e69b301fe0fb46b0
BLAKE2b-256 dc75e1ac7d38cd1b3ab578d76bbfdb355cf8a2675278b1530dd124f1f26c40ab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.89-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6077f63224df2398cba9a2bf4dd9e745369b94538f4cbfbc4cff26e76067edb5
MD5 6d7c90dfe6a7df37ed49f93e34527992
BLAKE2b-256 0afa50d4b9371e25260751ec15f3f55fbc22db154e56f74634f58021ab7bd915

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.89-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 51574e1d9390c02c11837e553127df25e1595fd82ee4f4703c76d97590e45136
MD5 3d6255525fae842db4c05ff7adda0c5f
BLAKE2b-256 4cb326d180bfb8d0dc845cab81e52c3aea60a468a5ddc732a24bf0ed7992dd31

See more details on using hashes here.

Provenance

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