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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.156.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.156.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.156.post1-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.156.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.156.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.156.post1-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.156.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.156.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.156.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 61289182b99d80a188d26d73a542e415e45067a63413fce9776f564e1860dad7
MD5 a571b75d5509c7473596d5db2661be29
BLAKE2b-256 af3c566c130ed45e463fbc005b1d5783d003977f282da019b09e9c82e66a58e8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bda183a800346b216e162610a341f149e9f1372da2d9cbad2d2247f56341692f
MD5 3a78f8a52b8f64578d6f6e3be7ae4371
BLAKE2b-256 9febfb3a81390d2c880d33ee0a72abd414407c60166b67a5d6ab5ba620880bc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 415fbb41b6b85a1132c99cbb04c4007286cc2db03f088f61ff5cd2cff48c238d
MD5 2632b2eaf7b7765fc103ad0dbd234fd3
BLAKE2b-256 b1f52cc8521dee04fcd871475fb6515dc5a3c8889828d1f96e2e10e1c10f04b5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e21484c6aaf3e78af4fc2cfa566e113e0a3b3f7da6dfc8fa39e7ba97e00275ff
MD5 c22481ae9c7e15375d22fb4b19560487
BLAKE2b-256 f8ca4ee915c603e54858e270f5a25973e552f195a76a26fe76d3104a1c77301d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 277504d4a8e0862444c9931a59c913408f1251ec329235a9db8b867b923f15c0
MD5 fbe9ed4e0cfda6a18ebaf7c4cfffd815
BLAKE2b-256 065716d2371e47d42a7b2ea01510f8d91e79745774a543988a3f5ae260e46ecf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ad895fe6670c93f92708f09ac65e5d28cd8f33637cc3fec02cce8c5f3c27378d
MD5 17262c8ca47bc9b48b8a4225e37df96a
BLAKE2b-256 e5ff9d84ba1bedc0d1c78e3a9a73da3d0dbaaad8b1f36959c60a0a254dcc38ab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 63a6bc92c333196fef608dc5e35f4171e069222b85261816ebc6e26bd7034737
MD5 cbf9efa491d7b817cd4f2bcc66425c85
BLAKE2b-256 3b65273d16d3aa1caa4b117271e46d1a33e0d5db5e3ad63eaafdeac4368ba986

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 eb5c9b22d2294d3f94f5caf3df6434f6776ab4bced7f91b872ac075091f33938
MD5 ddd4f8391d05de3d77ed63c071385fd9
BLAKE2b-256 b8abfb118dcb17d680a0fa5860a9743fb4204af96b2fdeade50229ffee809db4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.156.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 18dc3d7dc60e13f93fd34684b2e9928388e2e41ab8227b11d2a5e87fc1241e3a
MD5 e9881885f38a24d31257652f00d36620
BLAKE2b-256 fbcaa32783a9ef37723b7633cfaf3dbf9b3a6aae5705bafe18cc5b4db9ac8184

See more details on using hashes here.

Provenance

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