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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.40-cp313-cp313-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.40-cp313-cp313-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.40-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.40-cp312-cp312-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.40-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.40-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.40-cp311-cp311-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.40-cp311-cp311-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.40-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b27a77d05bf67ce4be69e1be28dfb605ab48494ef5ad5bc5612439a2afd79ee9
MD5 3b0199a8079baa26ba1544ee32628006
BLAKE2b-256 44a0706811c881543e749cd5548e85fa14ef8ff2979306a8511e6b6f6dc5e1ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.40-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d34a4034c09a314bdd19bad4ac5aba3b23aa94a5684f7a8c87fae2050a642ac7
MD5 48de1de3834a64b361c74f3aa1e882e3
BLAKE2b-256 81ef136cd95fb43cb38664f9db1adf466cd71d371e3339b97399a063e1db8396

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.40-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8c3fbac7a10b61e00f5576df21ab8509b6e284189b3383252484989fae36d66b
MD5 9c753c870ab37aa2255a3dc1efd3f46c
BLAKE2b-256 be6c70c9101753e9c1cfb92bda380e50bcbba6d3cf4e1101f392c288d2fc753c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.40-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7602b276d41b6932c3198dce4235a9980119c6a0a40b99982505563f6ed7ec19
MD5 34165a4ac48b296865d79660b297eeae
BLAKE2b-256 7123043bbab144a2d38e4092d1cf9ed4efdb6633c7bfa5cbd652c10df940ae0d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.40-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6fc1e941c7299652674b63893bdeaf1cb475ec6b1734661f9fd7d160cbb772f9
MD5 d6812d042fdded58507c40792733b5d1
BLAKE2b-256 acd9469a5c539c4c0a3778971a9547242ee8ca4828de8115f272c86f0dc72a9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.40-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 df444b8529c071df76c02a81fc4eabada344d2d02f1dd210d5270852d5939946
MD5 f3d6ada1e167766ae76341d6c258c98f
BLAKE2b-256 f560d951bfb5d047c994277cf7b4056006c8e13257c23aa7c2b37ea3ab789672

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.40-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a9d94d9a1e8dde1dc1332eda356da7ee346775a27f456aa944ba1fd228f96464
MD5 b50e55b1d8930cb8d32be966e710d9ec
BLAKE2b-256 9d209d57110887810db81de5acb908c2c3901c7186b072b6d95f91dd6bf6bd57

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.40-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 13daf5a8366a12206abe70f47be7d74a01a1c60366fb0a921cf2176b4e4eaf16
MD5 d811ce4944985d75ea3bb2ce1be0839a
BLAKE2b-256 2ccdfefb780e10932c4c0e7af83e42e504fd3456231215b891db3136d6185e9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.40-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c81ae4149b150fa4e0355119e86dfca25646d8ca337512b04e1e7c430a7fb8b7
MD5 668f63afa4573909b6c5cb8dd9eedee4
BLAKE2b-256 dc9a2535bcb2369289e7fe318f6687e0da8b0e6dc8d0f391f248e75b811b0107

See more details on using hashes here.

Provenance

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