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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.122-cp313-cp313-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.122-cp313-cp313-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.122-cp312-cp312-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.122-cp312-cp312-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.122-cp311-cp311-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.122-cp311-cp311-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.122-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.122-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.122-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3416bff037acac33e73a29e2a496b7dca62ccb9f85da22736b744fd52df134b4
MD5 df22023290747381ad14e2b5ad150ade
BLAKE2b-256 0b60a2a69621155a8be2012e864d8d44ddfc1e797aad2a464625cd6df5e134cf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.122-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d60f607501f215efb1ef201a2ad97adafcb97cab3b85e0e1cebd753106578102
MD5 39df08023a8ca657f366ca0d404709e2
BLAKE2b-256 2b7596e7a5b4905a6daa1467206b81dc23d7e4ec98533f8cd61a269036d7afe1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.122-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ef79c72c435fa17033c706973532bc70bbd491a96a5a0ae54cb17d19ff6ad7cd
MD5 e1f69df7ebe7d4edd567c0c1b5284113
BLAKE2b-256 0b49cf749a30005dd10977f8d82ebc9272c3f833523268abab09b4480d994628

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.122-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9bc6fca1f9ba58637e06c1313c7446564b3370fa5c7caa2dbb9f4116de4551ae
MD5 5f5af309d247b2b29b4e06f8a8fd57ba
BLAKE2b-256 95f3451054eff0d5c5d03e7b2471892b60fa7e046ec4d306fad3dca877d7782a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.122-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9374e3ab337af1040ddf945d69387110ae57e7b485748fc27f1c85da7fe9381f
MD5 620aded0bea2ce9f31441b43f398894f
BLAKE2b-256 a74f0a4a9ea5c4daa1da3cdbf3b893d9ceb839ea0f3d8cd43349a4f24ce44282

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.122-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6825e82a7e2169f920b83f96cfa8fdbffe59f85a8c756338a97ef0c3d8059c81
MD5 48454fd8ac7f8d9b2dd5481145883963
BLAKE2b-256 30faa6c4cb361edca89618328cee3ae83eab546cb3d2a77c49a1a1712e5abf4d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.122-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2d641c87353b50f32136b3ddec253082f301019b1918ad4029b43c3adf03a2ae
MD5 d2d91367b61ca4c8343d95365198da67
BLAKE2b-256 a1339137f16e40b0f77d26440c9d13e23feb47e5e945795a009a07eb1aa68f28

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.122-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ecf825abb68eb16cb7f81d2f76468b37c7a18e3aa1007c2da48ada55c65c0a5e
MD5 43f7665a66e849e114be04387fd966fe
BLAKE2b-256 7b39c8021486ae5b268eef03cf8417d3b75ac4df93c760cf4240d1e47b3234fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.122-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5fcf0e315db6a038fad1b80786b8689002aaea45db74c0fbdbc338812acb4eb8
MD5 851e8f9994d6ba28586b990575d61635
BLAKE2b-256 e96b6b4c5dc838bd3c942375ecacf060f74912e18c298e3586e8927a450e115d

See more details on using hashes here.

Provenance

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