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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.158-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.5.158-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.158-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.158-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.5.158-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.158-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.158-cp311-cp311-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.158-cp311-cp311-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.158-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e432ac51d0be422f4e923ef2176cba7ab360f8d22fa9df01c228e8b6d08aef54
MD5 573fec0976dbad0332c3b4a3860966c5
BLAKE2b-256 3eeb30c97104f92535c780d0161980b6a615d25bf6371985bc844a40ec1523c6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.158-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e8e54b695af1949c9c91215513383adee1a5dff8c819eee8819a4e979e0fcf2d
MD5 c3206408cd861df38c44db4e686e655d
BLAKE2b-256 f305392edeaa282991a5b07f0fe6732509586153ad594eb8ca44221601e8471b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.158-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f968ae818c7ea78f5888921912b52c7574b01165e1ee3c7d98bef5ed06f2cec1
MD5 dd58232772deb73f9c447b145d6d027a
BLAKE2b-256 bf330e5713a6ca903444700bc63de1f70160cc954b4439ae32c1b70090531ad1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.158-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9c9c5566f4c518b479d460f82d900d0756f1c85739a0d43f2ac04b70eb9e4f3b
MD5 0579f784a724abacfd0da1eccc31eac4
BLAKE2b-256 dcfdb250af2a4e78665493f73fd9b60da39ecac6c207a1cad58816adf4bd2799

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.158-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b378e2cf4894f77de82f23bb69480e50b4e019d201be79281ba258d9a6afb8e6
MD5 e340c1e4f04d42574f5c9a710279fbeb
BLAKE2b-256 900c89bb9106e713be403630644e3615f229cf1772a71342dfb135c57997be48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.158-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 389e1d5d74ac10ac81d1a4e5fe99b1ad69ad9a16ba5a5b6779aa32589d5253ff
MD5 6bf006c44ac9c28d664873e12d873cc0
BLAKE2b-256 449985a4ca1d36a2882cf1018a0d82da9620dc3c0a10fbc266c02828b9107ca9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.158-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e70126ceb8cf0888d162d7712e3b5559471d8af6ace984d280f927149583350e
MD5 cf99ee4809b83a4aa45738ae529d3bd7
BLAKE2b-256 b48dcb66b11b956b809ad02a1220a3d319f041e063115f6f2a5267fbe27c171f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.158-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 dd37619813fd7249c2bd75b91683eeee9a74ce8904724f12c40f29977478e8d8
MD5 3525a94a9579df7d6455f1661a798963
BLAKE2b-256 43269bb095d23d84413bdf5684fa4cb5c74c5538ca96aebf5bf4c0a3898b4391

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.158-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a0bfe0b3eb80b5ef6a0e77dcb7ef2e83d9c0ffeb5506be51cda143cc566f5ece
MD5 0689409354d0fbc01826a270ef540717
BLAKE2b-256 814a2b3fda4603735d8d21605d5703025734f6b8abbad37aedf3f733e6ad6046

See more details on using hashes here.

Provenance

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