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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.132-cp313-cp313-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.132-cp313-cp313-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.132-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.132-cp312-cp312-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.132-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.132-cp311-cp311-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.132-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.132-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.132-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7b0120ecb2ddf8342d20938b9daaae33f8f4463136b0ccea3f8dc7ad10441179
MD5 61b2f4ad8fc257ebe01046d9f2c74d4b
BLAKE2b-256 aee0dc3608db440bc662a7a4df7c307e7f785564538096e609a8a08a7495114e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.132-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9c0d60287d94cda0be476bb91f867f89738229ab0b2f8e0b2a04f229fdb3c665
MD5 ba1c667a28c03cfc829b8358086879a2
BLAKE2b-256 ef87d13d1a940d612542de74b3c89c3dc992a7562e0f77ebed4aed62b9545fdc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.132-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4fb1113b51876cb5025c237343f05e373fce52528d790bf4ab9ddb9a8e313a92
MD5 9e2b9fa214ba53d7563e8fe4ee641194
BLAKE2b-256 edc336aa0d91d8b1214f57d4094a0f596ab2e261b2ac869e27827da917bbb994

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.132-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a580f94b59ec77b3453076f552997df4d327e00f6f57139c3f29972f3e6f2fae
MD5 1bfd28ab874b71f103dd30b710006478
BLAKE2b-256 9a554136cc88a5cc24993cd04f2ee9674bfed0c57783aa57ac0ac2a6d3a97c85

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.132-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 05c918a827b802dbae2f4d0c250e30ef174656cf85c638dc032d5d93e1d05532
MD5 23610166cf607be58e53e850c428fdb0
BLAKE2b-256 434ba0e9d881493a706f74808c3ad997f44a1ce7c09b884ba313e1676f1761df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.132-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 41fcc6aa8ae9667e419b7a8453bd2d745040f480db178841af818bced4fcab4f
MD5 b863407bece2486f2448c0c6084cf0af
BLAKE2b-256 856a2a9d9f30468fa02e2b7581621a48aa897d5055feea2ac07592c805592fdf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.132-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a58d0ecbb5b21df3c175c9c10877eef38d5b628ac7dae16073d49795dd64f233
MD5 b7eb03e763c06f85313eec1ae5bdf194
BLAKE2b-256 2aaa1aae6f29f279eb4cbbb9b7bd8396d848b6e11620c43c76f798904a56ea9c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.132-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c72a494c42209bebb27989eb9718c7e73ad30419f9f9d96ebf0bb5d502c581c0
MD5 57f814c3dd1cc257dfb7a923851b7fb3
BLAKE2b-256 1dacdaaca00cc3c9ecad98ef26405b7300907f3f57893168e0e4131757bd0508

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.132-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ee5e104ca040b2b8ed6c3dd28e2f1bb6ff63affc43e18dd3eb57a4375c7a0783
MD5 b343b577b74990796d8d3987db22bfd1
BLAKE2b-256 078547980e4353b25a4a7ef3934dc8bffb20e1c3f09517439fc2c270a68660b9

See more details on using hashes here.

Provenance

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