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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.96-cp313-cp313-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.96-cp313-cp313-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.96-cp312-cp312-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.96-cp312-cp312-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.96-cp311-cp311-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.96-cp311-cp311-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.96-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 808dc90d008a95a02bc0e22b196e28b53ff6864bd7d1ecc75f101114ae7ddce1
MD5 1859a573ad90befce1495c4e5f8ce2e9
BLAKE2b-256 db0bbd6114b387c4c4968ed063bae4089b945f8a61857a4e815cfc418a7e0403

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.96-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 36e289fbd38ada8154a7f4e14d533a6dd023ebc069020e9ff365db4c051da0f0
MD5 6acff1c661d57d660171e4f53dff5bc7
BLAKE2b-256 0ced9d34b833767f081d3b93391b99bbd8d2fd79aaad590c3c4ef43e041d97e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.96-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8e6541a664a16ad8a8a934521615256ee53ca11ff4a2a2db35e66f9230b84e06
MD5 8ac761f64d3b6ac9913863d1102ddb4a
BLAKE2b-256 04868850651275e4dfbeedb4b4c3ab4a391672c0d0c815f065bb35be8c0fd745

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.96-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ec182fc554d3a31f70942e8529ab5c02c92119a02fd2f997da87d6e8ba8f40e7
MD5 2ad0d6317b8028b1261614d8bbe8f624
BLAKE2b-256 9686116755a0f45d09b9f40b9ee657a3194ba8e13b4c45d4b6153a4fa7dc2f42

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.96-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 434e4ccbf4954debc85516f2859c72cebc9b952bd76dce26b826d122f679b2c4
MD5 9762d08e6f292d63156c0ad6dbc7ed8f
BLAKE2b-256 e2dfcdea70723a57546ffdc84ff8fc7e0a9323da1d3566679d7cc1d3e2845da5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.96-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bf7704ce624b4fbdfa912db2ef73b6fec6bdc08a8f33e2ce426d61bfef486640
MD5 b1e1b87f5d9a4ba1f7ad87832844c0e8
BLAKE2b-256 8502aed45965055f12ae9d9b32bae134f04ab96465558be4994f6e7ee47ecfd3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.96-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 32be8b76b230f93c2df31ebb39d857c941ba5c9a72fccff3efbd7edf759a886c
MD5 7e55caf4480d8fab3f4afccf73e65ad4
BLAKE2b-256 d583ffd8c01b7133b74d89a02c6b8c1d97531d34f370a88fb887e1592f483ef4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.96-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0d2c9932d04f8540b01f6715a880c3701888aa7f40da2f2f6b54925e428fd047
MD5 454bdd4f06ff5c87c85099e4c6ecfbb3
BLAKE2b-256 254fd89ec08b381cf3848fef8c494ba2123c2aae8f0b16f4b86d782d2c5d96f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.96-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a94c101bbef8762e293eccbf82b65c133511dded6baf3d89747bcf806ac04fd6
MD5 9d6aa9820e997b54e08de4a6ad98d2b8
BLAKE2b-256 725b45c4bc0fe100939d936f473b44d28a3572b3fe4b489f07971436230d61be

See more details on using hashes here.

Provenance

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