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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.127-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.127-cp313-cp313-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.127-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.127-cp312-cp312-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.127-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.127-cp311-cp311-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.127-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 097c3a08e12294595c2a9cbbe1877710ecfc44f33e97ca28b359461e06acd09a
MD5 f8107ff344ec6e79b0284b43c4cb4160
BLAKE2b-256 435fb1187a52ccc4b3e7771c0694466cce8d8ce7c57af7f72ea0c083c05a7444

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.127-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 558b0c6da6afa0abf79874dcf68088231cae12e56bf2533908eb646f567ec589
MD5 fc200361b45d1495d1f42905779e240f
BLAKE2b-256 c3b2dd10747aee8343bf8b8023beee5053a8d1a6a8c96b5bbf7beb5492d5658a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.127-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d83ce56288795427e789ca53d675ff0d4811e40be174bff44e50be1958b21a3c
MD5 e554bbb6629cfb55b3c6c5f4484033fe
BLAKE2b-256 6eda1d52278afd5bdf5c8acdd4877fcc56ccb66d515c4c211a215310b12dde71

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.127-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a7d99086e90b40cfb1fe7f3565fb8c3d9bc6885a016577449c9ca69fc92a7074
MD5 b2bfbea38b3d1ee1341b8fd1952a75dc
BLAKE2b-256 fece486d6977ca5ec0a6ae940805e48c077a006fe50d468f3fc094f656fbcf5b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.127-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f9171d6a3d3e5a8f36e45e76c2a6378b7a3cc3dae4c573a72795069ea07771aa
MD5 decc3c8228c88b7876d7a5da4d31d92c
BLAKE2b-256 3b21291dc85593440bbbb502f893cf9619a42327b431a245363162939a01e814

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.127-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 21a6894c15188a56989ef8441a46e88cdc1dfb2841552bc67054e5ba065f00e2
MD5 238cf68b1ca36179679fcef5335b95e0
BLAKE2b-256 cb2bdf2f0390b6fc3b73780c2ef9e8933de47834276d4f2d025501d031668dcf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.127-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eada20145f865c63ca1efc798a0adacdfad15577c191c979384ec0766ae086ae
MD5 f96cedbf039c5858c5a3ec6bde9482cb
BLAKE2b-256 fda07767e9338d4d0403640d5915da289b80e3b0c05e0da0faa55f40fc0190ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.127-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 39556a617809c1cb4da6dcd61278620810f50d1578bfb98da37e9e3b67227b1c
MD5 1726d5980fcf003a98d48768fbb5fcd9
BLAKE2b-256 14a9f48076c76a3bb153f84816b81ddef0a818a66bfd12a9292192f6a23bbd38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.127-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ed92d7cab88fd39f9f76a2caf62edf5d40dc986f233f15b6fdd5d06a73a97d04
MD5 dc24616494726bcb52196e30b9f9cf48
BLAKE2b-256 0509b39b78045eb01278d328d42b242510c500e48fd18d3cdeab3fea61e55104

See more details on using hashes here.

Provenance

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