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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.140-cp313-cp313-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.140-cp313-cp313-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.140-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.140-cp312-cp312-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.140-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.140-cp311-cp311-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.140-cp311-cp311-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.140-cp311-cp311-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3340d9fcc5e1485150f95f829cbfdbe17d938ca4509fbc3d6a93dec649f19b2d
MD5 b1ce42790448f46e07ee9d0fba94dbfb
BLAKE2b-256 10c9b3846de28ec91d2bdcc4ca46662886a8cd12d90044c06fc43d1607b731e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1060a3a4851d44ab4964145ca30297d391990cfbb3312b9cabb416339ccfcdfc
MD5 61e5a727619c8ec37b4ae97f636bfef3
BLAKE2b-256 d20f3b7199ace71e62dd8b99042c12edd2e285f0b7a9c6a75e2569df2423d547

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 57f2e392937ce24f1f2987dcac89acda4f959f0bec5516d0c4b7329e2b8575e4
MD5 79e9393e74d7c6c763ca8a3263cbb452
BLAKE2b-256 12018edc0f08c078856d52ff02df31ffbf8a3c555c9596af2f6288ac9e268d8d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6fca87b9bd7ac4e689c2211218f94610a2517c28178bd6ad051dde98afd368f9
MD5 920c6034a6dcb8dcd094d0c43c067add
BLAKE2b-256 23292ba39e4a0ab6a74cc1921bf13bca3fc58104af3c77f96de028bf503e62f6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c163955aaf8f6ad3d22ec5a70cf1e7e86ab1dd537e3732f1440ab71a59099198
MD5 bb399e15f8d0f06b13d68814edaba19f
BLAKE2b-256 4e01aee9567e72f2bcbea4316f641d626f1e102eeb969e3d33574ba382d01a4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 43dcff3557aa367e7f938b66148cc59a6397ac71afa907e45e4896005b568ac7
MD5 4509d353f571b30387dd202e6be6784d
BLAKE2b-256 04fe9d46f2df0719f839eba446d83498dcc4d56e3666957b89ccdf9960e97502

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f31465d7a440b58f346496e1359765dae3ef8dab2f0957cb9c6412807e3b2a91
MD5 a730d68fefc56590aae9e4b67e228126
BLAKE2b-256 5f88804da6ab901464a79403711a6298f769bbeac637a961243b1488276d8e57

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 379ff7606dc9e561d61c5b62dd65860bcebd5f22af68e1ed946cd5db4f2a5968
MD5 005ae560026c0e61903a8514d9a925be
BLAKE2b-256 609db34ba238c629eaa0319621f05c600e35b6d75dbdc87b0c1decd27dfa8529

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5b0c0d2ba33ef55c8710a6a11a7ece7108eef0f6b3775f4133d6c026c4c2ea0f
MD5 107db243ac0ba23f0a2fcb7ef13e7694
BLAKE2b-256 9d2cd6e2a2ae73db5b1fa83cabec3b460309a6d08ddbe33fabe30d2f5a67bcc9

See more details on using hashes here.

Provenance

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