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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.98-cp313-cp313-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.98-cp313-cp313-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.98-cp312-cp312-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.98-cp312-cp312-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.98-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.98-cp311-cp311-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.98-cp311-cp311-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.98-cp311-cp311-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.98-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 364161c1676f7cb59ef0d42e6ff92eede2715c19e8d5267067ff13e7b9af422f
MD5 3f978cb1f56d8da8334fe49cdefd01bc
BLAKE2b-256 c5cf414f9eb8ae7267d08149a400b92cccd55624d0781a145a42af4859e1541f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.98-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6eaf46ba32fd52f66d40d86ca8e173fd13fabe955f96442e240f90153501ae97
MD5 ef9c2dd4177c6bbec90c2ab7390c7294
BLAKE2b-256 20f2f30c28c5f59899f3a3895c75bbb832d10c6e1004d14bc3d1f8525e60d25d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.98-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 959ad812483f88c984b721a411893e793dda8d251b6fb5298854eb25242dda9c
MD5 d1c22d6cab716bea0bd2a427bbe28b26
BLAKE2b-256 bdf50d2cc0db4ee4b009b51d37a350502544b1dd6740a5bd73c3f7947779e4fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.98-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 94726b4569d08c824c3681add18a9418f376753dd0f8bfec84ed8de68377e687
MD5 f2226b54c56453efb82d9e25f9fb2eda
BLAKE2b-256 b6240effe7ac8797b60103a9a7c9914be64af1d937297b515432895890049dbf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.98-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 684e10a80c4c988fa4f716e8b21f52e5d7e11bd59944f2607a8a819c483a8ce5
MD5 a8fb6f059c58335d86c5dcea28df2098
BLAKE2b-256 628bf3d3a2a5eca883fe73b2d2035ba98aacba3690424e6f032019062c10ba1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.98-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 07392ed8c6e22d93225bbad8174eee8e97acedfb51b4f2156b976296fb219ab9
MD5 22ac390e4440be74fb01c90e4747717b
BLAKE2b-256 650cef9dd702ac3b9f43e837bbed899d38024794a9da7e1d72a77b25cd20dfad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.98-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8460df7c0212015f4775adacaa9f073877c8da8930dd0096a54ba8344ecb812b
MD5 0d775b548161e69fe5bbb1c93160cad2
BLAKE2b-256 653a873a29a5ea737bb2ed60f9d39aa32ddbc2b73f89b02d10f5f8854cb2a0e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.98-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1fa69c70f2d43f00c65e6e313d9aa67f884bfafd90e07a4dd42f708326d0a64c
MD5 ed88b47efe17b200a8185f330e4a19a8
BLAKE2b-256 e270e77e160bce765c798de7ed9cedd87f3dab7f7db65615e6ff8e0a9105a33b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.98-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b98af97224d662a0526636853d231889e23d3b844d6cd86cd9a2331a8e8c682a
MD5 d7307f347690f902cb742905c49823fa
BLAKE2b-256 f360da926aea5c7c2c813de2dbfb476f333066c440e0c08a2b7834e040a9b783

See more details on using hashes here.

Provenance

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