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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.114-cp313-cp313-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.114-cp313-cp313-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.114-cp312-cp312-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.114-cp312-cp312-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.114-cp312-cp312-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.114-cp311-cp311-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.114-cp311-cp311-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.114-cp311-cp311-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.114-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ebe3c6e41ee1b7971ffa60936e15465cb054c2dc34239f2e6acf043062ff2049
MD5 dc30457242b0ad823202e9745a4a3ad4
BLAKE2b-256 11a943d462b30ad8c12a04b9d90b64297016a19f2897c59ef416a820fd5ebef0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.114-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 10a54749923f420fcb55179c0cf4280e6fd8a9b0aca3f8e7103a0379f717e66d
MD5 23943821c0629f9810da7c61a465962b
BLAKE2b-256 6557017751da0c798eb19f9a4e73ee3146708b0d5a9bf2905a4ca96ed6daa74d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.114-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 31fc4f51bb0113adc5e4f121f5160c230718d16b17967dc32b949104a5c37a22
MD5 f7e31833b74164c5f3fe9f0a12129d5e
BLAKE2b-256 6f638122f770bef3bd12d59af90b1a13bceea325fd381c7fe66200a58e9ad173

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.114-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 905f3bd1427e8f2cd91e296c32b2c832a30899794752e6c82be570792b71fe87
MD5 624d0f0ddda88e931a4ac707db7fa3e3
BLAKE2b-256 4b6528bda69f15e4a5c682b63c65768f8546810d8261a8d319ed74fceb60cf3e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.114-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 27c2dcbcdd81fcb9c55825405b5c761df723d451c8931931f2841c0e61994b57
MD5 b22270d8943ca8370f257c1574e1115d
BLAKE2b-256 dfbc349cbb031d5948567df811514e1a2cee334996cb35f4ea91795d742186a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.114-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0fca061117690376511d938b83acb1698a40682a35fd52c5cb43acbb3d5c309d
MD5 63d9c8ae7b533006a864386ae81c0d7b
BLAKE2b-256 9246efacb2495fb1866b95fb4b59202d757438f7f5984e3fddb1c252f5f51bf4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.114-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b7b3cfe5ae0b06443a7498763e9086862068ceb25e0995d2bd36e6098228a3a2
MD5 854bd005ce25271bf78737403d11f325
BLAKE2b-256 678eb6c481a7bf74b093ce5e69703d3221a72cd80b1000d558d6dc1a6055e751

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.114-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4361726b06d9d88c8857e2e3fdf5f200960a112415ea8e584c4b2a41158cd660
MD5 8e37796947c6d4b1ca49600e68a18879
BLAKE2b-256 a1068b31e8a3c18504bcb75bd257c08aad856bd3c0ed5b36be1862a0f7692246

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.114-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3c5783f60806b73a64e1c61816466ac5175d0652967670a4e43c4b7178e8c063
MD5 f45c17c7aa63fd6e31b1a67727ccf7d2
BLAKE2b-256 67d988ab2c1c230da7cd4f7fa63e25872aa0b348f1f6baf5f44bbffe3ad443a4

See more details on using hashes here.

Provenance

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