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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.64-cp313-cp313-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.64-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.64-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.64-cp312-cp312-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.64-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.64-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.64-cp311-cp311-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.64-cp311-cp311-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.64-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f855c6477adc3c3b1e9a1f68dd4f442052052f6fb58a33cf8229ac854c960149
MD5 36d8f92d8a8b63880241bab14773c088
BLAKE2b-256 91b7d4c3ce297f53ed8130bb9ea6aae141e5377ef13ae8ea5a1eaa994ea3d6d2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.64-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 7976818c01e9ab103fe9199cc0a087ad3836eff07df4e50013e4eceaec57b570
MD5 0f8c66bc0ceb47b45b11b248d0deafb6
BLAKE2b-256 6955aa0e0e2052cb82e496e0f76aebe18283f17c871a85d94adefa5b7646a33b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.64-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7611b432f5a7f12586b3367f4ea8a49ef54e29c55d106530e25f9f96baba6c6e
MD5 5be02c9478def6039167e4bd0febb571
BLAKE2b-256 22fdb2f57af5a31912a3b7d5b45bbf489f439af7521d8e3919a52a5665e0852f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.64-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ee5eda482fbe47a84f07dbc6bcad8d5b782c06e37092fa9f7424ef3b93648215
MD5 6cf851b33b0d8dd8fae3549ba0350a07
BLAKE2b-256 9e17492b2cbc96cce2bfb1c140bc0d8cfa244786fdb79d07b854960d574194c7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.64-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 7dcab9b1c8d332eefc1f18ea644c4578e6c178d88fb438212115e0f0f64773ea
MD5 dc73800a4fac10adfbb18937733cfdf3
BLAKE2b-256 4ff55218107d13b1ac5ad91fc0390f589616eda0fa517d711198498e6389e0e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.64-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1472508e760479474d170819ebfbc9e590e028d4bf749503e6349850c84750c3
MD5 e1d8572f52e1ac2dd82967735823cc90
BLAKE2b-256 cdd01cc63fdbd236160686242f7a780ec0b6f01aa0cdfa1fa2bc1b4f18bcf594

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.64-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2589ae85fe8846680f3498d9340d1f0f8f17b5ce2afacfac3454ca1dc6b74b6c
MD5 503fa9b5a8ef3696f71497fa5e536623
BLAKE2b-256 dd5ecd6d0c77386e13c1ac6a9d6bbbaf8b7e11af3c9776ea3b8099ab1324fd57

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.64-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5a034efc5c0d356545f94115297c09c60437e261d49e88c8f344220a0e958d51
MD5 07eed49ee45722e5a6aaf97d5642b309
BLAKE2b-256 bca940169e191fe51eee0ae9f33f4998a1ab21723c2afe73be447d76da5540f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.64-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c03c6f31cf1355bc72fcae6bb6884ae50d62fefb8e8ef2b6a0122a768d2735a7
MD5 61b4b8004459a6d3cc6c7e0ac5569d31
BLAKE2b-256 0e2651f8e4d4c41b489aab7300e3d7e67b8034bf391ce8e809fb2f5bc646ed34

See more details on using hashes here.

Provenance

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