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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.28-cp313-cp313-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.28-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.28-cp312-cp312-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.28-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.28-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.28-cp311-cp311-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.28-cp311-cp311-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.28-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4fca9aff7ffde52a6fb5f0252fa4f9f95c045aaba22f78e01ba3239e3923e505
MD5 02f4964e6179e50c962e12a19d594ee9
BLAKE2b-256 026beb22d93371bc8faa9e41145ce82e11490d8d442cb9a5bc5921eb4fe55213

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.28-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5f3062f43bcbfe38d93add16e111620a9af42c6070099412d23148bfe07a516c
MD5 5d58eae3acc7e02b80a652c6fefe121a
BLAKE2b-256 87e3a09e5ae43ec5dcceb2a43dafc9c22968f8a184d7c6c16fa219ddf3c48d31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.28-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3226a83ab6e6fc124d97d227269a0e5bcb30840f8974ec8a931de31b3d2d106f
MD5 b383ecfdefc8472ce0cc69848047ea2c
BLAKE2b-256 d20d2d7e6605c2c24e9138a9dafd5f2a1ad08a7f514c719b8d4dee0aad0f8b1c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.28-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2802e73a43860b28502df04ef9561e5f7fa1eb6e46ed2ee2db79859b93b95cd8
MD5 c80157189821be3a4f550e3ab130dacf
BLAKE2b-256 0f092a5b7057e9274642680b9c9f50c64a6043bcea65f690accd55fcdbc90bb7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.28-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b12d4c467515a0264f7053f2256a5b13456e1d0426ea05b1e46d28bc05cce584
MD5 814ac2290bc7ab9cb3359699062395b2
BLAKE2b-256 6b7698902822e5fb1acb85673676a8f34c13e82764f20bd5347592473923fc03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.28-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b02416f7563ab3bf613b41676ec2507a57198597b7107958a66b35715640402e
MD5 60ffe5f8a59535ea79f5ed12978d33e4
BLAKE2b-256 214cbba2f628b519aa7c0d4838294802302563540de013a19d8edf2fba5cc4f0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.28-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 114953d73611d861118439756845fb36c871a674fd82e381659911d1d6559115
MD5 c55ec867218dd0d670fd49ae2025228c
BLAKE2b-256 2ca4beff8b2b74094a686749806774b3d3e99e7d97085defce64ccf88bfdf87f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.28-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a61cf3d6dd298f2c60822c1c718f69e6d3bc042172dbe897fedba6a3dcdb4172
MD5 cfbb6384b2115d6fec5dd9708624f2c6
BLAKE2b-256 537fca6c429bd813180194f4a2bd7308933b21b6246ae34ec7de622ab5408a3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.28-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ae7877dc3e4b72c7009e70e8a188807da70fcd270ab2706e9d936d44a57928f5
MD5 c04f16e0ffb123058f8bab2c4282fb0a
BLAKE2b-256 3e4752fdfdc1edcc01b8e4ff2c78ce97aa2c536eb02e024ea351e482fffa31c1

See more details on using hashes here.

Provenance

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