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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.153-cp313-cp313-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.153-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.153-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.153-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.5.153-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.153-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.153-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.5.153-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.153-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 fe2f74a5130a805da81efb32d73bc38ee0d88976ddc340f60e02ba0636efd428
MD5 e41280260222505f4f546d3fbdcfea0e
BLAKE2b-256 e3f1abd62438c4fc1c39b928a1e32dca8a734000a2196ba5133beae7d7887e5b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.153-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c763c307198f90519bf0623a755a0428f3360d3de38c283434506597ee914152
MD5 d9eee3e52cd3903d87da1b74efcac7cc
BLAKE2b-256 b988178312c0239dc2fe9d4ddbcc3951006bebfc11f7590ab3e96b38a46dcaba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.153-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 cb28843cef0ea9523eca323951c279f267fc2a5fd025d4f029d6dedafe934466
MD5 24b31b7d2faabe213039861ba48ced99
BLAKE2b-256 d460cdb6d79eadaeb104b05997185c6e982b62eca386498f9010986699d86166

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.153-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 30b9b49bd9622713ecde2aa2f0dfca93f777da2bf4a86b646991ec4ce0965640
MD5 a21cc809ebc3d21f7819456d01af6430
BLAKE2b-256 acc2ac095e0bc62ade40c1f5f94c802b6d2899ed8d469706f7c0b68d428a7f11

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.153-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 17139e7ff0fa9b65ea6da5a6875247b5ff2aad60072e46192f8c2a671127d845
MD5 88a1aa585201d0d37320c1ed787cf2f1
BLAKE2b-256 ed8cdb22200474b764bc2721201c011bb365545d006dba9e34200edf4ad3e7d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.153-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8898a0e4d4a432537e9e80e0caf44846498146537f09c1fdca19917b18bdf41e
MD5 c12f43e9f669c10842ac11d1f5c23e8a
BLAKE2b-256 d20e9a1e23b34f28199cf18af4dee6c2fcb20702d231872b09c667df30655d7d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.153-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cd8d379af8b360dfc318410290c22a9397c0d24428a48838a58de875b34f3100
MD5 de2716ccba16b5561e3f36db08fb4f63
BLAKE2b-256 2bb4006dc2ea3132d81178a0449517df2bf8ccb55c38ec7d5f6d42f70cb67bbb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.153-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 69af47b99306d1bd835e03df8faa3048165cc5051498857956446cc19f669c73
MD5 c96515076f31aed8ecdeaad313dcd527
BLAKE2b-256 713e3440c7fcf35aabcf9efb639afb5a7d028eb2433d0ff64b3ede2c0bace43f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.153-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a25111e500a3465d420ffebbd5b736104396f9084ae6c371f4fb085a855906fa
MD5 7b71e66e586eab87a5484b83a7953cc1
BLAKE2b-256 b6f608e12920a5a8fcf59de2a136470c4fcdeba6e016a63f3786cdf856f8b911

See more details on using hashes here.

Provenance

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