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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.46-cp313-cp313-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.46-cp313-cp313-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.46-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.46-cp312-cp312-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.46-cp312-cp312-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.46-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.46-cp311-cp311-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.46-cp311-cp311-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.46-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f7cc8b137505c3e8dbd7d296ffb11eb6fd7869c2b82995294730250c771bde16
MD5 c57a96702dd4b3f2b7d22f981432f1bd
BLAKE2b-256 ea4ed293bb22ad6e4bdf4b1cef717ff3690c5637c6db09cd4aa3a96594a4d05e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.46-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2210d3d7ee9f56c1a3e3bb0ba99031934645dda9fc6c2e94bbf2b879a73a1d71
MD5 0aca8ce713b2ce6b5d85b8b361950008
BLAKE2b-256 854c6393f91deb0b68e21055a9917c5eaffec0d040cfd0548ff322e096c63b29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.46-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 77c61961de4a55f686e4b0032b963b29295d637d5d677dcb9abfaacd1d1ed6e9
MD5 b5cce3bae3bfa54a55002dfd2c3a21de
BLAKE2b-256 14092496107b2b4b70a9dcd34e780a41f9e43fde64b6a30769fd12573bfd9107

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.46-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 597af84ea71655aa411eb59953713d7e97f04da00b5550015985a4126c0847bd
MD5 4cc60f0ae8c30274caa3587731bd90fe
BLAKE2b-256 37a4f0f1619448431eb1f6406c80bba430bd6a6beba255540c22852deb4fb36e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.46-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b07bb00e727664dba5851faeb741680b9227b5d12000741ad893ff3b1e1154df
MD5 90c6c8804abd6aec5366927c9067e747
BLAKE2b-256 566db4f074c52698d78dd3e41f22af73dc950602232846181952717c9958b9f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.46-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 abd0835179826ed8a75f373d86ae16bc6d81e85f911d85e1bbee0dea308650c9
MD5 500897872070fa1cda464f1721ed5d05
BLAKE2b-256 e9f1830bcb7158888d379bbf9c79a1f7b320a99bed5c01fa1551e4e22395f562

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.46-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 56f51d0f604d451031cae72abd21ac4ebba78b71bc6c2a7c8152af283cf7d6c9
MD5 749cdac8e9131e2c181c967d5049b9d6
BLAKE2b-256 f9765dccaf31baee140024ddb30c7a1abffc5a07f10d442ca31db8331d98b926

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.46-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 897690ebf4d470d16a47a0ba6f2b6098d2952f22b3a134dfdbb38471c154e3e9
MD5 6b4b5c85d2fcc396f0449769f57aa5fb
BLAKE2b-256 281a18557ff86129cc489657fbcd069b58e67e07b508d353d2b448ce0405a879

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.46-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 55e02dd995c4068434e8a047d648306d120d2837cbeb336e72699e81d005faf2
MD5 227eab1ab424deeebae58c9cac95c452
BLAKE2b-256 7ddbd8910dd141e9744fae086e52570a82195117df87e009116a079f2858f736

See more details on using hashes here.

Provenance

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