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

This version

0.6.4

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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.4-cp313-cp313-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.4-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.4-cp312-cp312-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.4-cp312-cp312-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.4-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.4-cp311-cp311-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.4-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.6.4-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 08df4d775dd0355f59a9d40ab6b31f8c8fdf298c107444dd3eb6807fd44f7524
MD5 e7025ef98fe3ea71b905bf5083aad3ec
BLAKE2b-256 fb0f6e0b43144e171a327b3d1ad02977720c7522e7672eacd42b277dedc8b73c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.4-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 969d762be85451684a53774251c5a6f3157ac0b8e00393290e67ef7230e0273f
MD5 1bc520faedb4d54b316a2be7e22d02f3
BLAKE2b-256 425639d53c2427e2c12c1cc9b717e50d234083da60ed7b592c5cd24fc02bc71f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.4-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8ee43257d5af9fa7d4a99813febbc95fe23f83e8bef65409819057ef3e2cd6a0
MD5 5b51473d65b5f78af82fbf5d2567d4f7
BLAKE2b-256 f21b71d43f4e875589b2079094f4db2961c0e660ce77ecd04044e2ed3be328bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 914a23d383184211fb46c151e3f5219d8fa2e43aaa85cd310bf5d03a167ec598
MD5 d15bd668d247dc2d1a0f21c3c537921d
BLAKE2b-256 68cba1accd25ec7a44e7be2648fab3d7f9507624be792f85bf955a668711206f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.4-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3b50405c568a0fc8ec9e5de59b3730e82d9677c2a2ce02a156f71233b84d66c2
MD5 d08802060bfa3062e34b85f3d4fdc22d
BLAKE2b-256 1b7232969ee9038298532296afd87f870a213fa6922914864ab1ff5be091b607

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.4-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b769713d91b628b98deb846df6832fa93e31a65e2fbd4c4fa2ca5e963cb398dd
MD5 1ad58ae05c689fce0b85b276ab698142
BLAKE2b-256 0ef1b4e8c455656508d003109835e107afd696a7b33d4e2f52d8d7c8671814ff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1ef686b0e7f10d6f4e31317e3ddaae7c87dfe439f6e6efb7e55039766884cbe3
MD5 543c0ebaf91220b9e374c296d5ef9421
BLAKE2b-256 64e8f75e89dffed803bd5de1c2dd1e5278fe3bbde7da904b8ed825a498f4c125

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.4-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 305a05fbddbe2370a503adb8c6088cf51485ab00b658ee191406029fdf9086c3
MD5 83371b1b23cf533c168bc6eba81c8664
BLAKE2b-256 80be704664caf6e3a74716c61aa37e2de265f2625547e01e664f992d9007bfa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.4-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a39df8503205a03c7113e3c7b4ba3e8fc3ddd4ca3dc0a8906a2319946717a4c6
MD5 034d48592f80f0367110cb0174ff8680
BLAKE2b-256 e93fffaa86fa4f2f7b4eae153f6d99155ba7452d553db240eadf1475286cfd73

See more details on using hashes here.

Provenance

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