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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.104.post1-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.104.post1-cp313-cp313-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.104.post1-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.104.post1-cp312-cp312-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.104.post1-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.104.post1-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.104.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1ac42d654226117119317436ab0329f10fcf9b01bc51837aa1ac7bb22bf86078
MD5 d6d211af7f57fdea4912fedc5ab60aa9
BLAKE2b-256 fccf38ef43d31bdd01d8dc739e3c0a89d7c6625225a627399274295bb8ac1997

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 50a143a7cf1b5763f9fd5908d24d181dda792df014dfcdb5475c12f4dfc46715
MD5 c6744ebbe2c5d68804da82bd73a610c8
BLAKE2b-256 ea1bc8cb2b72da71c1def57060561784265687be889e0ae4a0b6402098c2738e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1487a393f550c8dbbe2e05263b68c0bf0c873dc05b56dcae4205fd2119671d72
MD5 7fd15abd51eb22447ca1210639ec4bb4
BLAKE2b-256 b15c041ab76f76eed896f171599b6a0ad15803db1ac18512a7ba0952ca09d1ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 247ca092027805d871ef11d905f9246e3a7cc44d906cd48294a30589bd2c84a2
MD5 29ec57ace6af51f90a5c3e76886ff108
BLAKE2b-256 e68f443a00bea20d00893eb9f0547f9fdd0e22d7398862d6fd6571e44631fa5d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c4ed72110f116f8cfac865b328612012b6466dbdadb2d77fab69a5d6d6388dde
MD5 4bd7935301659bad3238b2fa9363538a
BLAKE2b-256 9ad01e0a9c27934b235bdf956779808a1a11829bacf3393c008da31669eacc03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 af1fd3b3f86d7ffb2e55ed19cf18515312d943e06500c199df39ad745118829c
MD5 36cd3c79d3bc4786ae8fc548c48a02e6
BLAKE2b-256 e7a85ab5a63b0098f98fb6fd593af5c53b6360d677c9bb09e5a4d08f18a86372

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5472b3706c3c4be363344936bf28718697b9e502869a6e951c1a104bd7fb9012
MD5 cbeb3adb7b4d839383c0cb3021ac6dfd
BLAKE2b-256 d77e46f17172205916afcad68a36dcfa4516fe285678e4b4946b044a311d0b99

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8befaf1f06989d47ebb5d8e4f74361daa1c654777b6507ff37b11a792361854e
MD5 c38f4c0b692accadaa34da861ba5d2ac
BLAKE2b-256 e145caf43e7a4265845656b726beb32d001f11ac055bd65a1e788440c9829038

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.104.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bc18fe8bdf4aae17783abc22bee2528f6b137a23325eac62dbd7b1417d383f3e
MD5 ff3f9722e01637b7bcde8e267bad3ea4
BLAKE2b-256 328780e53ccad5407d1005079299c537b3cea72dc61b8727b01b416274c56b25

See more details on using hashes here.

Provenance

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