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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.143-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.143-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.143-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.143-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.143-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.143-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.143-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.143-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 88b6f0c39082a3a264b9783c4a21beb4a60def24f27c1f11dca94593dfb997aa
MD5 7eea0c672b5928b78966fc2540014009
BLAKE2b-256 1bb66b3f9bbf265837ad758055886e060af950dc523aed83b8956d0caaa2d295

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.143-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b11b15dbb03273c65ff11b480b75758b97b3c8e33f08573dbb469f610428cbbb
MD5 dc00e3188ca7194f525b1e390ef31a64
BLAKE2b-256 a4bd8a639aa626bd54534cd244389e173ac2727a4d771d25b019debf791c3849

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.143-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c1d74eba1b4808dd9d1147ae26b2e04c823e16cc6ec7d4058d15ee735d49bea1
MD5 2221c28635009301ecf6c65f2899da1a
BLAKE2b-256 7907098ec45577a7323c243ba1acbc1806baaaf34e89a61de77f24c776b2d9c0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.143-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2709b2a96a9be56a8b1d2f29d9169de6c03864a5a02ae3a1f59b7e28723b5bdf
MD5 c0e888b989a0c5809e956b2512a2891f
BLAKE2b-256 91407eb409cdbe1681dbd929bf776c324e881431de7727cb6aded01bb7eaa411

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.143-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f8dadab3d5869a07fd0cacfa7778cdf7b448409d2b347ddccc5613eed72e454e
MD5 2cfb82b37d82d9c626eb0fc9b23dcdab
BLAKE2b-256 8ae8ed3b88f4787b6e977655e931f98c9ea09d80ed90860f81eff803d370760d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.143-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ce30a23e0a03a625226080cf161af05d8737c8c7999f8ec681b4ca4e9fa8e8da
MD5 c271129bd8bc720d1ec995b0453cd406
BLAKE2b-256 874f389e4590eb51b57f9f03e60e5a4aebb765fd8d5a08e8c75c01a81d9c2aed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.143-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8055dc109c6fb328ac2ee05ff9ef8ed6a022ae0c321a3eda71b2500a512b9d9b
MD5 d04ece6edfa7cf47f145f7c2e99faa52
BLAKE2b-256 74de7fb7429c8474e977149208c0392572a5d8c8b091218a1b5c58579f1e8094

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.143-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 431ac48393f578f33f6a1c4f4bc410d4ef6510d70116968a0f9cfe63987c9d27
MD5 829f3fbf34449890bc4636a1abf1adb7
BLAKE2b-256 d77d252be179b50310d448b22e72d2064292a020e28dc16009dde2d62ff29cd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.143-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ec3a30ebe3bbc9cbd3a4653d93ae1b372d703b8c70c18d0f1dcf8d0b9105edad
MD5 2dfd7557af3f0df8836776637cac5e0a
BLAKE2b-256 740f4137742a42677c39596d6347871af6c26922decdec3fa6ce2695891e65d8

See more details on using hashes here.

Provenance

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