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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.63-cp313-cp313-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.63-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.63-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.63-cp312-cp312-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.63-cp312-cp312-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.63-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.63-cp311-cp311-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.63-cp311-cp311-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.63-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 96d4c672e116320fcee685eadb1a65f524d6f4af1824d9eee3c1e4ccc475cf5d
MD5 8c66d7fefcbb0a61d7b31329fe0bfe99
BLAKE2b-256 d4516f66b64f4a8f3d0cc3859cc3cfb7ed9447709efe5770642ab85891024035

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.63-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 7fd7d119bb5a1a58166c266627ff928569f131620772b924ca885ac716071b49
MD5 af745ccda1fc1bbf2a1a74628ba65279
BLAKE2b-256 852f4700e7c64b9e8f7b3e516bf43d1cd1633e074498cfccf95ed7eeb446910a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.63-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a7a42ce1648c479577b29206750b605a87272d9d26a5582ac523d571d35982c4
MD5 3272083be9c9ed87e67b768ca98bc4ff
BLAKE2b-256 a102d3bc60f14aac83cc2441bd0795a483ea7fc3435cd214eabb32095494b7a2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.63-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0017ab9993514db72cacdf6b7f68bbb34df673a17f759abf9940a482b2c66bdd
MD5 95cfead2f94b3d4bb816fd6fd980a2ca
BLAKE2b-256 c84461411147eda823e64f46de96746915c4abae30a3e7f5fb9072daa354ebb0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.63-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f8deb5eb716f4d9e75b596679554f2ab70ea7700e70dac0fda7f229079a255b4
MD5 a30e443ff9ded488cbce7a3b63e917fd
BLAKE2b-256 ee093dec3eec7c4df95d198d8ecdaebe5049449aedc2b7c8d0a1005658545fab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.63-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 db10f1bd205a2adf30909285134456d0be3a8fea35f262579b24af23331095b7
MD5 c4188aa0ecb0f25165154cb6f7884945
BLAKE2b-256 8274d54e5f51a1b1e1a6329ec9cfa120cf633df77dff3e9a1e297df4c673bf9c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.63-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 254bdc4f22c510f00f0a925d675ef8d3752ad361badaace981e21820cde0923c
MD5 7d2ca93be9df3c489a13a815bbced45e
BLAKE2b-256 f6ff8d0bcfd09f2d577bf668b73a7b6b4cf98ecd20e41bf865b95696c265ed33

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.63-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ea6e84fd51265a16654c390c39bee424bfab3255983206cbb0b855fcd0716d5c
MD5 bd420ac85ec148b7174d3f0b9a9fc81a
BLAKE2b-256 37d05102a5d1376bac25b8c5039c973a5c65765d580d22711de9e98080478544

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.63-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5d2c082aa85f40e91f22111f5ea9cbe91928f20d0765c80fb3d46c8b688622f7
MD5 b317e4289f7e3e2fc513a2eb2b884a47
BLAKE2b-256 35c8eb29461cd40890545de3d40f8f5b3126e1b13643c7d811484b846aeb7d73

See more details on using hashes here.

Provenance

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