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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.115-cp313-cp313-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.115-cp313-cp313-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.115-cp312-cp312-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.115-cp312-cp312-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.115-cp312-cp312-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.115-cp311-cp311-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.115-cp311-cp311-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.115-cp311-cp311-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.115-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 01f94458238df0bad9ad3b1e93db752f8d479a9ce866c817ce225332ce996423
MD5 bb5c4d838a30a88960e7d7aadfebbd9b
BLAKE2b-256 eb1c369ca8ba9f66cf2e1308eab6d36884774c5712ba94f910087a2dcddb4358

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.115-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6e0016fe59c8b19bb613f6ebd8ddfd1fbccfc235d19d2b4e68bbb9a14edbcb6d
MD5 54faad820a06a5d961d3ac9a0657d5cd
BLAKE2b-256 c610a358f7e9b67ebf62355ec4098865e243d0d4bd1226752998a2995613fd36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.115-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0eb8510772bc8051c47641dfa9cf56e7b43cf22ad9d197d23b3ff83b051e00b4
MD5 bf547615c9be616a6f887fbac631103e
BLAKE2b-256 65999d7d01480a5d398a4906d5106cc8712096b67ff3bca3088f69c38918f687

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.115-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d00c044f1c62dc29fa5793aff6a2130fc45789ce068b6a4a15e880a1c18dbca2
MD5 5d23d29afc2d4ef706a7c338f115fda6
BLAKE2b-256 239b77624241479d886917a7722cc5d3b3f718fd951c31a8d3fd45958bfdb99d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.115-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c284f78c79d7627631fcb41ddd2bbabb43bd35c8970ad9108d15a07eb7a9928a
MD5 5ab7bd806ec7751ed0c2abf1057fe630
BLAKE2b-256 45bc3d9e5370c5523b0560136455957764f29445f74a8982d434f1e5c80583b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.115-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 33afa2fa4e4e2161cb872628460822afafa71b1491b0389f2d3eb7d78dc19d34
MD5 1535e817f6edbf7dac7e026d86db2ea6
BLAKE2b-256 beb8f93a303c092ac132491355e483e483786aab3ce08a9842ac43fd6099f704

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.115-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1fb3b2a39ae0dc31adec373b50ed25cf53006bcb56b1082944b77ddc9e9fd7a1
MD5 844bd85f8c3d193f64ae072168a18f56
BLAKE2b-256 8129b68e924cf9e8683172512892dbff988dd153b5c8d0c9ba416c1721f392cb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.115-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 472622d7acf168637e0e495d3b1c67520ccadf3c8cc458081a3627b0269f49fe
MD5 e1682b040bfb7acbce0dd98e63fff49a
BLAKE2b-256 b9a7d2f1ecaeb583c4332fc713c5b7ac7d5e27b7e85814af7e98ad439921e6ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.115-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5fa8e174bee02e048621968fa63487f1a7f68faf8e5c2d16d8becbc9b5c8eb06
MD5 856473a355e42498720c73b301921b56
BLAKE2b-256 503aa2cb24c302185c6d2a9bb1d7ec07f15ee4f163664b9cd15850006468dac1

See more details on using hashes here.

Provenance

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