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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.82-cp313-cp313-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.82-cp313-cp313-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.82-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.82-cp312-cp312-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.82-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.82-cp311-cp311-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.82-cp311-cp311-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.82-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.82-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a4af7a488151fcd3afbfc00b8d598eb95893cb59124861b8098d7e54cbc82cb2
MD5 3bceb1ceb263707b33168c25869aab6e
BLAKE2b-256 312340c11b4888ec5607bb9e670ce3bed29e0debb9e1f6f52c7fce63a97513ca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.82-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bd20bcb8ff2f56fa5c9d843eb35451cc31feeb1fbd487387e498a1ad8916c5bf
MD5 57e9d56c3e14d0fe42dd77d5b3b37dc8
BLAKE2b-256 5cdf7a873f7480b3572770886ff56731f644bd59fcaf3fa3e3c2af0d91866a64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.82-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 be3ce554b41ec73b6187f3cd25d9b3c6031fcfc6e0917b6911dcacb70705f27d
MD5 9a37ffc74fdb1f67eaf2f0f4cfcf67a3
BLAKE2b-256 7951b188d96bb5c106ea39794c6f52090e584beeba5a1e3b424707ab6e6c1e24

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.82-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 19f01ef184a9519bd9e1e6e2dbfa05aaaa4e3faac05f3285b938318726419aa6
MD5 c413b4f8d8277a40633c705bee0e4008
BLAKE2b-256 8827ea79f2ebdef09ae346c1ca462c96dd918e43dd5c90f0824f1c074413f190

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.82-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bc0086899199a91b2d4c99a9d75777376416e0af2e5451efed78e6b9b9d5bb43
MD5 4f94c12b04e63ff5589d698637b0a806
BLAKE2b-256 6100e50c8d16faf335f00c6c89daafba615cf024e603926a22c9bce2523d89b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.82-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d640cb5a48758ec703dfcdf1f06aaacd97c7f0f9c4c91dca5e5be900ae01d8a9
MD5 7fb0a9dc7a5b4c20f9e37a60305b2751
BLAKE2b-256 38a77fb2141835d467cd261e13465b29528ca92285771d01d05569790db7c134

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.82-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 df125942c17aa4a6823232da002e52386b37cdf4ce793680bc2872e51000df88
MD5 4c0577cf12dcbdb3dbdf19eb1fccd517
BLAKE2b-256 e66055a1b86bcc5747e11c0c41e6be5a7bf6a8513d0383c58715562ebf3f484d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.82-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4d8f2dcd0a648531cbc738b81d3f0f04a59bd5ad030027cf1024ae09f5e6dce8
MD5 7f59ed3f6705d1e24648a89698127d8a
BLAKE2b-256 15cc709a58c626d32bc43ad8673c8f4aa1b5b03f249de5f2c62d142f720a6f01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.82-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d8a7f9db91f006a265ef64eaa1e99dd7ccd1e7d89dd85f95faf20d66b7d7adf5
MD5 82fb73d653e7cc28ffd7fc21dc5f54be
BLAKE2b-256 766f8b5b8f26a4736fe55abf142e6cf134bd85a414e6149434889148b317b2e5

See more details on using hashes here.

Provenance

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