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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.148-cp313-cp313-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.148-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.148-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.148-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.5.148-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b7267a1b57a9b1bc8776e3c7d635497e5234164375faf3f118f3da22e1a03f4c
MD5 d6ae8d058b44eaf90073ba0307edb6bc
BLAKE2b-256 a01d4b0ea547c5bd061dc6947b4c3ec58fbf3fbc2bad551c5f1fff7c5f1601eb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a0860f1a1961ee11b43a748e3591700f244592fac9e7ac6610ff6ece7ed4e2f9
MD5 2f210f5f29720f1b373ba76e70934c3a
BLAKE2b-256 4c07bc65034e20b9bc845e2b4372b35cf72040c72296a0b7dfdfd165cab6ac17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ad4056d3d5d79a801e985ecf0c05ed86611b04c0a6e2ce71e12443e97a7f24d6
MD5 078169a63259881e876a60a7e939fd08
BLAKE2b-256 2081fa429ba6aa9c576c20cc5e970eb994ad160d3d24fb6908e93c1619735480

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0aa6a40050eb0c6b6fc50dfa354f02b9753295bbbf931684acbf9c1cd6cca116
MD5 12734775469b30339eaa71db873c66f3
BLAKE2b-256 bddd914040ac1af659185bfd5e3c6a86f97f2226794c2a237ab4fd3efe8f8561

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 87376ac5ae42a8316905e5a05e1b75a85d0e099ef96cd78fcc33a9808cee07b8
MD5 67bb4c98b17965d8949929475a0b417c
BLAKE2b-256 a4572483d9a6d0368c127e6cd21389ffb1688736a2bf1e70bf8db445d87c2197

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bc2227778f351d5e3f4bd0cea987ba491115443d09111299bf138a48f1d633f1
MD5 a76515e28ca65d28ba2895f718467c91
BLAKE2b-256 a12a2ebc79e2a5b8105bf09cbbc8e5096994040e4b56e749d7189ca4ee6f1b07

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3629a5280f2ec28306460b1092d99a2d2e9296ae6faac074c196d33e33c3044b
MD5 47e0568d2aa0c101c17ffc2b953d6d16
BLAKE2b-256 8aa4e6f5c3516d497b8a22817b85bca015512b08e7581de679df514e1bbe9bfb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 500b29e1be4dabe450e790ab3ca821c75c1f58502e87a440abb8a6fb397e25e2
MD5 2207aca7c933f5cdcde21191db072d2b
BLAKE2b-256 9465854b2b615e2a711714ea9152c0592757357eb355b58ac3f42c0d786f5a3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 dc606c32c2845e0cfa9997d56410dde3cc70e6d881604c59fffa3e34826b9d52
MD5 a5e1d070cd92a064fe0e046bd1fa1183
BLAKE2b-256 350bb554c0bd5e50937a04703fead698e7ae25b40c5b13172cbec9665ad59a65

See more details on using hashes here.

Provenance

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