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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.126-cp313-cp313-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.126-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.126-cp312-cp312-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.126-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.126-cp311-cp311-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.126-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f8857f13818cc60764fdbbb8e83d76234639bb82003dc3b651aef990a977008a
MD5 5f626292a5fda6978fec0477add9ea88
BLAKE2b-256 09bbbf266329019a2532472e0bec43f666e12d41a6f8123a3a8b184bca6df413

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.126-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e24778e700da097b6e41075f524d2bfed80829b3d9938fe9ab6062870b22c0f8
MD5 4aeda1febd40bdb281943a2d6dcd02f8
BLAKE2b-256 8a8daea92a57388a65209be155f4b25db8ef55412bb5c72b1c59eba98559b08f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.126-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 db8c08feddadd227a864b917d69bccb251a9129bb2063bcff57a124466d9dcec
MD5 ddf56de5655afb284c68f3561ba1a86c
BLAKE2b-256 453dc92cfd76551e33322eaf6b40a78d23ecb39c120ae19a915f0e4547f4ef74

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.126-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7fb80981f2857edadd347d9ee31a13b49661eb5c56481435919dfe3542275a80
MD5 7bd27a59c81fa3f6ac895201643c0738
BLAKE2b-256 2fdcac1cca79b04f81d68d6fdef99617f69a071b60e19c1acd6fc9cdb0c8cd4a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.126-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 eff2d932752cdb33889a7da07ac046c012a127858765e17a4248b3eb4985cadf
MD5 81e856cede54b37364e25e62b727a866
BLAKE2b-256 a3ec77503928d4cd5bfaf100ae1a1d10bc01446a3e66e8c538cc0e9d54238610

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.126-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 78c9e192307d435f5d84edcdc7e4ef6c4504e0c60e1acdcd683ee44f8e6bf887
MD5 0b3ae8a74b3eaf43a2fe6887713af6ab
BLAKE2b-256 755986316d0aca2bd8dd20a98e67bae5b375fec7f2cea3395866242c96539eae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.126-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d4e661975a3bbb4774b2f0ff3323c6e68086d89fd8a1cb87181e687e013edf71
MD5 d97e3a44c1328892a00812d467b69410
BLAKE2b-256 6beab67d839c100810aeb9245abfea9633f47ccf4d9007a7a2eabc90abb9aa1c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.126-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f35a2c81b9df0cd1a19e4dc18f3aac7abd2761ddd3dbc96f8806db0d12188032
MD5 3e88ea8ede53175c7d4f13b43a043194
BLAKE2b-256 87e4e03adf4c895c39ca5959563067763daf0d148196062510f153bd4684c200

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.126-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4078801a8c42d0d2ec1b7a740f0b5be969e4228c6fa1236acad26fa38a95d468
MD5 d1d1b623f7cfd444a4943fb65a396a9f
BLAKE2b-256 86b9f3e39fd1f37b08a9e97aae63b783218fbb36d81a9aa5101c4c1e8596a2f1

See more details on using hashes here.

Provenance

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