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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.34-cp313-cp313-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.34-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.34-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.34-cp312-cp312-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.34-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.34-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.34-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.34-cp311-cp311-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.34-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 43d970663de884275fb1f7dbd0d23f997e9c8016a9de61000299039807a060a8
MD5 81b846599a0a4350348a484e7ee41a25
BLAKE2b-256 70e90de64dfb26956e4a79fae0c9f7f5c09ede88c4e2d1d726d94fa6c8dfa8ee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.34-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6532c5a3a3e8eedf4a0aa288ee89bcabdc25b32e3fb5e487174408adea443758
MD5 7025a7692b6f8cd1cb76a1fa63b00f51
BLAKE2b-256 96fe9c8411f950f73aaa163d614fac0bf13415dc202b1f3f8dff5751882d0883

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.34-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 27fc4515a2d00e237c377bada9edc7d81319efc0449787d886b6ffc19b137ecb
MD5 f85580be9a954677341654d765dc0056
BLAKE2b-256 eb7b726b1a2c8548bffe8d621ca9f371441f01e700ccb13b6cabae080dc637bd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.34-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 855e6ec8f19d4de651b2160eed1e3c7ed95cf7db8a39a40aecd863ea2c3a7877
MD5 fee292e0f375f380fd1564b2bbeca183
BLAKE2b-256 6d181ad20f33544ef9d2b29166a80f30f3d6e9641f9600cddbf48a0dd8dc26dd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.34-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 da32647c03d8dba71faf9b172d93906fc71fd76540ca317173ebe753d59b3ce0
MD5 7794873c3f7b82568654fa0fc2340fda
BLAKE2b-256 0203b5bb2d611556b10d96b7675407bc500aeb22f7619acaacd411087d92d4e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.34-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 74f86f21fa2cdfe69e8e15772cbbe7657454ed9cfbf20a9a4948a6dcdf5b94e0
MD5 902bbf65187300e81f630a72dd7d0f82
BLAKE2b-256 4241817e37d3d895661f9c13d42ee7afe22c1f9c531e3807dcd1a34afd493180

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.34-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 803b9aa7c04c62374bab73218e1854c70eea006eedb088ab1aa5726723d552e8
MD5 964e4d097cfc34614a8b1a090bd73b23
BLAKE2b-256 7a3decb4e8071d4cb2b8c4b045274ddc77a9f8e0338f57b82ffda1003c2acce2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.34-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 13694edc32bb75c0211792378ae93c83aac483ff8700b69e296a2de4fa500aff
MD5 a80c488934bf0418462ba33afad40781
BLAKE2b-256 d7631a0cd74b278093706e8289f36e4f56fc9dd7b2441c2df1845eace76dbb38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.34-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bb9654df8ce04b713d12f52bce7b068124d6cb4a463cbd4e77fa31cae3931337
MD5 a3005f7ee8de64e1bde1050e9023c8cc
BLAKE2b-256 3daa53a78612e06d162291c508d6be083903beb7889411be8682f1aaa0b96ef9

See more details on using hashes here.

Provenance

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