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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.145-cp313-cp313-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.145-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.145-cp312-cp312-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.145-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.145-cp311-cp311-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.145-cp311-cp311-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.145-cp311-cp311-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.145-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bcae82ac3c8a80c416936efa35bbd14e6a7cecd532fb5e3d4b557206ce1b1d30
MD5 422c2321a1ac890d2698ff76478995bc
BLAKE2b-256 2a0932cc05d0d90dfe5581cc6d88ff591fc35e042396dc835ebbd56a50415f03

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.145-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4ff89537370ce8d1a46a5efe99ed8c6dbda4bef02623a829109f71696b12fe3e
MD5 cee2f144c27a2a743e57b7f4a708715f
BLAKE2b-256 875b8b7a689b76f1eb30f492610a16b79a1d23ea294bb60e2c5e10e4c26f49bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.145-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 28a6a3b4c3c2a42d1062dd51d83a67112af17bbf41d9c7c1fd28ebb75fd2f26f
MD5 8e337e04a224810addb67a8dc8ff2a02
BLAKE2b-256 1cf7a7032331172b45f9845144d09d466b1a2b4e181fcfeb9005a40698e2294f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.145-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eb30d97b8e7d9181b4fb933de03d07c94bf05d93cfb327486f7d1e2d54dcc312
MD5 75e6ce995f4e1a436ae998683beedf18
BLAKE2b-256 3ba7626b03d0cbf4e41f6c56820e19cb245a1c1e5d1869e095fb3ad7a5621652

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.145-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 fe1538e47d13df7da461f716755ff429ec9806549df015de14c75fa41dc262da
MD5 6afd4fd6709870fb58dd81142f3807f6
BLAKE2b-256 e29271131c95543daed97dab8051e1e0f52a472e4503a6a27ae9ebf532b9fb25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.145-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 681abe1303cdd096dfae6afb5a3d0cf4cb4e4153a1d7e86eb327738ab43af836
MD5 a9c786461c3f1c901b219cc11b062b7d
BLAKE2b-256 17f826c7db4fcb6049c347ddc2cbbd44d94e834abb12bb78c88c85a02bb03983

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.145-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 54eea64db2eca132a7fe0084b4ced4937563351c52de27515f782335d7e85109
MD5 3b4573564b6628c0cf52dc3f1621dada
BLAKE2b-256 adc4cfc8a7756853df817f7282d847e3ee233282062e094194997d189acbbfe1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.145-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 22a69ae54d3622ec3425fe821c41d1925dbb5f5519f34e5db643a5d53d6ed239
MD5 6eadfa7a11d978d0e986cd8b24bea5a8
BLAKE2b-256 9a162b09a4b9efbd734a9c00dde8d0e5e9623f358eddc01f9ce80e4e8e753ed3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.145-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 52258983d29efe90a38b3117105f2e78442d5ff750c69e369b09195bd8f99cbe
MD5 da7cff698888d9c9e357c7f217c474b2
BLAKE2b-256 309e4039d18b3a23829ebf33d52786217587c042e380f6e2ea00c1524972d130

See more details on using hashes here.

Provenance

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