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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.103-cp313-cp313-manylinux_2_31_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.103-cp313-cp313-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.103-cp312-cp312-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.103-cp312-cp312-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.103-cp312-cp312-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.103-cp311-cp311-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.103-cp311-cp311-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.103-cp311-cp311-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.103-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c696005612727ff4bd6baa36b81fb3f6fee72ae4e4d909d520bb492938a0041e
MD5 c6b1b9a650fc6e9d91dbccf064e94052
BLAKE2b-256 c7e45c9a97d9c3892f16eb7e10b168bf89b402b242f117ee7f0acec11b25f2cc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.103-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 88ef4b0b18863516d559355c57ce8764f96f7708c5feea06e1fc05f6cc3e1cc9
MD5 3304ab18cffafd7495e34099112dcf80
BLAKE2b-256 6565247c4c2f3ad687a003c2eb67b9669807ca811c4c0b8d54df3e53501c3c86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.103-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0c2867bef976a08456b8cef5ef4b87f913d3791c3fd2bf341d2256a9f2d3beb0
MD5 b19888d06c58ecb489e6f442653f5995
BLAKE2b-256 6be5d6aae870eea61afc8e96e2dcf523e466e8ce20477257632da5a56fe25885

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.103-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ef5a5cd4abbd93756706952a9c8cd9d447f46be4997fd144a744bf2efd319935
MD5 53f47fb783035d6236e75641b81d277f
BLAKE2b-256 85b41d0242d450ea0d3c0f7018b4cab90a3c23c68ed6c77104493083e6404efb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.103-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 7fbd97cc6e942468542c4c3cf97bcec11b5289bd5ca1f4384ee9db3f4ea859a9
MD5 58f7ffa455149117e96b2f3d0b0fc041
BLAKE2b-256 cd396ccd7ad803970307750ff74d332bfe4c3a3aacb2e109d7399de805302d38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.103-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 100471260271f1b71f747a70954a92db9b057e10aa4a6d22897af3346b7b0d28
MD5 8e9b2f7125410d8b0244cefd0032aa46
BLAKE2b-256 4182c6ad7fd03ee63a955547b48eed96071257796de06f752bca984c82dfd824

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.103-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 002442c184ec80735ab78dac120ab3ee130cb48b2dd9b02318eab64aff4fdf6a
MD5 1716a8d79dbd3756c05d5dec04ae1e29
BLAKE2b-256 c6c9b4ea42a5653305d157c34ab5710306f6cec66a6c3deaf4df787f0e52938a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.103-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9f5e3b7514977165de740abf41fc85c9add95705cd0f423f49add83079e48c8e
MD5 45ac024fe4f4715238477a6aeae84423
BLAKE2b-256 dc3ca9e855ae3be63573fc2e34fecb62d40e1c2780d4981486a32df08f1572e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.103-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a3bcb3484a2f0e236879eac9101174bc8589f8a601042799d03bd31b4cc39b2e
MD5 2b6bf890b3b1b3bc8c4a754553e4f36e
BLAKE2b-256 aaafea8d6e1a1d3798ce73332a50364370a51c28de1f33e61211a7f64d794e6a

See more details on using hashes here.

Provenance

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