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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.45-cp313-cp313-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.45-cp313-cp313-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.45-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.45-cp312-cp312-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.45-cp312-cp312-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.45-cp311-cp311-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.45-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.45-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.45-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ffdcc5f6e43fb7f29d3358dc7d5a3ad6c0e78bb5a66d7664e5f25867c376b5b5
MD5 6c6a8dd604248991401b4423fe3188c3
BLAKE2b-256 15a37f995af5f31d46d49a15910a0f7bfa54e2ce1d7d425107526d41a7f4e9ff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.45-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6d38b638fdeaaf9c56b5785a2fb7df97a377ee187fbf6a7f0e6b822cce8bcd6a
MD5 11efa39fecf92988bd33ea5bc4186462
BLAKE2b-256 b971633c4d854370252afb23a5dc8de0a8e6e75fd046622130bfc4517a73881b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.45-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 271fb667d999bdceacadf0aa8cb1be75157184dc756b006fdbae3fc403ddde72
MD5 952f29808cfb01065c0fca206481b237
BLAKE2b-256 55866fd4d61879336bd6d86fbfb37d320898e0cd5e7d92f07838ca7036f83071

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.45-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 514221df4d641273014a6ebff1674c8e4ffb5c9ad4d40664eb3317c1d83c1c67
MD5 a8ba1a64cab71c2d07899bbc9d0f95fe
BLAKE2b-256 6a65df73c824f7c66d5744dd745043b201ab0cc70ce0b2a7599c9a508f75bf1c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.45-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d76c0e0835bd5fd3cf96f8d85b60f78894919121f3693e8554e8f203f489b976
MD5 3776d9ce146544f3fc73c564f4f08ac3
BLAKE2b-256 cfc36578fb37c976554fc4e02ab1ea9a03077a3c5040d157cb2274aac0b78317

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.45-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 90499127ac288f503b70378fb723ee09dea0084051172f0786b9da89dae50569
MD5 f82df1876ec7da846352ef8ea45ca274
BLAKE2b-256 52ca715d3ad0325e297c71e728557e818dec904005e45b4636ca64de6aa4c08b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.45-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5bde0441742e508e235774f371b2a080d129c8c8b3fd3cba35ef5926667b8025
MD5 37d7a4d3a414a98c47b7d001c97456ab
BLAKE2b-256 00537ca423906d28633be581286ab7f5a296b019a5c2c90fe0a79912919bf354

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.45-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 156b53ac7aed57b1ddb39ad462d69d6012e40b98336c1e8f458723700a037ca2
MD5 50d0c39af90c949f227cd4ccc9c76c3f
BLAKE2b-256 9260ef85038c9b3212bf4b4755be10e3a7c3a613fc50052a8efb124ae8c35f93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.45-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2949d9b4eb28ce843ed16f2b99547174b7883607f23874d5f3981bf7b1ebb7d7
MD5 3c8c5660e95b3e7f7601d4d1fe9e72dc
BLAKE2b-256 d68e1271d5030583a6264960bdb5d69ec0eb248ce50fa0b08b73a7796afbd4c0

See more details on using hashes here.

Provenance

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