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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.14-cp313-cp313-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.14-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.14-cp312-cp312-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.14-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.14-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.14-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.14-cp311-cp311-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.14-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 dffe782ef985fe5d8280615ece1145bcabbd128f166c8f0df29e44569baaf2db
MD5 40c94eff7a087f1ab097e135b3d9bd44
BLAKE2b-256 6771b70ca2e89067e39b2db8c1d45960ee00ae85286b974f26aea0c673ec4cb5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.14-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3798d90be487f74c420489aeef9cde0caa2029a16f727348df94479335e1bc41
MD5 0e3007b6c8b24d85a690534df39cfa37
BLAKE2b-256 8a225a3eeb21102a5ac876153ee9737a56a06044660b795bcf75cffe72fe2486

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.14-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f13bbff194a3e811d4844d8595a81f72b6f7fe574751e1f4d55a7c6b08896100
MD5 6d54c76fc4a73ce3844a098b8e019361
BLAKE2b-256 4dc38ea637dbc301701d478019210b7df0fa08a798f66aebdec6261ecf7fd314

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.14-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1c465ee9b0d7031dd192a62687b860f1883745191a198af8c55f9ccd21d12bc9
MD5 50a44ab5fa2cc41bbb74bd0cea3d04e9
BLAKE2b-256 de75326af815b94e7485f78589cc9fab6f92d2365f8c8a838c44e2f9aa7127b5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.14-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5c12b1e31ab681c746cfa095c32af37fa62f6473507843a216564434e2615a12
MD5 06d5b570b13a8f459dc81fb67a439dd1
BLAKE2b-256 001ab232aa1c43b5fbef1b7a7729e5a9bf50aa5c2149cb81794ccd944692c9e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.14-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2636b807764944f7f9a82bcd5eb5ed5db838c67a093bacfd72c9a07f573cbd5b
MD5 4d2a1c121b438825965f47b4797e1b7d
BLAKE2b-256 f7c47343cb3aafc1a1f52b93a86feabd2a71f4657b6cb7cfb1682cec94a24b8c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.14-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5f06abc543d2907197fb6a15e4c51d5a3cc54b0b9ab071bc9ab2e8508636c18e
MD5 ac4314b5d0d56fe91699b5103ffde96a
BLAKE2b-256 c8dd79ecaa074468041468d3cf38b112842cbb105c6a3e60ca67655e9a32e5e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.14-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 793ef96c5d501da60330f9f0ef576d2478043abbcb5cb1766b5bedfdc9880f7d
MD5 381f1107fdac434712a7d22408956c62
BLAKE2b-256 7439e9719c9f7937000ba848918610cc3fb6bd8de2bd19668c966fcc370eb573

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.14-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 cb7b87830ece49fcc5de00d2c75418caf6c5cc46055ff4bdf872d23bd0f70434
MD5 012e9d13941ba06a9ffa696c05cead82
BLAKE2b-256 1f10e734109870bbb7c0bf76cff99f62cb60c59e71eba54c38752a6dbe5d44e8

See more details on using hashes here.

Provenance

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