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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.16-cp313-cp313-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.16-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.16-cp312-cp312-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.16-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.16-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.16-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.16-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.16-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d0f293c69a085c2a00092c61328317eb5922ea5a3d1ad2ee6723fc7796184d76
MD5 90487b46faca3ae2c64f5c525ec2900e
BLAKE2b-256 500480935d20263860646c1d6c40f2368d33fa48ec60f93df52581923f2afd38

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.16-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 73437fe0a138b93ac87652f98f9b8153c9c7bf5da5573a316dea726f20c2886b
MD5 30ad47036c1017ee8d9c627acdbf2e08
BLAKE2b-256 61869b7a63cb36c93c490d2f941709f7cf65fe6c7c868d76874b904e3b1b57e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.16-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c62a7af3c1fc7ea3436d6e05213cc5bcf18de6830ae21fdc41d99a9c72702735
MD5 ed56f6993e4905159cbaf72477a3382a
BLAKE2b-256 7c8b5f4abe67d20bfee3258a3c4297bd09cbf5a8626491968d7f38136101ebd5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.16-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 001597e390c6985426c7eb7264000fafe8999892bb8cedf79c8a8c0e7e7fcca7
MD5 48185d66821ee1fb21073f1a1683381d
BLAKE2b-256 e12ee71161e339de6a021888fd583cf2dc75eb3dc52c50ebe694fadd7dcc3989

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.16-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0657458a4606a87322701e484f96796b864ba79615378142b31749cf020e250b
MD5 569aba937211fe37a649f30a7426a62e
BLAKE2b-256 c9274b825b9261540cc91608b62294526e64b0129e9f40ddce5c0bf8852f9b1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.16-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ef1769b70e517913960f2e52d6f2f30e743a82271268bbf1d3882c678b2f0fd1
MD5 7eb20e4c62ef1fda85650d6d5b0fd913
BLAKE2b-256 175e055b3e50a22ce05712febbe60ab30fbd07e8a99b62422975539ccdfa5315

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.16-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 df6dfb6ed55fdb061de33e2e629e6cc04e7420c0f771767e71e3ba9028c2618b
MD5 8e2954e81fccbd01c5631fcdf3a36f52
BLAKE2b-256 4797a02884cccd30add655b6b9f2401c498d783fa4d71a05ed394297673ea944

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.16-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1df7ad3d4ec23bba469a5c61682a00a8b4e1be16fe68bd4a0acfb9840df4200d
MD5 d2f176c078efcdb261433e2e4e1d8385
BLAKE2b-256 17989b60289fc722dd08d12d74192b27b55601e53c7aa99c3f9cff44b6161d32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.16-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b52e2aef985fc21a998923a39f6be8698a5f44b5012df11a00379c34aa1fa111
MD5 2eaa212122cb42272efbf3f5e3cfe719
BLAKE2b-256 f4a3754b530c4c2f144cbbf2ffb06ff142bdc7ea6cfa7a362d52ccca7e4434c2

See more details on using hashes here.

Provenance

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