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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.104-cp313-cp313-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.104-cp313-cp313-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.104-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.104-cp312-cp312-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.104-cp312-cp312-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.104-cp311-cp311-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.104-cp311-cp311-manylinux_2_31_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.104-cp311-cp311-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3eb2f02595b065e8c74ff37ac55610f139b59731ece6c39059d74e790cf7da5f
MD5 ca9409e11ba72bc966f3245e03a792e5
BLAKE2b-256 22755be9a7f5f620b94fdc802c0c6283ae1e539c4461e70dc6ab845da1415b5d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 633943e2c9065c6418a11d3f69991f07e25ee5cff45e67d789feb2358b15bc0d
MD5 06d9a153e86e80e8bf908798d2f57a34
BLAKE2b-256 3ab487236bd0aa55853fa8a9c2eb81e7b78d60156e4757462e0df83e2def3b22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a866b07e910434e1d6745ab69b0d2d4906a11d81807f993e11b2c8bac857a00b
MD5 6a61e255c4368464fbdd8b610ca35d28
BLAKE2b-256 67cba0b592e943ed8377853de2cf573c6af4081206757397be30f31415980e5b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d98518c5540e377808375d7576c00eae52670770c8d41f0ee664d06f47f74443
MD5 565ecdc0dadd0180eeeba74d346fcebe
BLAKE2b-256 607e55c3c74e92831813a8181ce617df9d0236482051549e3b4cbc28d179c537

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 931d7242374fd855493ddac63dd5748b56b9326123a273fced117fe5174abfe0
MD5 ccf0f3f8e51ef2cf1cf56e263f967f0c
BLAKE2b-256 fd69ece37aec8c9b100d6ae677d17496113a193fbc43ef552afc4fb9a43df420

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e93e7a987772ff125bdae4d004fc7affd652f09a0867b15f079f691f1d3fef6e
MD5 18812283320c0c4a02e904c89830b991
BLAKE2b-256 efdc3747449c94390f176982fefafe8ae83abc38a8325746cdaa34d80a31f6e7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 41ca450eadbc11f436d4b5610ab94dc886a93614e0ba1a335a566311f0de8e6f
MD5 2fea7b0d5be56e04c566aa7d21154a26
BLAKE2b-256 1da949e8a0d51c6bcfe887c5a3e50592014214c73f6011919ac1618483a0a2e5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8a789fe76db13b299dddce0db11418380582632520068d727548347eb7e9d240
MD5 c90d759246baed9a8e4b39de63b024ae
BLAKE2b-256 b3fc4892eee168121262a2e733fce45eca7e8eeb364aa7a711e2396afbed85ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1c45737c2ab5b71a900fe0d51eacf8390e900ee51bafbf278a204e3264c5b3ef
MD5 bc3d6032b634db92b0cd6de176d42213
BLAKE2b-256 bb11f801fa80af445f217c16caa95fee47e09ff8abd7432538e7e84c3274642c

See more details on using hashes here.

Provenance

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