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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.80-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.80-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.80-cp312-cp312-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.80-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.80-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.80-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.80-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 600ccae75fe3201616b1983e7b7386c6b84e05bff9fbe5de241d86ae3ce016f2
MD5 c3caee9f9fe54453abe5550124d2a304
BLAKE2b-256 65bd5a156b73e7b4152235fc94c30475c09d896dd64181dcc703da0f6c16517d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.80-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 42fc01ce1b39717cc090544d7255789952164c1596704fafe38d6aed1124c25b
MD5 ac2edb3c02347cabfe40b46d7c677d54
BLAKE2b-256 a9862b5ad3405490d8d1d50374fa4fc5ed55ba5d4c76b5ec5b86e34ba4937abf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.80-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 190257bdcebc18d8c5af8575adbc87911821b8c9840a3038c3124f4a89fae99f
MD5 20e191e6de618a7dfb149088d52e8c35
BLAKE2b-256 98480ad7aa0cacf5f8cb2c0687c5efb921f242dd8a0913781914724db70b0d86

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.80-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9bb1fa48ff945ed6fcfe015fbbe5c879c861d6b2bf9f706f22b0a038c84baaed
MD5 feba2cb17b8e702aba899a19f5800e81
BLAKE2b-256 65e85b3dd6b99bc191eacea301b543c755283e7d1a6b01ba591109e6055888ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.80-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 06fd7c85f25b7ab4fb3b1fa83669bf2312027cb005cc480081ef04eddd57263b
MD5 ed9870dbc91d17a612d24e3cb58e5b92
BLAKE2b-256 decb232e32dd2152c91ce6fc669d9216a14b67868282c66a8632a2e3056f70af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.80-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 68287a0b876d7e8fadb806f462594257f4e87dfd78a2486c91b4a0176c960a43
MD5 735a345bdfb8b5136001b1c8b3894ad5
BLAKE2b-256 a931ed08409c9f16cd525dce54b1d8568b96d43f9423ee1e68786e820e321cde

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.80-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8d238081216596ee361f314376dc30b4670ece4e959cda7ca536dbc94221277e
MD5 90c57d1596b44d7ba983338d19cbdbd0
BLAKE2b-256 3ef76917d84434b1ee8f44adad9e80c82b8a3cbf151790206346e3b02189b023

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.80-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 87c164da1a925da52941193eecfc4a481921a4d42625d3e44a2b79820c294ed2
MD5 9de4c74242570916a9af6f46b1dbd578
BLAKE2b-256 d6786242417686fbc92fdfcb4262f913d3378c909e5f3ebf9fa7f16c45143758

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.80-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 179353718aeb9eb7b1943ed16ae294ef5b50b6d97bcc1681c4a5a2c135cdd453
MD5 69a5bfde8d037121e93857ffe2d6da13
BLAKE2b-256 e19e550948444c8137dce64caeed0bac411100a54ceb6922fc286294b02eadb4

See more details on using hashes here.

Provenance

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