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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.152.post1-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.152.post1-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.152.post1-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.152.post1-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.152.post1-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.152.post1-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.152.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 50950f555fdc4960ceae429ac32617c86850ba033311e2de2b95f1a0883d1b2e
MD5 d7b05d2607465e00cdcad8b66c887087
BLAKE2b-256 a3de9ff0a44a809558bb3d70188313e8c8349a6cecaafb402c9ee5d73888d054

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0837965494d0e105151427e437281f0092dc44825d64288481dc0ee6d94fc37e
MD5 b53d86b51aa2612596b74b2af762a611
BLAKE2b-256 f63c2c912bc488f373c2c922f5d146d6c957333437928778cf7d469efa62e8d6

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.152.post1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 beae4f1d91a9dd9b2f5023a7f9e048099a6cdae68764d49429d8b0af53b0b595
MD5 326a8d0bbb9747552baeffe7c5bb9fbd
BLAKE2b-256 31e192a35d8868b1319de213158c73645feb79f6fb5e3af08c4177daa36a5bd1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 85d5aa2b36f0000dfbf159a87e093fe0c80380b6383aa19eff006ec9b0b0bbab
MD5 354ab9e7a2406516329db10a41071e88
BLAKE2b-256 a890cfae86ea5c8c06e560e6e6533f86ad84938aaf2e7ba836e8a8723de998f2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4cae6dc08c94f36cb1f02fd12e1f88badb7c9ccf389042195b7de6e7ba0b55e4
MD5 b6b0b9bef7b8d67c991b57ad887e1e3e
BLAKE2b-256 1daa5fa67aae4658297d1c672dbdad048a467aabd531c6e5ebf36d77e12862b3

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.152.post1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a082d63f0440b10ebc5f5fa370131b7fc534f4a1137baf3727fbd779df704524
MD5 a427dcf32aaaf1a11375144edc7862d4
BLAKE2b-256 bf3a74692ee1c9d3b07e07b307c52b659127b8ff71b9e7270819fda278c5642a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 62e6682cbbb281b4131e990e99af9b20cfa984bbf6c8153ff3914d94e903e752
MD5 7d1674f3999304b759fc5ad690fbe9d1
BLAKE2b-256 50e9f27136ea373a92bf59d89f29297383b9c5299f868b25a944a7fcc86a9ef6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e93dce8994b229a5ea795fe991232762c8958644dd62b03fa7987749e9abd5db
MD5 3effbf2ce332fde8d2b01c994871d77c
BLAKE2b-256 fb5513ad190a2c7689411564c02fd38faf53c6055334455757b652efa73a364d

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.152.post1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.152.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9729ddccaf326a16634d3041c09bfe354326766574f53446c9ea2cd3a5120053
MD5 1e12c8c7748a7f162129cab82fa7aaef
BLAKE2b-256 fff3dcf8a9407f4d9ab2e35bc9bd6a2e36725e985115da159e628cc4847f19d6

See more details on using hashes here.

Provenance

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