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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.147.post1-cp313-cp313-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.147.post1-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.147.post1-cp312-cp312-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.147.post1-cp312-cp312-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.147.post1-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.147.post1-cp311-cp311-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.147.post1-cp311-cp311-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.147.post1-cp311-cp311-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_inference_binary-0.5.147.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 13fece8795737a9d9472266b7f1330ecdbc193ffc5d1730274ed392fb6552d0f
MD5 619c9e41914e6a3897ed82cdc71151d2
BLAKE2b-256 2959eacb1f5bdc872775529ef7834366e32464f4c2fd81c7dd02521678a94468

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8a1cae13eaf4b8970ac3fea3951d96609d3146f89454ba18450041e3fb26702e
MD5 47eb91dab9de8864a34524275fc48c6b
BLAKE2b-256 87c24bb8529443318022c27db20dee53688834339205b6ce9341ee383f1e6ba7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7dd9b6bd80c1f72bed66b1e2322088fe9747e347b5651e94cf9202ecb6e892de
MD5 4a8ccc07cc7534e9aaa419f2afc52c25
BLAKE2b-256 684501d85f9ae8dad40f8cb47ef824b9703380a91612e00755822b88a2b2b8f6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c7c64418927f3de4733a66fcec2406e96ee8ddb558d9e1393c7c70998d67c68d
MD5 6aae0fa9e282deb62d234b3248b56ccc
BLAKE2b-256 ac6cec8b60d4ee4a9e6f16ae6891f0895e82c86c33edb661202f1ce96fa371f1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9fa6048deab2d603a09f5b0c3915fcf88b4ef8879a1d34ed6d61243837a1b77f
MD5 22448a898062b8987e3dea86d72836b0
BLAKE2b-256 01da066b1f6e7d7211ef7147a8a613dd6436b68b66be57859937563983010d64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e10a300f970d99420888cba7eebeee3f4399b4128350fe52d0d5928c2c8e05d7
MD5 8beb1afaa4ce513c8edc0dcc69d213f4
BLAKE2b-256 3f3f90ef53a76264868701c941bb39f4497fa0f6d8a2092e6f7f62773e19c3c9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c5f2c19349482ebb051559cd06521c46c752ee42819bd0f4018ecdfe4f2852de
MD5 b6e184c9a457a1d631a93d33a249cd97
BLAKE2b-256 d9ae1b603e1c5e9a15e26ddbc192ee6b39b419071aa3e84ce9a6544d923878a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 cc1f08379644eba96f4983c69730266a0e280bfada410116df1a40d1a183fd35
MD5 c16f81752b1448e116626d5191904d58
BLAKE2b-256 4b75f455e777db3f6b3a27c7d6fe81d1552597a8995badea3ebf859ad82f2cb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9713965fb6c40b1fd71f35b25130b03cffd949af9ce2f44b83116b83086435ec
MD5 aede4da5da8d4621b16fa9edb4844703
BLAKE2b-256 1401fa84131384c1c046d1d535fba87079a2042a8803abba0b5d4d73845092bf

See more details on using hashes here.

Provenance

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