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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.139-cp313-cp313-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.139-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.139-cp312-cp312-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.139-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.139-cp311-cp311-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.139-cp311-cp311-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.139-cp311-cp311-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 289b46433d882e8d4748cb22a01053aa0d3d8d2797b7d558cbed95f49d4d6dee
MD5 30d35ccbac31230aa701c9bdba2286f9
BLAKE2b-256 e8643f9ca3002c84bba7249a4719e9785146b83f5c0dd68d22e2ed2f0a625ca3

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.139-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.139-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3331872a3056f08e4ae87ed127abddec8bae513d2a069946f9a39ebbe636deb9
MD5 fde23025446fd45a31becb4fb25dcc13
BLAKE2b-256 cf56a5715340028c119aa0f37fa879e562c10908659c90f7ca9eef1f10ab3177

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 81f14e7d70bcf11038c707954b6795f182851dde3ed35c090f35450073ec5567
MD5 7c35eb38319e1d363aed039ea006245d
BLAKE2b-256 728dfe73e09c436d797f583264e20db614e69ee9723441c62fdf8804a040d982

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b81610832e4cdbed2d01e3a75879868a892b0fe8cdfd8613efc816a8fd0ae53d
MD5 b479777980488172fc442fb2a64590fe
BLAKE2b-256 cd0af79b45cbe3dc1f721a17f62836342202f0335449f4242f1b44e45ce58f92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 64739b3a2ff2a7e352acb8dfa817557cca4df08bab712cdd005f00ac0982765d
MD5 a761b82401e466d330cc9005640e718a
BLAKE2b-256 e884049c52f45f385f86aeaf0067f9c000a5a1e1a8f288fd017d2bd9b642ce39

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 79fb61fc50c9e29f30cd90c99d9b1a8e0a2a816a5c9335600c376f7d733a5c57
MD5 98042985eb5b1c4c05fddbc609ca9d94
BLAKE2b-256 01d748f9e73143ad5b43a9412f6e9ea1a90cb0d2bcdddb95aae5a9d2e3709f43

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8863768249b27e7273160a351812e6976045b35c91ef799cf7623bea1b11b33b
MD5 e87d290f16b9f0402c350f5e7a57d5b3
BLAKE2b-256 92372e221d01835b568b4bbcd82c69b10ca70d7b939a2a5ff5203e6f4cba47dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.139-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 27d6d542254cf10e27af34392765e66c27940be552946a183724096dbe46de88
MD5 bc2ec79301d05a38992ae6c0f552acd0
BLAKE2b-256 18119c9c228ac6f978a480b11bbebe12f40957e20fd7ac81694c7d847ec8e45e

See more details on using hashes here.

Provenance

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