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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.24-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.6.24-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.24-cp312-cp312-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.24-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.6.24-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.24-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.24-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.6.24-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.6.24-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.24-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 cc29d0d314310ad16bf09b7f87abe0dbe710200ae404af0fb7fae687c24396a6
MD5 2c9bf8430320019fa2cde9fd9b9febcd
BLAKE2b-256 29d6734abb3e0f833239ca20e19d4221be9d52b65b14e4b5b2730c2235847013

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.24-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 105b36363f7117df949f150dd06deb22a0d242ac11a7037098826a7942118cc3
MD5 9820309b7087b774369ce6f9c65ff8b1
BLAKE2b-256 97ed62c9119c42592fa7884ea3ffd416b087dd744e706641aff9e23ec050de70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.24-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8aaf464a8f840a67096edaf67911ffbf447e6f343c13f7909ed536c2663724bd
MD5 77fb671bb98d32868b2c1281a70c3c2b
BLAKE2b-256 5589035c3a8b6f11ddfef621a5fa87b1e5fa8e583d11d663187653bce48b6e04

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.24-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fd75efec562bfb26f67294c3a9c1082f3cfae21f66291376265a7420025d4150
MD5 5916ce209069dd006af9f385a79560f5
BLAKE2b-256 b71917cbefd4dbf5845bce8ac2d35349d697b97683faaac6b6b64893013c2854

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.24-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f4d3e75ec80318530f10c3793a514a500c01305530ad91c16f812d1deedb999f
MD5 48e5dcf72a79d9823cc7edb8ee9929a8
BLAKE2b-256 9b3b6717b53bff491d91a7e67b47ee838e2b9b2560fc98f6990cf7cce697cc5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.24-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c7849dec8e19efb6e910691283efcc62173a303c3a6f984e1afe504093b8320c
MD5 201b15706d1e9876a685fcffba50a84d
BLAKE2b-256 d689e234409d23b84582a485925cfe955197adbb30d2bea12395b9a91dca5b7e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.24-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 416a92844bc33b91811c1495a909678293dc6a351e3babe0e7286cb412847eac
MD5 b3c11789fca7f009763048f1a1e77e3c
BLAKE2b-256 cc0b56e94870b9c69a503c27a6b869d566fa204f94d85d005623ac00152e54cf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.24-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6e106a5bf82a2d2261d580e6cdd1f718bcdef8385cb74b80684f89913e49dd81
MD5 13c5a5e102c8aa382ef42446ca47025f
BLAKE2b-256 474b2275e7fae23fadd6f6794b4604f7a081f21b333186cb485f02dd280506c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.24-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8338dfa94487637d986640b4e82ce6fb42b0d376394714c818d2f2c899a1c5b9
MD5 5d465db14405fffcf9f5892237ab7ab9
BLAKE2b-256 303f6c6f5381a2382d962517d0aad1f04bbde9c8b4f8f7b6f6ad04f699310ef7

See more details on using hashes here.

Provenance

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