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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.98-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.98-cp313-cp313-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.98-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.98-cp312-cp312-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.98-cp311-cp311-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.98-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.98-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.98-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.98-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b7a522f32f908fd2f2b96a738ce00cfc82b6f4f2e088b20d41fbc6b083a46e9f
MD5 bf1b73881ed706515bcc4219f510c845
BLAKE2b-256 5a610ee97f63da070272b3d7cc7bf66bbccbf5bcfb56a83a5bab0fef50d561d6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.98-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2f7498d65e255c0d033b597fdd0eb9cb05d4999662b4a17bcfe1edc949a55b56
MD5 8ab168791e6acf92a6adf4a6252d148f
BLAKE2b-256 45ef67a2e7d4684062ed1eefa65fb383c4b1c5c77d3f813143f449aad8b6c9af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.98-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6e3d12d74ea3ff1f8e8f4c1eaa10ee339248fccd23aa47d777d458f373aea960
MD5 b4443fee125a313ab17c6eda6a0fd5cc
BLAKE2b-256 2822bd3bc81fd363a02ea200b38cb12d02514b9d4bad0b54e6b13a91d8cc48f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.98-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 39d1f7e2d1e087633f926a143e26cda4eb320abadc9f32c1c5303e521db403d4
MD5 7dd85a46024d22826e168a31c31a619f
BLAKE2b-256 1392d95cc2e97f4e97cf830b7756cba3f93fb53413c25640e1c91af53de63a9e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.98-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a7e1c8c2581adc871a8fae477712f94abbdbe3115eb793446239835f7ca55aca
MD5 9d8d9d169548bc5538f2bdc7a5df6fe8
BLAKE2b-256 fbf158c13c86d6f741ff0bc08d9498748af38222a869ad9b5792947cfab619e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.98-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5a6c9a47fc7896b6ad98e479d892df5e5fadd1040f3e939334f48566665d83d7
MD5 6230c7419dcf6c5b677e4c3b9f874b4b
BLAKE2b-256 1ded3a890674cafbc143c34437e43e9eee7bc03d2f097b62e4b6512d148c2af4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.98-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4ef15e71a88ee581780ebe10a2cdb39f94bdfbb59f3da5503d057c9d2745ea30
MD5 d9f24137b3614427df844b45785ae060
BLAKE2b-256 f55974892d669fec963164e57a341464fc0748b9efadfc0006ade35a55228e2c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.98-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 85224c362257851977b316e725448ffceee21c08bf38908bd29648a833b3536d
MD5 9d394fbfee673a1c870b64df5d99682e
BLAKE2b-256 b3c7e72df2aa8ab4f7f93e8205845ee566f98169066715a31cbb019100562d72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.98-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 13a42d6c33efcbaf59aa321241c989ee7e03083172c5c49d232ae8c365d727bc
MD5 80dbb9c1400a0c9f43c8e00f85e26e2b
BLAKE2b-256 f4abbb1c22cac7b43671c7070d1387b6b3c806c68f8560227c5fde54eb195caf

See more details on using hashes here.

Provenance

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