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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.71-cp313-cp313-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.71-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.71-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.71-cp312-cp312-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.71-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.71-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.71-cp311-cp311-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.71-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.71-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bbb7a97c4b286e3f01f216cbf69a0d9944ec0ff593527a3ca626fc867a4c7b01
MD5 cbc77745bb0abf38b3071224cbc21c51
BLAKE2b-256 a0c7ee6f7439d6a3bd4ff6bf01b6f4917f1a2a16bab269ed48dade77c58802a3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.71-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e5e3c47ce25849f8a8ea0ab8fcac75a7b9d94f8301fb94122c955ea2d6e753c0
MD5 c9640fc45d255f46d6f2602c8800621e
BLAKE2b-256 85b3b9ec543f52703ce49fc8a1868ad9afff10e0893c0b16c459cd6b32f38442

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.71-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6a4e2e302ff16c3806ed707c8bd88338b4e24bf8a1d11b15a5145b228d5f9d51
MD5 451b605f1df964e61bb0a98b23a6fa8f
BLAKE2b-256 d2f18aca5969a3fa3d03b0b77159a93ebc802b126b0f5b07b21ea9c9c8fe3c13

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.71-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c9515ab9ebf029d363986df75bd080ea91d5f455b442d15ca2390804efb01357
MD5 49f811e0a203c1a280eb6fa52483f177
BLAKE2b-256 9d8dc13a3bebc0a8e2eb8b3640a26d220f3be036f21a1cb5eb2c74389da07bcb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.71-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ac28d5c802865bc1b4c191cd1e7ba5ce05ec1f865e7f2f3bc2f253dd791aacc3
MD5 544b1d48d9e045bb39cd33d74a280bbb
BLAKE2b-256 4dbd7714ac7fbc6a75ac2cfcd768922ad6385b448343b99957fa5f842c6534b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.71-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7e84e344a4b94734016610d12862a417f35df924fe8ffa3bcbe168a4f8cd380e
MD5 3b66ed3d0df05d4687c6ab4510fbf985
BLAKE2b-256 7e67004d864eb283161542aab0e527c7f6194d2e8d05218f84e8cea7a2fd06a6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.71-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 36785497b8f9a567cc43ae37829c5650b17324fd9fa52b03e3dd55799ae98e6a
MD5 2fb4db439f9b10bc5a78bdffa3cef788
BLAKE2b-256 9697d979f422b044c2f3b18a7c760c23723c963992b7402c65fc0b26ff4926e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.71-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a240d558a7c1e5953d0d225ce8bd4f361810f00362bb5cc73f8f369e9837b36a
MD5 34a369b72316e5976685d476cf205c07
BLAKE2b-256 84ba08f03b79e68a7bdc745b30eaedafed05986a6b6ab1d940cefa6c40d4d11d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.71-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6dce4dd4e22bf2cc1916042bd7a5894fb44b5cb8c883b77a7ec1aabb30e9fe38
MD5 a3fb4387efdcc14ce3bbb2159b3d762d
BLAKE2b-256 b92600a419c303f11bf4519c719b97ffb80be6bf3e6c6696dcfe2e27025b5b6a

See more details on using hashes here.

Provenance

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