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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.123-cp313-cp313-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.123-cp312-cp312-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.123-cp312-cp312-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.123-cp311-cp311-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.123-cp311-cp311-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.123-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.123-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.123-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0844c3ee995f6d6a19f0755423a319a5b2fc77d3d295693f4ed5e8cc8a643b60
MD5 f081ea4e8c2ff2ebfc35c3e496e93b4c
BLAKE2b-256 e2a00a433d9377a07cfc86876e9330d96b20420f0aaf30d3bcfea130103f8916

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.123-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4008c3465a47d4f4f05bea6115d0ac9ab4b4e6007e95be7f0887303fd4a247a0
MD5 c2593a8e88b84193b70a28c354b52710
BLAKE2b-256 3c70a661f146db03a4d4e5fcbef532fa446c1770c8827540ba8620f6546cf924

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.123-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e45921299dc24f25b7c3715a0d9c569aa523e39d1b483533db2522ae95debdd1
MD5 41151f837bacf495590c2308ebd72c8c
BLAKE2b-256 d456634397011b33ab3c94c7c878982e7d26f52f181de8f397f7d9b801fccdf2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.123-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bf637ca7d4a27beb85db1b9444866139d197995cd365537c6ef06b0e2b3e8418
MD5 e39b700ead5fad104676eb5b10fab708
BLAKE2b-256 a8db8adc20d6825d3fc6aa2e0523e198c3e71fc9ee318e767395d141ae4326a8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.123-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 84a532d2e4f5b99534ded820d73176c2a03da840d7ee7fea60a7c55d756a77ea
MD5 391088b54a58b654fe7185ddcf16b2ad
BLAKE2b-256 48101681ee44e9e2248b3cdbd3c26524f5f59709964b96ffc15a9267160b20d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.123-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a0d886921b35408553cc54e4d07bd841f34b2ddf981d911c130864b9168f58ef
MD5 350887167886e536737ab763df6f5b1a
BLAKE2b-256 112fc3e0c665738251000f72c149bf754df0949381aa51f072f596ed39f505bd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.123-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 367f030e984f1bdf40d3bdf2602b04faecd720322e66549724eab8d3d9e6a363
MD5 359fa331f4c5291d1069799d877cf175
BLAKE2b-256 de6b4fdaafd3a761fbc427402db4818d78e39ed9f8fc8bce68e33b0b78c8ad96

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.123-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c15f23263efefe1fd2c400fa278a391b02f7a29e97deda9c94304c461fd080be
MD5 f91fe52d5e9ee7637deaa6e916c2782b
BLAKE2b-256 2e150eab3ce291c452c4fe40dddd3e671fce0430e0c801ad9829b1f4378f85ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.123-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 dd6c937604088bdb14da46d27bf3ba27a1c7a4652b9c1f41bfc8cc7cc85d2034
MD5 6b3034a9ef089199c602b5e1a6c7404f
BLAKE2b-256 a1c90837f35c687c40f46d978f86539a3556c8404e53b43b64a10009544236e1

See more details on using hashes here.

Provenance

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