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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.12-cp313-cp313-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.12-cp312-cp312-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.12-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.12-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.12-cp311-cp311-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.12-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f2e558b97d22f8e74ec66758e9189a4045d71fc5a34a7e8ffb20955aeb00202e
MD5 9c39ecbbf833b860d6f87f37d215a36a
BLAKE2b-256 543494bf7b236c7a55676723f69a525f133eb8cb8b6e3dc96c8b88705da8a677

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.12-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b5f9a6c22e7dcbac1d51ede299964c8d87841fc14cdabb811131f0220dfab829
MD5 7706bbb7d22f0fa1e6fc3ec3b1b063dc
BLAKE2b-256 309b50b2c35cc8d6fdf67dfaad314809bcfd748f8a3b7f99bd9c42f8095293f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.12-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 da30fe860d655c8a6252404856faf2144700d14cafdbc84120158ba183da54a7
MD5 cbe6f55b6fa78982ca8e7e9c63e3763e
BLAKE2b-256 fbe0aa818a7a893344a5abe389f615e5e9bab9c5fd79f7dbdeb0eab9c1bf79d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.12-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ce1c03d599f9432e42b4d4bbc282073007235f58c3e918d59dfa4031500d668a
MD5 337bc73229c106385479b77c0bd0d2ab
BLAKE2b-256 a96aaedf3ca339bf96d76e6c905f102590eaf52a56d98bbbbe5da543604dbd13

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.12-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d85c99eaa894b1c028a47b4d3b5a676c71a3786d9568a1f29b4b3eddb64e67e8
MD5 a34cd3edd1dfb64c7bccd4098b721c3b
BLAKE2b-256 334a5d60c4de1a0e9cbe97d1526ed47dd2bbdd06e0760d122e015a22bec36689

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.12-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 388b05cee27dff3142cdaa70f8dae386e24370cf6a619b3e1efab95124bc0b85
MD5 b561748a9aba5a3d2bebb16a6311f480
BLAKE2b-256 663c7ede4b041adc0877069bc4d6658f7d13fcd44b696a9f617136c742c69136

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.12-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e36e9620802c5091035172fbbf18efacab1f36b7eb3707a299f34c5b84576acc
MD5 0a171a9ffbd14151a3226a39d19b60d3
BLAKE2b-256 540c4b9b93cd5ec496a11738bc1a328b705f432c8b17c4d5f4355bbd95065ba0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.12-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 31f00cf438f71a60ad3814e4a3462fde57dca55d9e7a7bdcf6e83055ae3a4d62
MD5 2cf5f2349f17edf006fae541a66fba11
BLAKE2b-256 a1d96d04c581bc1250af6f1dee96651a5f896dbdc05fafb870374f65a9d1996b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.12-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 47d19a945fa8f6f18311fc43dbf7cdacff0633461d72a1d31fab0de815e748ed
MD5 d4aad0a57728b04b7715061ae2736024
BLAKE2b-256 7a4c00f17c3245d48a34b838fb4094686026b66d203ad7a448234aefbc65bd9f

See more details on using hashes here.

Provenance

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