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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.96-cp313-cp313-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.96-cp313-cp313-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.96-cp312-cp312-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.96-cp312-cp312-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.96-cp312-cp312-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.96-cp311-cp311-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.96-cp311-cp311-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.96-cp311-cp311-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.96-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4e0a07f0343b2d9eca61016a3556dfcef3ca86272d1d10cc83f02550a9fd1777
MD5 811a10174d3210507976cf3ee9f226f1
BLAKE2b-256 527c0b24847c7964846f66d1171c22a39bf8c8984f1b64020db92073735b0642

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.96-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 22e447ff510dfcb0edd0346c73e387cfc34d3ddf84c8c96b4693a58c64e52415
MD5 9f0624e359709e5b07df0a8b730de26a
BLAKE2b-256 0040fab982e9acd5cb39f958c881f4d306ec0896c6a2b45b1f5cdf84454a4a05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.96-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6d2f1fa32f17f51e55c3925999ac26723b65d5d954e530f86cfb75aaaffeef90
MD5 4c58260d87986784706f7c54d1c0dd02
BLAKE2b-256 ed868a55deeb7a5413e47feacaf9130a5bf25e34765744a4d54036b5dd837d8c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.96-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d9091dc04021ae583b42a628b624e2235fa8048f2697ecf4c9c2bcec6bbae838
MD5 8d0f5a326ca6a8ee1c647f174bf6944b
BLAKE2b-256 6d5db4f738dab9b2b8b2bb8130b9d4bdf117f8ea047d96237e8db887673d83c0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.96-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 65baa2ab6d564f0bee46c3af3464957ea2d491d8917f81932778e05fa4f1234d
MD5 28539a287b4e851f40b5d1b86e1f8b1a
BLAKE2b-256 4b3646949bd80958fce4ab4b606b4703c8fc0bb2792daded23291ad28ec42b6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.96-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a8a104ad1c196301408cdc98d2526d6c082b000d92f6e643c83ab3ffe17f33ac
MD5 66cf8b96296ef8488d93f0fe85a9d4d5
BLAKE2b-256 8096708aacb9adaa0de3cd67fea7927c4e3d57fe8d2b3956ed9b7374b55853b2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.96-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5516cfe720bc1364c44a9b9e156745f471eac6fa54bc051f2420b07f802efda4
MD5 64372ad7a38bb241e80be34e58141003
BLAKE2b-256 ed8768595c245390bc126ca883ae0229f72f131e2715a756f642cf736d48cb8d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.96-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e2e5d780aa3cef5958a1acfaa0fce9f80a1fa076554af2316eee5889aef066cc
MD5 ef21c3ae3a77dfd74509af5eb74afab3
BLAKE2b-256 6b135a1cec29c670dd56cd183ba6b1dc1332567e044ddd595b68904f06a9a86f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.96-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 150d6e3da592ceb912d2f6cedecc7b5f1d9833a1a1a8050247493c63b78947b9
MD5 cac6aa5bcb1aefa63da3a92bb01d2960
BLAKE2b-256 5a7d7458dc9decc53073bc72793411805e66f4a530c36bfb7f4049359b3621fe

See more details on using hashes here.

Provenance

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