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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.103-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.103-cp313-cp313-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.103-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.103-cp312-cp312-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.103-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.103-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.103-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.103-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c0b58585a82fac65d79909a8f6b13f702c27cc6dd0c3688928048e11bd6ba4b3
MD5 ee869a1b759e0d06164c6231c2fc9bf1
BLAKE2b-256 a834815b680dac48c34216f235245740cf41d4c3d6d9b1bc09afb7a1c16543fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.103-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2b3bd2167e81a0c60601a6b7628051941b969dcb4ef6d3433a9410f6eb380d92
MD5 1bf687dba9d2ea943f3ec9dea2332cf1
BLAKE2b-256 abb60daf253813deaa81fa0aee53d51decf8e27c9a75512acc94aa1058da5ba9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.103-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8f15ea663ec16d40628d192c3c1eaff19e5fead6a3b90f64498d69856e9548b3
MD5 dda41ac0d92df074f43ffc0a3c87e202
BLAKE2b-256 0ee668cd33fc9c5daaa49cd6546daf1cfbe251083d3dfe7e3b47ebcc34b0c7b6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.103-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9995f37e706235d220f79adcf78594d18b905a56471b586ffbcfd741e95ea142
MD5 d1d304f8705de532fe7cc8479a162728
BLAKE2b-256 048cd16ae37ae77dee03de41580813223b4378a20f3897e129f88329e54be072

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.103-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bd82f31af54999c792c54bea137170f95531e416e9e69bc9098f4961c798bd63
MD5 de0e8bc3c89a4c0666ae543695656af4
BLAKE2b-256 dc09e12fadafe9a33c262c6f9609d5199e041088dce17e5fdf3eeaaa297c297d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.103-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 51d66de5b9c9e84d0032f9443592112bc73ceafc45f7bbcde1f8480a08b1b4a7
MD5 29b92249147c51218e9fd4b0d0895370
BLAKE2b-256 021a3ec34555f506016e669bb24fc81343960913edbcf1371ef5878cd550325b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.103-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a9c9fa942609626e32f794fa983a686bfa8937b3371b3ae830cce3bdf3111882
MD5 43fccac6f04837f8b8a789106a4aeb84
BLAKE2b-256 ba1e4ac5f35171686f6f15a10a76cce0ee3e1a5aa7c89b163bb4a7b1aa9e7d9b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.103-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a30903e8b64cd751fef0179c9b913f789e440461a5f3f3ba1bf7d4e6f386872e
MD5 4efd4767c371efbe4df0e4ed0fb20370
BLAKE2b-256 2d38996c20c60356b3f5a9133c2a8bcece5fce98579223aa34b9e66498c5633d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.103-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 65e58ab5c1d402237894a27cb26aa33f3ee44aeb8ed08d4bcc1fad3434719cd5
MD5 0d858ca9e61fc83b706a4c9a7d246ec4
BLAKE2b-256 358d726babd19cceb120b2e5d0907b82e2a7627a134d88f7b1e920b6b669c2fb

See more details on using hashes here.

Provenance

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