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.104b1-cp313-cp313-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.104b1-cp313-cp313-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.104b1-cp313-cp313-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.104b1-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.104b1-cp312-cp312-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.104b1-cp312-cp312-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.104b1-cp311-cp311-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.104b1-cp311-cp311-manylinux_2_31_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.104b1-cp311-cp311-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_inference_binary-0.5.104b1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104b1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3238b0cb5369f79e16ad95d3da9f35047048586a17bf1ffa546ecfcdde68e9ab
MD5 5705710d19d761f3032c79b10b55473a
BLAKE2b-256 fee4aa1ec5a8f69cde442e9b0d9bca504a7f6ea1f14e4fc555f7030b39278d02

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104b1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 00add71c20c7b695be55a43de2b85522db05285cd6481e06aa2adc0c8057df76
MD5 1c4f59633fd34b79fbbcc591ea4bfe3b
BLAKE2b-256 18d488b3354afbdb4fb75e704dde316365c265b5c239b0cb579f89d4175664ca

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.104b1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104b1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 86cdcb51790018940fb5548ef21b1973295310dc5813d974f3cf345458ddbf2a
MD5 154e237ab3c94d7d8a80fc46289e1172
BLAKE2b-256 be249ce99a3539a4485acb63265e8d85d0588bdb3624f307d4787dd7b1b7d0f6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104b1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a246e728868721bc8ee0a54364e702e8f6bc3ab79f32c23beb1acdd580a751bc
MD5 5966b3f6b34b84d04ed30507e91651ae
BLAKE2b-256 ac8002136263641e189d822d85fe9e5066401818c2f1e6d6a9c31017744480fb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104b1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9999ce963f6498a444a2593b4a17b16c76a9cf6249aa27d6384263098fe94a0d
MD5 67d7234b80349e75fb3b3ecc26688a2c
BLAKE2b-256 abee4c6b5063bda931178a62455f8e9101977ef90e2eaae48db169a4343aac91

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.104b1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104b1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a6eef31c908a7f119881912b6b5bf3495e9bf29dedabddcd74ac6eba14d59265
MD5 2b7e7fc6d6dfce98798ef9aa0e00bbc4
BLAKE2b-256 a95a484e906d8638dee1d186028f365f05ba70749c0417fd013d04aa689a8218

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104b1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a95fb15e560512556ab2fcb3d566421870f92567b595c6306d8f782afd1b63a2
MD5 a46a83281e23494b402a90074980fb71
BLAKE2b-256 08940999c600787e7dce41c5aea5589f62632b039b10e46c6483d87c43f2e981

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104b1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8a6deb1e4ed289730e633964ed1e7b660e22fbf972cb606d19e4194445de7381
MD5 76db046a034bcf125c94cc6405cb9819
BLAKE2b-256 ebb71aa7c6d48ccaf0334b987d892b89ab9f79d590a7404603a7752da8da47a9

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.104b1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104b1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2120fbb40c42096b6ac5a997c9dbca76a2fa8c0ede0aacd3335ffc1425ebeb23
MD5 375791b7c7cd702a1831621125a64e02
BLAKE2b-256 ab1b5b7aa76358d4488677f8bfdf310316cdceeba014b6e20f566aeaf207d176

See more details on using hashes here.

Provenance

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