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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.84-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.84-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.84-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.84-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.84-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.84-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.84-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 883ab23ca3f49fcb0669e7316f81485c053b5a94db4f0a84861229f3af76ba5d
MD5 d14ad256ed8cdb5e32176bcd2f142225
BLAKE2b-256 f8274e1d6c1b48d4fe6531b81f79f4eba0ce5f60a823ebefb123791f0a2794ee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.84-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d6f0011978b9282d1d5c273b6ba2e77fd6b3b15ae3c95d02e9581fd5f3e6365c
MD5 8c697dc4da87326cdb277e4da1905504
BLAKE2b-256 71c7f93cec6a3a6dab734af462d151e0fb5e6ff033390822e0f5342133a8f993

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.84-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 56bc5e93a2819e0bf2b75dc0b3ebf27c15a54efb08cf35e29888c191c5480482
MD5 bd6ecd856bc71607b06fbf8df8a72751
BLAKE2b-256 69e839e92b060d1e6a50489c9940dda6deb30f48545bb8e992780555ea4091ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.84-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c3ae89b3b7842a2a3d8b2037ec1a43ad265f090a5368b8a01a3a28baf3e01194
MD5 a25e8b7fb8a5a8b1541889624b1060dc
BLAKE2b-256 11dc6990bc63c71b74be10f472c6090609191067b4b2c3c42183872700d19553

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.84-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c1ee01cdc0622fd120c29d6453c6f6345b42ae768521384e5eaf2d02bfdc4ff2
MD5 06b62eb7e60b6d091839c0fa7b05bd78
BLAKE2b-256 f01b434aece2ef1470bccda3f665da170e6c929d879b1354652d8c1e0a524238

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.84-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1b6b8148120ae3f30f6069eabceccdf3f84e3d8043523dc509c69281a46ee2ad
MD5 fede7cbbec72141826bd6ef9cccfd579
BLAKE2b-256 13ee03f5688d610bdf1cea2cd095d99d31b1d4cb0811a6111527269af09d0678

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.84-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6e0291d1d5c92f50ea994723b2d156376a8ad78df47e48d03c9602ba266ff58f
MD5 6f654c68b97ede418a17807261705df0
BLAKE2b-256 2e752394160a1a4d35c4f1b44ef5f91fe772d57516cd6352cf46fd8e5623e316

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.84-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c2a1484abda77086cad67cd375f5d7a79b4b2197c9aa9ad4e514a0024f4dab09
MD5 0a73c2ee351159dabd7555b95366ca37
BLAKE2b-256 a6a60da4adb21d8496da387d228bc7329098eaa9920adf9531b5857e7a089d66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.84-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 fb145d7e14ebab28d89ea4c9dc785184ac5d910382abde19279ea6f399b5fdd6
MD5 f20d86ef6bb2d0a025a68c1ac99d1f6a
BLAKE2b-256 fceec16da3ad56ed496c8347105eb300debbc3a04e650921352f74036fe2f33c

See more details on using hashes here.

Provenance

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