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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.85-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.85-cp311-cp311-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.85-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a6be060442ce4fbd9763c78b42a2ec48882e4ce24e0855ae4cef8ee380421159
MD5 cd0bbd74e33e05fc9f8cad2af29dea22
BLAKE2b-256 82216be8bf4f41378f64e5c002b039fbe7ca5d9d4599ec8b070499c6bbdc2690

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.85-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 241beee75a4072f626afeb905f647bbe7ca08a6237e397d3ffcce29e8f0d4ca6
MD5 04dc2584562785483f1c23991404bc23
BLAKE2b-256 6b41d488cc5236f77c3417d642340c06e9a8bb120205caba2b92c6edf7371bed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.85-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 561b406cb0a669cefbe62a85d80275e7b42f5d41e9270cfd9aa12c0ef7255559
MD5 d2151aa24529103d2d3cd4f414411ef4
BLAKE2b-256 9248faa386c77d3085a4cf05e8e7cfd675d1d29c3a0b3b82dae9cab94b50b1fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.85-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eff4e1689209615255f819457b21e2738b68e6c14b7e5fd758416b62131a358e
MD5 b400993837644d28f86b5e1cebd72e9e
BLAKE2b-256 8e3330c6ee47370f2e3188c0a5dc93d5d732041262f26eeb78919bfa22e5d278

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.85-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 95aeaee0922d3b4331a9d724afc96259e7e26bffd50b8db80c010c675fac908a
MD5 50d631ea24040126c06c9ef323d51109
BLAKE2b-256 44c2fc6b68af757cca68d8441cc1bee4fc6d3007b4cee0b351e9eee8d2202604

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.85-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 14941538691eb411ba0b1803b881b80295245ea191359b16026a0d0c138d5456
MD5 8a812a9b6f0cc464d898f2140ddd9578
BLAKE2b-256 b77fb8daeaaef4e1a8cddbc80bfecdabccc99187ffa94a9630075e94db2ec788

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.85-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a32312b037c512826543e772a2e4774aa0e264e9b0ce05b3f4f990da8e950ae5
MD5 35967938478e860a9a608a3290932b19
BLAKE2b-256 ae43b2f3fe80aa326aa482df6540a169a3f41b1aaf7554a72c4f5e30991a2cce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.85-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f9579e01eea15f3881509db4d7124d16c277f1885f9e3820d8e96414de727d02
MD5 372ef3825d3ef8129ee51af106ade08a
BLAKE2b-256 2712c8e1e94c27492cd8a79e7e46371b4968c82e31ed7a50c76518251e37f8de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.85-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 84e113033b9db8dd7196ac3863f9c14f722311c69da622f1f5bfbc148b639ed4
MD5 d42d4944178014146cadb08bf006076c
BLAKE2b-256 836d49ba36e944d422a0e76c73d3a67821249810d28fa3f6ab39779db3ecbb40

See more details on using hashes here.

Provenance

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