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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.77-cp313-cp313-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.77-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.77-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.77-cp312-cp312-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.77-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.77-cp311-cp311-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.77-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.77-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e0f0f75e60752528c9076c4a4155565519699cc95b86b95e814a98e0f072397c
MD5 c6a28adf5366e5154cf8425180f07242
BLAKE2b-256 ba743d2207c67765c1b9695e5ed1d1bf2e8a95ad6204c2dde86488178dbaa3bf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.77-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6a76afb073f227e0cd327aaeb5792d0c05fd474e0819670ba0213e63467262b2
MD5 2ceb95345b3e7c5be6f2e74ece16eeed
BLAKE2b-256 bf4c7f27ab8b17508b4e971039a5877a17a6d4a4476cb689756ce0391ca0dc38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.77-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d764e451db277f1c3c9abc72f9356d0ffbd84ca56bbf716bc795c83d99b95d18
MD5 033cfb2d8f91c1c74b0fa8c07c9edd52
BLAKE2b-256 8f32030109b4b4cdbda46e21d26ef4cc87766863d4799d692e742b944ae10966

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.77-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1cff312a0c956501c69a742fe265fb88bded587653e229af06bc785faa7f0af5
MD5 91479134d4665aac470d3e335509acc8
BLAKE2b-256 41b563c802a529fa844e49a953348f01af7b30d1669fb49815b700c68a2047d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.77-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4d27c2532a46039475439340e6787b2a7ce0fbc439510328342f67d77f68ab88
MD5 c94a02819c63457234a0ddb2fb9fada5
BLAKE2b-256 44cfee074c381bc06a7ba379251568df6b5fcae0234cd45bdd76acabcbb41a41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.77-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c8c975ff11d07998127b6e0f6d3afcb62b07afaafe29ef2228f63d8b45eaa46a
MD5 3763d360b29d85bfa90932bface66d72
BLAKE2b-256 188f96b4812135bea75e78b1d207906e077ac329ff8743436a91a8f207b63707

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.77-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 08acaa9e50ad97b9f6d1c13c775f9f62493beca9529da6a8d360af76cd8e3d74
MD5 3c32a154591c2042c8435a2567298035
BLAKE2b-256 3f1aff09e4cbcb4efc07f2d8bd78ace0b19846ad8a6eadf73c9c397e2d2b8500

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.77-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 077803dec27099ab3e890ffc088a8d79e1677daa1aac967cca84cb9d4d0bf53b
MD5 9998059a133cabbb4a08531d0ebd3e98
BLAKE2b-256 a8500ff0c83e36495db8fa5348668ab36d776022bbcd04dbbd7e038941bb2a95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.77-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e3524e5141f9917f6b2c1fce4470dd49ea58451699912d5bd23f9f5dc521c971
MD5 f0be7d6d42218f522f3a5137fd2181ac
BLAKE2b-256 89da8701dcaa8b6a63992006e0f7f7d48d227f88647d1c331cbd6896aa0302fe

See more details on using hashes here.

Provenance

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