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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.141-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.5.141-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.141-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.5.141-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.141-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.5.141-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.5.141-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.141-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 db8081f6e0c6b1127b4c3e8aca9445d7c91682ec754b7fa0e799a871e5cd9cda
MD5 8298a7aeee6e9e6f89e37bf58c8f3976
BLAKE2b-256 14968d9d6aee012109daae0956fbc31d41af5b20bdcf2ff77216290c73061071

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.141-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 624990d2739bcadc80b9fcae24a7333aaa319770a2be016e3ef0525cd20b2d32
MD5 02108c26562aecd34c249c7a2032783c
BLAKE2b-256 8294353abc0f048e275afb809c202064183622b1c596c678a2f8345d0f59727a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.141-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 76000a96bd07c3cb4d82725ca59b8ae900aeb87588885dbbb2ee7a00aaead7e5
MD5 c41d773ea11c2ee647e9e1fba991c90c
BLAKE2b-256 6d01ec2dc09e38a12b61dd456fd66cb9728288312ce808b0c050781fefda59cb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.141-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1bec17dee7b0ec92ae5949f12b32691f665b5b24f5580ebfe267af00357ba0ee
MD5 990a7c03fcd32b6719c14d95d01ad547
BLAKE2b-256 73e1b4c489a561cafa0dbe01082c7051e2ebda7a0d123a65d8c93367e4455797

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.141-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 cff0eb78c30187b3c7c163cc911a3c9778cf242ba1acd4206d3d460b02e65203
MD5 ec2846afbc74b1a94c069e4e342c3253
BLAKE2b-256 1c00b6986aed9fba8a5dbb3fdc1e27bc48c5107493f17a84aa31881128a04cf7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.141-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 394cddf807b91c82fe31d1abbc8ad79df054359362702aa45d929594b778f187
MD5 b28e4a1a900e1fade144e6dabd09b695
BLAKE2b-256 22223e6f7b6d20990b7add6d35b9b10a1e7dfe8e954b46ec6a9d91df448717f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.141-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6d5ca946a9b0e748baad72c0ae44dbdaaf3e623a57d79610173908144fb4f524
MD5 89755ad6bf687f779eff5107b75f7924
BLAKE2b-256 c240501748adc8d87972ac11a217431a483e40ff1f26c07608f512c919d439c2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.141-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 cefa0e3e28ed398a731c1205f2d9b0f16b3c1d0dca54522939bf42a534abf3e6
MD5 2c7108bd12a4b3374555d45587b172fe
BLAKE2b-256 a6e52bdefde8a008f14170e9bf5772344cc283404a722b0aad6bf487b962eee3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.141-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6d5b86ba8275f904fca6aba9d778355b0717e6b04ff7da5b0615ae211b2088fb
MD5 1636be355cb49579e3a4913ed4ac2ab1
BLAKE2b-256 18ea7197eb2ae3e21cac597b342211295de461210159850d8d95f62ac2f63400

See more details on using hashes here.

Provenance

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