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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.100-cp313-cp313-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.100-cp313-cp313-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.100-cp312-cp312-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.100-cp312-cp312-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.100-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.100-cp311-cp311-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.100-cp311-cp311-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.100-cp311-cp311-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.100-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 805da33c97f7352a2327ab36d7bf1f348377f3cec9d8fb5620166ad9f4b543ec
MD5 07d6aec0e909930c4f25bb0a545d9a85
BLAKE2b-256 130966f36409c7019e3c63cbdf3707b124028cae50cdd38a4429f4164bfde446

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.100-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b0da4ddacba78e8d6d67c1a99ed97a37823a2046ee01a7c43a2c2849fb3fd22f
MD5 9a785e4ce383e268bf0e0b0ec8f85577
BLAKE2b-256 8d532894398165118e24890773d796ea856768e1bd69a44e2ff4e8db5f6ff61f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.100-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ddd0751ecfa2ca0d9e04ed4c659eb621bb591a9d85b52440524862fc7a13cb17
MD5 a10d6008f16a1bd00a5b45d916a02456
BLAKE2b-256 0d037124f7daead1bde9de6a7663741c806cece670f5010a00b0848af7ab8c55

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.100-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4194921142fa9f54099f3265fa4c71b4b26f8d1e5f4a7ae13f4cd01d591fa9ff
MD5 8c8cd280167d331c9c07ed11924e002b
BLAKE2b-256 22d672907639292c63b2964a336a1bd2bef8468fff3afc658697c14f69b5e2ba

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.100-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 50e41fb5c65f7f8d6d6077155bf750996127e7d40b44e3db4893aadde593120f
MD5 0af3a16d3423b960d096efebe3b388d1
BLAKE2b-256 8c55162e1406184df3fe1a60ba372f32518a8f4f44c0ee3ea12979d65f54efd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.100-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bd2de890f08816bd343d269972f8e5294215f90f1789d223fa0975b495b718a5
MD5 e11edca54fb97c7ed7bdc95dcb642452
BLAKE2b-256 e74de181d129001516fb77c6c9757f93e2d7b05e8076164545742e73e4e67248

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.100-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 72a34033b54160e6d89d48ad772b5d0875685d071070fa681c1a87951a7f3d6e
MD5 183151f480dbe1eb5e737ca9eb1a725f
BLAKE2b-256 a3c3c38128b8f3410a43d559297ef783f053058d3d63d9c2e8cd8abe84d258a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.100-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c4c114ca130de7d3af37489471e9c80956337173a7ea508773f5a85d1fc24711
MD5 670f5420b0bd8ccad5abd02ebfe8b32d
BLAKE2b-256 47c76698b0a0dfae02f37ad6171e35cc79c59da77b1caebf128e677673bbc654

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.100-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 38788e365e3d2bb324dde62e3e33bd9478119619d1b7e192e46816ff6c85d585
MD5 66877654d95c9916fea39b16cc594a4a
BLAKE2b-256 8604e662153f77366c99739e6e4e42448e93d13babe527e90bdaf8ecf6932b2f

See more details on using hashes here.

Provenance

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