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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.119.post1-cp313-cp313-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.119.post1-cp313-cp313-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.119.post1-cp312-cp312-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.119.post1-cp312-cp312-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.119.post1-cp312-cp312-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.119.post1-cp311-cp311-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.119.post1-cp311-cp311-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0a40dd158502464578c2516246d3aebf2926cf90e819cc522b01cbeb7b538dad
MD5 46d9beb121e3523069964c14c419d6d3
BLAKE2b-256 0961fa3757c7a45a796a3401a9356b0ac46053e841d40e1da32e9ea8ea19361e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3516f0e7b01181626b9c67405f620cf8cdeb0438f4ad3d8bc830f9a1f67d1265
MD5 82db447611c761e103d266acdd1c9808
BLAKE2b-256 8bf09e2c771bd70cb5ad4365c69b4fee28fb45783ec75592de038faf7bab15e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 51d9b0c087c11e3915e58740543ed2839ce75c4c9d9df2efeedef7dccfd031ea
MD5 748e9486f86cdd76267b41f4018c9d7e
BLAKE2b-256 66949b65036c40644daa67ee923e74e5c817b3d60aacf3a3f9a112ca5414e7d2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bea2fa375f7824b241c468b636265539f0f89c5a9d62ed3d7ed1ac8de0ddf551
MD5 c1649ef66837469d61e4021e7f1f666d
BLAKE2b-256 2de7fb2ea124494cb82f220e2e47c2101f7d43e7079453bcf61e81489e91e2ff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8930a9ceb47b0ba6fddd2d41430aeacec8ee0530a9fdc4cd2e672476ce9d8bb5
MD5 3eef6d2bc3c8ed581aea6c199e17cb49
BLAKE2b-256 0eb7350ff0b5829575b35a7df4f0a287bbb074262a2260c110bda5d0286d3629

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ccd6fe282864a15df4c1eca7bbf49c38d877b712d2095f2b160af1d5e72dfee9
MD5 a945999f18bf1fa097fade82f8029c6b
BLAKE2b-256 db0c70f6e49f7db4ddfd089ed5b03ea0d22e859891eec622906d03e1f034436d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0dfe96c3b112f03c3159c676987b71340e311e7a9fde209233f3b70be4580073
MD5 d74dbd74897d8ef8d32c17ddfea2b6b3
BLAKE2b-256 e609909a00f4fc45ffe119c6c09c288dac5d7e6b6388586ce98153fd77b9d260

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.119.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.119.post1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.119.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 634244605a1036243cd0ef26be4d764f8fc609479169003d448f6e7e18452b0b
MD5 3e1507a30375eefb376e9c9c39203583
BLAKE2b-256 6fd0a612278e534b690def4c1218292792d33cf07ba7684784435cdfeb1b4264

See more details on using hashes here.

Provenance

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