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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.65-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.65-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.65-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.65-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.65-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.65-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.65-cp311-cp311-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.65-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 915224053bf196db752ee3b7440794c89883c4ede593dc70e8bff1a61963aa8d
MD5 0f032140f7ff0090292209d6b0e9e26a
BLAKE2b-256 fb35dd709203e8652739576cefae68e031914b785751402ab53dddc388092afe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.65-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9637e7901c971cd9587492fd5d14a267c3cfae25460ab5f151d4bc7f2ba9a248
MD5 164a0b0de8b39f4d11a47f4e808c647e
BLAKE2b-256 38f2bdb3f5df401217792ae02c32e264a1343f6e15d290049183ffd71d60e28d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.65-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 86afc408c038bda1c49abe1e3a47a3ffffd4e76ba5099b947cf94a9fe52c838b
MD5 8ef4871700a156597b49331cf1e2bec5
BLAKE2b-256 a45742ff9d5def3d095520affa845a00659815fa331f7f442bc3220458b8f450

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.65-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eeb4fa479cec4d9ed90eef4d62d23b909b0949a2e668bef3c16e5cb9a8476051
MD5 cec82a684d423df45fd4cb33e16548b5
BLAKE2b-256 89de21e12a8be174fa3969ce0ec0de3f78c61fa791f6028b5bdb0ae8c7921032

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.65-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 634417ffcd11e827114c0319eb66b2061f7fa5c586543e4d6d419a9bbb328216
MD5 847b6d7834e7ca211126579bbe83f326
BLAKE2b-256 57de84cbdfea91d2e6ea4bd6072966a20c63cfcdb0a74317ee04e8e2ba827bd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.65-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a5b40ee7581a085e21748c2c388cfe55f8c9ca8e35be34b085927c5128bb402e
MD5 9547b6cd1005a10500b62239b57d25bf
BLAKE2b-256 ff961bccff807a7f29330ed534a954eed40108d96907be85e2edafef1d73d379

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.65-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9313bff75c7986accb69a1815ab960dd57024226b82d19680e158882068c14fc
MD5 a3efaeec5a031aa583843c02cf61adda
BLAKE2b-256 6e3b2efa25bb4c4ac0223b21e84a75f370ecca070e85742043a0dc86ad6a8514

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.65-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9f0d4b4de17046e79e1540b6bf6ab54dd67c357281ae389d74477ab2f5b68301
MD5 dcf9d523a725d71550f5c48a89c2a0b6
BLAKE2b-256 41ae449d742e69c6f38278cdca2239f4e3b5bf9d1a52ccbac7ab86b4a48e258b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.65-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e7d01210c93e9ae65012869efce9502ebdd5c61f2d3fd89b88cf039d2274a863
MD5 2278ecf6dc77183d65625ccf3003441f
BLAKE2b-256 40b2906330cad837ae6e41a26b6de46ffc6a6d11a5022776e10c460c9b18c2e0

See more details on using hashes here.

Provenance

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