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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.142-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.142-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.142-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.142-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.142-cp311-cp311-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.142-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.142-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.142-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b6410b2006e707b6b2828e2d732c509e822345610b22fb07fee171e38b85d59d
MD5 00dd668fb99c21d46dc0093609aac297
BLAKE2b-256 d7bbba7719c6d694c6a697972a768fb9e2053c1ae7c4b47f8389871dc2326eb5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.142-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e59b1afbf8dbb63938b63a4c9ff0fedaf8950efff3d84f465c16c7b19b7dd56f
MD5 a7ff97e0ea13d91ec2799a942d879ada
BLAKE2b-256 de08eca31743dfaf7b61eb93f1f936d3c6d7b71248fe9b34ce0a93c7ddc1d888

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.142-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 886283033982bad04abb3dc9de29b3a03d36d7bd80226c86b801a11d6504608d
MD5 d7d1a734b9d1a9948563c6dc68731afc
BLAKE2b-256 68cacffd74a237deb020be5c6ba85150d8107c48006beeed69341624447b6bfc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.142-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 de93069e0bdd8a21656672e134ea930ab9e9abd7d9b641eafffc98c37b406365
MD5 65065b7b97c5f84c29ab1b2d8d28914d
BLAKE2b-256 1ba0a5546d0c3a1cf2d46e871a3c95ded7d680d20ed9f54b6bf3a206be9fde03

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.142-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6e5133b84a367646ed73bc5c38da3b55749d36a6d548f455479af33c6d1edf8f
MD5 91b2a0261210409f7e6985396ea74f18
BLAKE2b-256 0186a292726517455d400ebec788256e14e4c0df1bdfdc544ade292dd08a0e1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.142-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 41aab0d7a50278ca4b4e99f38368b7e77ce572739ab29056174630447ff56faa
MD5 1554d411b1b32e81c2f5e75edf0c5b47
BLAKE2b-256 af93066e6af8c304b39781c675faf92bb639f921e6ad558faa137ada4ef9baec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.142-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ed9d59c9edeed35283e4fd898e11274ea01a5218656dc7ba4cd6c2d65753fd0e
MD5 696242619bf647ecd8dffc5ea22834ee
BLAKE2b-256 06a563b052379ff8df4682b29aa17f9d067435e94bf7c6fd9fcf82019a46bd8a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.142-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8a7478fb3892bed84a609a485e6bc96a8ee9c4cde2a71f3440be2cc4d6c70c70
MD5 467e3ba450f0801fb697aa5c6786a6bd
BLAKE2b-256 3ef540c98160f93a96d14b64951138e1ce0203cea55e5da86cb4cdc1f472ee2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.142-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 cca994ee4f8b59eb4fff261dd195d2a9cb71999ebf22085bd9c49b30bdd424bb
MD5 85f400005907010cce94659af2b22a30
BLAKE2b-256 d87a72b37d975790436cebeb6f623c95e08f402f5294ee476317e7686637d379

See more details on using hashes here.

Provenance

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