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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.38-cp313-cp313-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.38-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.38-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.38-cp312-cp312-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.38-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.38-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.38-cp311-cp311-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.38-cp311-cp311-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.38-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 193454907bf21e76b50ad1efca785879c1aef7289bf52a20bb0ce9e5ebf22857
MD5 7bb071b51f141c39a10da730a82df39a
BLAKE2b-256 b6f99737de9a8c5e2d40586dc0f4bc8f4b04a36eac87c654a6ecab663b7407ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.38-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8960270a0a9a68bd90a3b91b69e0ab953460b5149b79b3c6526275f0edc264af
MD5 e1b1e21e852bae1dfaacb72e983ed18e
BLAKE2b-256 4584a662ea5dafd9b02799d2b854c0a025118691efa68efcd5011d1179e52930

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.38-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 205ff3c569d9055f5cb166689e461f4597458ecfb35df2ba2f0028b17f55086e
MD5 7d24892341cb274bab3e18e691bc1d81
BLAKE2b-256 dd122f67b8493616437623f197f5770f47f13c3385a9d2d071328be35b4d0d4a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.38-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f6870bf28fdce334bf1e069845e4e225b3931f4cf174e3ad372223e510065c8f
MD5 0dbe34fd9bf3957a1c446f116e3c07fd
BLAKE2b-256 ddc6648f36857a7072bc86f2145522c5f445c85dadb6a477821e010551777b22

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.38-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 dd33e74a3d42c95eccaa3898a40fbac51867f27096918327d2a5eee8927986a5
MD5 b93e9542c14950a72746642bcde233db
BLAKE2b-256 01c30863bade740e795a4aaa3ac8d031335cd2d79302f5ea26939c5fdd7eefc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.38-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0a586ac30788f9880cc5b0b7040c5ae09e931e307ccfed5bb5fb41736102c1f5
MD5 3332f59474e89bbb39aaa547997a9be7
BLAKE2b-256 fd05207636f5c51a56b60d952c46fba25b20e88b3c02bee9ed339cdb7d0a37dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.38-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ce67f8b18b3b4756c70915df3c4dc38115354dcc97bb9edd8ed7ea4ab092cb5d
MD5 d91b28cd95b064a275305b0cb8663a95
BLAKE2b-256 26804eb48bb4fc086998ad97684da8993e33c8dffc0d2041b8f04a04d6534dcc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.38-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 7ab9ca39e754fe340f958faa4f7e3829771abcd2fb87525ab1ffb9cf9d5a9f96
MD5 f25cb074dc9235118d226ac5a2130ac4
BLAKE2b-256 0e8160141f76a20db73faa5a795a67b77825c87d09385ddeb7f45c6c2b1f2afe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.38-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a3e8fd0353b540e3058716245483d3d0dc417aad57faaa16bfbba3329d0ff1e4
MD5 db3656b88a03750dc4a11683f623e3d8
BLAKE2b-256 b84965867309cd48715b6f667e8f858a3df7aae678f37a56ea378d51c6a5beb9

See more details on using hashes here.

Provenance

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