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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.54-cp313-cp313-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.54-cp313-cp313-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.54-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.54-cp312-cp312-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.54-cp312-cp312-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.54-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.54-cp311-cp311-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.54-cp311-cp311-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.54-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3392b8d02bf558720cb76aeabb8d47539d71062837c423f4fc74b94ae8ae677f
MD5 09a861e13c771c03d51dcdd2ef52c9b4
BLAKE2b-256 18861d067f2874954157986cea36e3613c8a715930dbc9fa34f9080cd491e275

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.54-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 44e2753485dc67f10866b3f58607eee7299f7a4b8ea760b0c178fbc566917826
MD5 3c257b37ce9db99204ecbc358a7d03ff
BLAKE2b-256 b2c41eccdacc385d76fd9f8ef7fe60dfaff1f5765dd31309945690ce3df87c2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.54-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7e78cf4236adf463b1321d50bac44a9cb8e27aec8837490474e060b98fcc2e51
MD5 53081ea2100200510882f868129b7c01
BLAKE2b-256 3497c02096df05692f36df0bab1e2e094e6b466f17088ac6121c7db078edfac5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.54-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0aa1f5388765e4fdf25d30fe315a3f7a736f8fbe2b81adc43ffba798ccdba645
MD5 d1749196cdd1ef37a134d2f4c792a653
BLAKE2b-256 e8b819edb5b849d4eadf4ecefa11d5707b921b8980f06d8782e25addc4a855ee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.54-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 260e36099595caa799ffff44d4af7ac2fb43cef6ce51a913ed491a3f13aa8291
MD5 599b40598efe9b8aa40f099c2cd7139e
BLAKE2b-256 76042cd2435933a443c80b94c0313cf9ce5139c30d577b972ddb5d1a1539a92e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.54-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0b95609d06aa03464d30395a987678b000b3c6d1f42191fc78029f1273b14938
MD5 f55f205a96d3548fc979a4b0ecad7ae5
BLAKE2b-256 c72e4554c1194cf2f084ed22bc8f5dffc10c93acc3529d1201713b712d065e9f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.54-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7d5a890685878608407bf77bf7f138b07b7bcec7001bc7231c42aafa9b069946
MD5 829d823a853f65803a60ad674e56eed6
BLAKE2b-256 953d440af02c2ce94b96d196a6b29e2b8f55f0cf1c6fbb458bee74793602c7f6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.54-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ed8cb9a526606f3b568161c84c8f389555acfbe4a681ac4a718946cac164cbea
MD5 36a32aa70fd573fde69059f5b2860c5e
BLAKE2b-256 cfa0161a5b061b11b901e59b504c8142b877dc3745f2a3ce4dcf857722631799

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.54-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 dcfac38e506c3b5e9b0e425793c9fbefbc521b39da1d2a6c222ae7f6d07e724b
MD5 1df894032b3694f98fa147f3d3719256
BLAKE2b-256 4b09a14849a3d7599c1abbeb580dd84d72f2c9a7ae91a47e4d2135a15ba13cbf

See more details on using hashes here.

Provenance

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