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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.51.post1-cp313-cp313-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.51.post1-cp313-cp313-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.51.post1-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.51.post1-cp312-cp312-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.51.post1-cp312-cp312-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.51.post1-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.51.post1-cp311-cp311-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.51.post1-cp311-cp311-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.51.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 85d9647cc99ac05e7254f1e7edf85574b00719f465ebff178ae07cda7a106a17
MD5 cbcb3bca66b6d9d3f19a7cfda73f9e75
BLAKE2b-256 114534c508a13c849fdbc5693391f91a93827481afac2ef59c66b447053a1cb7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.51.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 eef446382d887aa62aff5de1b45c2dc1ba23b050c620d5ecedff31e39c216c50
MD5 71f569077512c353e1ace844e900fc69
BLAKE2b-256 91974af1129b8566553b1304eda0496a4e52399bc7caccab39eab9e3b886f139

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.51.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 055de93dafe49c7b44f3c74f69f7daae7927769ba33714f30fe3b23aa25f9127
MD5 5f8d90ae7d84d97d9c3972c3c4e0c304
BLAKE2b-256 c8bcbb5d3bb8687b21b6db0820a077b7845a19f34dcdfc0945ca325f2d59e5bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.51.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7d778a430ff88ee4a9c3857d1b195aa1a27e1f476237bb2d3ba545123bcf75c8
MD5 ee35f77b025c413a95014d54404463c9
BLAKE2b-256 d7e4838065798d35ed6700b8ad339ed86d9d5f5ccf11400401089bdc543eaebf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.51.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 74e8615d5bec024df2937842702c249988202310bab898349d76751064fb981b
MD5 d008be5e173f31685acc69c137bbbf65
BLAKE2b-256 93b97df933787c5273c7935ffacf364440d3702e8435331898ba46cb8ab666a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.51.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e637776fdcf0014297f4e8d24a0e9e5c1a48e140f38b55b57f75fe7cfe943508
MD5 c0fc770f8922ce0521d911b6cf1edd45
BLAKE2b-256 be4d5664e78e7f820e7e46927f5d5313a00df052877ca4d9ec058a614310dbeb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.51.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6ba4f7968b3c55d158a2c5d2b8878f72ba7b0512dc933ec396316beaef9e316e
MD5 bf56d976a6523e465aa54631dda69c76
BLAKE2b-256 8e2cff06b045898ff84c336bbbb1269c17e0e270fe94dcf7d6cdd51466a9c80d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.51.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 25c8e6c995a8e78f5841f119cf00b4731f8339b0ddc03a39c364a5b09dcf1cd9
MD5 6bd7d2f2245c1bfb65affea2f75dc5d1
BLAKE2b-256 3242131431076a4f641950e03693854d4dfc2eb2f7509e4c47f6b5cbde4292f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.51.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 cd52c310d6863ed8854b8b7b628030836e776ed6e3fe3bb3725da58a9ccb8b98
MD5 8631e1356cbabf1d86ad62473f2b126b
BLAKE2b-256 9d63308b9c2550be2f3b6842d8af39a659525fda49aa8b0eb058d46ef043078f

See more details on using hashes here.

Provenance

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