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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.93.post1-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.93.post1-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.93.post1-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.93.post1-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.93.post1-cp311-cp311-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.93.post1-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.93.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 55637ce573069a1a0967036c0ce4a7a122e89cc29fc3c8f4322e8dc2d2bcd5ca
MD5 fc5338147615303da403852c1bcc75a9
BLAKE2b-256 b90509412cd23b7c6b35c4cf2fc0735b1b554d20f6894ff7dade6363a695f95d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e17d8130f4b6cf1b67f20f81fe2c7992b1f6dfba3ef908d13f6121e5bf1d8fb1
MD5 d5c1cf2c5a0716b3456401bdfecfbfb5
BLAKE2b-256 65aa61e03e5a0d056ab109d3fe6d67811019e78a76e19b93f0706a0407dd0b7d

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.93.post1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 46ecbdb651c0cf88cbf9d8e8aa9fe6f0685815ab0f8a47fb42977af1f4580b01
MD5 c6e3219a574a67f6b2b34a670433693f
BLAKE2b-256 4ec21386f8355707fa37317526071729281bcee21daa36595097bc4a35e6e8da

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c2747175f23601b5b13ccff53e04c3d59544af713f33099a22e889a61f4a003f
MD5 c205db05e1a0c47dd39d14959044778b
BLAKE2b-256 b38964ad97fde893e3fb58c64badce6111d0013d24f5b8c48d6554312888961b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 723218a32441fdf2d7a36db78049d4a40835238a6d90688b39e06eb1c57de52e
MD5 503cf4d2b02ea8ccf431346af64cdb85
BLAKE2b-256 9f150b4a61f5d5bf36b543d8753e265d6a2e7362ffd3ca60492fbb663872c70c

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.93.post1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f10e88d924e3556215f9e2696b38e093133f25f637c70f606d9eb5d0fa8d0497
MD5 d8181ac980707a8674f154e98c17f5e8
BLAKE2b-256 934b5c6578e91a5e4f8c0f7511e46d644d26ab5ffd0a273f425b70327734dcdb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 287215201f15c78ea1448571f7a9db713c62a00539aae690ff64a086ae8f75dc
MD5 36a74ae0980d8cad7cbd8cea462ce479
BLAKE2b-256 914b41c96e7beb619e97cd525aea0e2dd4b2ea706455264ababcd60e2add27ff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 29bac14d25b0ef981b66a8084ce755259af95c5fba96bbeaf580e6f2e55518cf
MD5 0879803c1080150d8a095650c4405a9e
BLAKE2b-256 db5664d70af1961e4147f9c7d2b6d24d501dd1045993b1518f33267a1d0748f0

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.93.post1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.93.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6804424c8b5aba1f56ae05e62d056db5fdc3599d63cb2581a6439796632bf9ca
MD5 79536e55f4d88750eb2f37cfcb391f5b
BLAKE2b-256 e3b32d46a3c3f68b69046597c851ae2ce51a2d215a1ed06484b4e4191b7cdac8

See more details on using hashes here.

Provenance

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