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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.15-cp313-cp313-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.15-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.15-cp312-cp312-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.15-cp312-cp312-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.15-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.15-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.15-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.15-cp311-cp311-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.15-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5cfa07e496f1eaecbec4084797342f4a0430828c62d9968e5655555b41b580d5
MD5 cab4bfc3131faa9a313e4a94b1abcbd7
BLAKE2b-256 2d0ca8f7dd75a8168feeab2497f03df07f528191b7aac1731c602fc05e644cc5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.15-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 7f6d95b933d6ade703752636a27ef47a82bee904512dc7d2d50e25d7a192d0b6
MD5 7587e73242e9c9eb4cb05635fcbd2ec1
BLAKE2b-256 c8b94bc6b78f76d0930f578d53243f5efb7ecee7b51be0d99fd6097c2da418de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.15-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ff4b70d35fec394f3e7119ae9347696bedc17e1f2f83c4cf212945a3e03e2a90
MD5 0d65799e97eefcd949b144a9721080f8
BLAKE2b-256 03f05689c4e8cfc74c504c8119892047c1154e67f2a1abbeecc945b03bc48e2e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.15-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9572550cad12e34766328fcd79ad5f1a3bf81e83b5b7ab43219126dbfb5bc23f
MD5 52606aafe05757c6d5273ab0e53f8f48
BLAKE2b-256 2a98b88ae264ba590e2a9f0bb3ee2446fde5e0d4467bdc673fa35854ee351026

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.15-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6843b38240c68f442bcfcddcd0503cc504171efc8ef8240c3fd6913911b86ce1
MD5 2e64c4d64a19bd1a65a8b9b893df8b5c
BLAKE2b-256 0cb6d053193d6d28d4ef541f913df92efa595599b1752e6809e715ae51643e50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.15-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1d90075676f25ff814affe689cf75a70a74c9b2912217d7433b4b3d6ec689311
MD5 4fc53e2d77accccbbc9ae31480dd30bb
BLAKE2b-256 db4e63dff69f022d7ea451f98b3b9eb93d6bf6a54e5362d17b7d9561dcaa70ba

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.15-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e207ea70ec2b50df586c3d9b5f843222cc4e630c924cadbc185a6a7363d31f7e
MD5 6745e188876cecae3d07b66907fb7aef
BLAKE2b-256 a1f5b416e9e369c329a8c7ab3583426a002b4e7154ced6dce9b54d1456229c09

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.15-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 de0cdb81dfbe194d8096accf357635e4cd38e63014072265666f68b7c4419900
MD5 2834dc9123db3a897ef01513cc733392
BLAKE2b-256 2036154e03cf46b1aacf22994258bd503692efc6eb8efae04b2dfc397af1f5b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.15-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8ca2f991fbf2111f30361bf8ed2fce134f35f1a3e8ca67a1e13cf021a8d97533
MD5 ea3e3bbbb23b80177d24fe1bf1a139c9
BLAKE2b-256 2a577f4308e2f12b1916278c3e690f747aa2ffeff6b8417767b65e7de0f96a4e

See more details on using hashes here.

Provenance

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