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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.88-cp313-cp313-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.88-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.88-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.88-cp312-cp312-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.88-cp311-cp311-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.88-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.88-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.88-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4250551c2c48d5877a075c0019c07d6a26425e9060fe1fabab4ca33c12542d13
MD5 56150a2187bf31a9d2ff9ae1998b173e
BLAKE2b-256 1022a9b815e654f4f2680adcc15a1b9f7af01f236c8e5ff8a4225998096eeb6d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.88-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2299595e89dd1d26a82fa03222524bd0fa957c509d13a0c8f20d7297928627b4
MD5 80bbc23b8c3f40cbedfbfe80aa646900
BLAKE2b-256 d33272541bfd61720a6cf8f88db906868492e075fe825f40e7f20dffad2ecf32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.88-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 39d16a8b399ff2ce750c24a4a1274aea5ee7c21c1447f8e689a83afa2b7bfbe9
MD5 dca5ae78ddf8bae26a002a6bff4d500b
BLAKE2b-256 e2ea822a06c9e601d52db39922ce75350117016b7c6182fbce11e2e4cc1f6e95

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.88-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7ddef2328e3ca2c5f4cbdd191a80762bebd9e7bd99f448e39ec1d2ea350eb8ee
MD5 cce68270127649185f52bb926a49c442
BLAKE2b-256 c7c2dee1cd5ddbb5b841c21c7fd70136b33b2846d403c04c87a762957cd74e29

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.88-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 34d87466a8d73840a086fc49a6d5a1490fbd77980a6e5659deea8a0228c0779d
MD5 931651932c23ac2149e4f43bb4d462b8
BLAKE2b-256 e27cdb34970b46c86ca143b82f21c327a5a6fcf7f4ecdd9879eba5ec3bc03aa6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.88-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e4d79ecab94851d750f61be5b07ba59d7126eac6cec5f7fc3eae3ff84fabadb2
MD5 31e0f05e8dd35394f72f750f2a8143fc
BLAKE2b-256 84ace38e03c1ec1c7a8481ac1d37e243e35a28d25cc9e92ebd0dbf61bfc207b5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.88-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4366bfbce803e97cdf2b69352367edd3ad7752516117c547e7d936b7bfcc2213
MD5 26b03a74b016d354359bd5fd0c25a854
BLAKE2b-256 40659613f66eaa4075dd8ecab4d5f4708c0eba2b504c8e4ec08d906e572e36fc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.88-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5d6d86a42098cdf35f2b33486aa7defe20191b69489622e056fc4c0b9ca3fe01
MD5 230be4501980d9c8645f50aa7d4966e1
BLAKE2b-256 65461439b9045a0f0601da97b6bfbcb599f08f3595abe22280d3b7c9c749fb18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.88-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6152ce7a068c7020e956a6f18b1a94d2b04f7801181a8bb01d6e2fb413a5f28a
MD5 06d2d0755a053e60632a4bb6e2d81211
BLAKE2b-256 e990e25cc87b5bd966ba49e6b25a90d892045cd5cb4e8cf578f5029757eb8995

See more details on using hashes here.

Provenance

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