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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.135-cp313-cp313-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.135-cp313-cp313-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.135-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.135-cp312-cp312-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.135-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.135-cp311-cp311-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.135-cp311-cp311-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.135-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 23e744d5294901dd5647840e8b1385cb88c47bc51c14f2ec50811a1cbfff3658
MD5 863c9367f68215d973df8cf15bb9b256
BLAKE2b-256 d10039d39cca1ab06cb8a225f1741fd740dec590997f844369caf55da4a88ccb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.135-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ed34cea7e64fa205b695393a2f6949936c167e6af6b56d44dd873b092f09fc15
MD5 cf3e744df00ad5d01d14ba49e8f184e8
BLAKE2b-256 0e3c2a9cc3c8745dde40f10b5a7e9115cc4b2b5de81f48afbffa9778d834df42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.135-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b717df912329ed757be4d4d104f36c83691eefe3cdbbbba7ead1e13862072cd0
MD5 9c5b8e2056d62edd8f200b3e3b799c3f
BLAKE2b-256 393d29e769b89973510294621e014fcb88fb4f607ab23be828ecca016ee7a82b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.135-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b4d2d79fb0d63143ca086d202e18bf6a9b7d2194b3db9ac2c0f5694ecbfb67f9
MD5 45fd72c8f27054c3165ff2e6fafa9f6a
BLAKE2b-256 5eb6813a76b96cb937205e9d3709514ac583d60fe04a83bced3c28766d5084ad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.135-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d00c2f5d174e84011043b58cea2687ff045873c62479903343523bcbd2c919c6
MD5 070a00bafb64562825eec597fcbd8b88
BLAKE2b-256 cf6371d2e53fb31fa323217b8990bd3da673c10dc0f48afce0aae1d3bddb4233

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.135-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ff8b62a3d73c773ba0bbc0f3fa49f2b1c72cace12e72a4fca6f783e8ca5d6636
MD5 cd4a853225612786eecf474a9d3935c4
BLAKE2b-256 4603143e3cc7c46ddeefdd0e8fb64cbd8a362a60b6390f69334125a3f4bb7043

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.135-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0a3bdedad63afccd5afe2b0612e188a0b46ddcab3c81b1eaec89463a3768490d
MD5 9c953773ea7491e887129d678abf7a36
BLAKE2b-256 2c14c974ba64126133e869b6fa65b087a1f78917582932fe104ee421e2cf6bc5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.135-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2ed1e68b4c68a75297c61f8fb10913280130c7d0ff6e8d9ccbf7c6135c3fb9fa
MD5 3197f2ae9d501e73a89289ae34ca97b0
BLAKE2b-256 e05133e4bdba582f20d7c3836e3bee1bca3c9b7608985b13da6051b2ff635007

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.135-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d79a7fcdc6df777ee5b46536d2b5d885aac592a577f4a9fd9e3276c40751fc8a
MD5 9782627481314ce05ca8128c4c3efe4d
BLAKE2b-256 6938ac4a2a18895cb2e9f33e1f2b51f3c2e4d7c65af70e707da82e2814525e5a

See more details on using hashes here.

Provenance

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