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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.76-cp313-cp313-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.76-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.76-cp312-cp312-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.76-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.76-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.76-cp311-cp311-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.76-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.76-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 be56f9f51930c756d0d59c766f80924880fa739978440c9d16e66fd7f2c76fcb
MD5 53c53f49d1796a1018f8a1f036355af7
BLAKE2b-256 e50404b07d259353bfdc7a9e74b158900bc50ce5621d14243c611a7ee239f2ff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.76-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 388bb8404b1d9aa4a2f3d40a91715328faaa24b766a5278bc4e05cdbcba108e1
MD5 76cba716e9827da95cd64916724b1e7f
BLAKE2b-256 d90a17681d952dccaf08d3bfc3711bb12f7ba5616e44df08b68c482cffc54732

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.76-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3f9f5cc5c5813ca69cc3aea52b144738c4d3b14e690222143a351b94dd3a3b3e
MD5 8bb64ab9118a73298743416689dc39b7
BLAKE2b-256 f89938be7bcb5fb79d59febcae50c66dfa2c46ae4d9d159c37b17605c362898e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.76-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 89a55e3ea838a8dbeb3e55f66499d7206d64b7c2f6ec3e1f2cb9b2f8d47017bd
MD5 c189d9346de9f9474d7376c2f484649e
BLAKE2b-256 b5b036a436a70032d70db6ed4e6653e045e89266fecef79e78cd888299e4bc88

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.76-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 28cd3d7eb426f8c57912558e5ced35fb90eba1cb148d3009696cedce4223e38d
MD5 ef2d9ccae980be1ddf5276e8fc027a88
BLAKE2b-256 6e72c59c434e78908e6873529231bb219bfcc033432e36114e319d816d17b63f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.76-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 653cb0abde04c49e4e066fbd03fe9f420e614053d712b87267e216a4faafa004
MD5 db1772452d4afeeaa745cbd0f59e5dc4
BLAKE2b-256 99c3eae0e82af5f57e1810f25959cb8b9b0e09915dcd28cb5727a63603dd5617

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.76-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c0c45d6a1502ea31994d4abd56ea046cbe873f18fc7b64956f29bfadd8c5de77
MD5 d17351970a3de27bc08b51b87053f98f
BLAKE2b-256 73ef0b354358756fd17e23618cc2387a04d986fd7797b3f87f8375a209fd502a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.76-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 054db94fb2e5cd39bc2c162a16dcb014bc9304d89253d4f19566af8cab416da9
MD5 f4d1faa648b7be9d6441328aaccfa558
BLAKE2b-256 3c8a10e6e78753f7db52cb31c570649825bb0daa1a1a4c2e048974450e64fac1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.76-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ea51178239f3f54a715aede9461cc1db7714e0ed7ad25d7a05bdd20f995502a9
MD5 97eb953657dabf59f9ebebdc7da38049
BLAKE2b-256 97429c0e0088a619ee83bbc9b4314fc6f8186d8b589d2b84453f311740b51200

See more details on using hashes here.

Provenance

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