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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.94-cp313-cp313-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.94-cp313-cp313-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.94-cp312-cp312-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.94-cp312-cp312-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.94-cp312-cp312-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.94-cp311-cp311-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.94-cp311-cp311-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.94-cp311-cp311-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.94-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d49f35d27aed65d7d29c35901cd704ddfcb2e622155166a635e7ff3ad1641b75
MD5 6813cd60daa7f726b97639e96ca26e06
BLAKE2b-256 1fbade0fc9514f5625b9665ad85900309471f2cd795270f89fdad5a6e7969613

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.94-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6185dd4d47197a90f6c8b96777ff40cc0bac1077e3c76b50d682b37e76a4f603
MD5 0bdc14df5201f7f99a166617ac75c549
BLAKE2b-256 d153f1b98366d860ac601191202f8e18d26f9c361bd509fce4715187cb1e335c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.94-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4b804194c9010b8f4c40b76834e3c225889f33088dc63f5665602567e77e6a2b
MD5 8fc640d74fe1252896dc20f0ad645309
BLAKE2b-256 7cb27c53194a2dc66b155798e919a054db1c2744a2ba9da0366b364bff897d23

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.94-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3e99623265935788fa6aef9ccd09fd34c70bc2904fe2e0527af9ea7b0a6ffafd
MD5 5c26992f227dbd2df5b01495c76e89a1
BLAKE2b-256 ffeb71462cd8ec3dacc74edd4b7918d7f5aa0f46c38f1d7610d570afe29ca5c4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.94-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 23645e23a27021686b8c2b54f31ef27ab75043cbab04691864cc24e7d050344f
MD5 a804180abd2b0183e2bfd1462a0088ea
BLAKE2b-256 0e9790836a5b04b6154f4033a51d5b6e9ae4ad171c8c81702ca3ed4f435c2a38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.94-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 aaab65b487632518936f0a825defafdccbead53d8c983271a3ead9c53b17d588
MD5 892305125f24b2777f692482214e8363
BLAKE2b-256 699c6c958feefb82e5ebf69be287b70600074f7304fc361b68c205c12fc76e57

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.94-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 615602938157ac91c18f41382c5aaa0cf844a12328f8d3657583ce4556a102be
MD5 d8f7eac8482a054844c3b010b05ab5fc
BLAKE2b-256 f3594c862c81f6c1815b5b461d7e9179d8953a3640b5c3217c37c62ce78ae8f0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.94-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1ad1555b9d53de9f4c5a0c1be37052da6a8b0188518717569e3b718e6f33c145
MD5 81ebb2418a0e3a0953a3391bb75b3971
BLAKE2b-256 10c1409fc91ea52c22337e00d63c92cbed007e8b634b434c370e374c144173a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.94-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0bfbde37e173eda40b2f35cb2d6e24bdcc5ee71cdaad60bf62e3af93ba48fdf9
MD5 844407aef6a13b73032fc05ae5346e52
BLAKE2b-256 275bdaf82531132845940d954cfb49eb6878adcff9fdb47dab766cdc20c41987

See more details on using hashes here.

Provenance

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