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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.140.post1-cp313-cp313-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.140.post1-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.140.post1-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.140.post1-cp312-cp312-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.140.post1-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.140.post1-cp311-cp311-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.140.post1-cp311-cp311-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.140.post1-cp311-cp311-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8aa3166781223f0f2cd754eb9fd86d96e6bc10a406a277a3675e552c161fe991
MD5 db0c1ae4fb4a412f5b2eb724efd0ab34
BLAKE2b-256 489baa3b27444c26eda86830ea85e74eed5a16483b3e9cf4cc669a35ff53d6fc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 371e6b0915a5ac0403a6a9bd6efc4f0577474788a81fcaf203c96e161e784316
MD5 2030d702a2e025c8d023c7e0361e8b12
BLAKE2b-256 f13f02e7275dff85fc5023a2b2d7512cb228f688cd74094b8483027d85a8a632

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 dbbdbacb05d48f349f6090a74776d139be52fb3c9b7d08ee5683cc0e205ab326
MD5 3b5476fb4e08c892af15fc48c6252e26
BLAKE2b-256 20cf0e2e7460c6cd7186d0bb19d5f21a6a84b5473dd9cb9034925a2144d03394

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ffb787de8532441a144ad1605f184514afab1e9c442c7b3f17cfe13133f90986
MD5 12605c46e60abfb414d37078ec71ac84
BLAKE2b-256 6b27335792f4d155e716877f2b63bc5e9684e3c371680a0a7fd5abe4b5f2c93b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4ce150d200e49ddea268523881661030739231f3b98abef3156392252bd8f3e6
MD5 f38b4009757131181a3d88b51f27185d
BLAKE2b-256 867a6b21d81a660b692604bf7de798b818ce98d6cfe3a85282c623e4e392bf4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7afb009b35467377f03acfc9a026212c865d53f00e444ab00fb35185aca11311
MD5 095ff2a7fb578bc5f56038097b9e7df1
BLAKE2b-256 b6c9b78d6b66d38beaaef6119d33f71d1bbd202646d3e986bb2a3b8825a9cc16

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 144f5adab692907fba2999840da92c6e4cd95f0ed09ba244cb285d25b848ba4c
MD5 f6652c35a063ba9b232d1916807442f7
BLAKE2b-256 d7f3278abf6ddb6d9b293a552abf8228c3d82aa47f25701b1b3ae4f2dfd8e230

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4564750f5dbfdf94487b013e53f0976b802a755570bc3a4df2674b8a0e77aefc
MD5 28711e626523b87640fd5d034a5f187f
BLAKE2b-256 74d87e54373ac3dc68db43ccf29c19b0eebea5d8eea6a44afef0c9d7d996960a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.140.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5adc61ab674f0219a0ce42136992417c9310be6197ddc865435898637227aa77
MD5 c7270dd81e767efadd3b99017cc0f7cb
BLAKE2b-256 f82e665b1deafb6c0b6fae836617d5af591739580b5a5915ac1f503d4555e2aa

See more details on using hashes here.

Provenance

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