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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.49-cp313-cp313-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.49-cp312-cp312-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.49-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.49-cp311-cp311-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.49-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.49-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.49-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a67e3f59fe2d28440c610e9e2029cacf6a6836749155ead1d94a94d8eca4d7d1
MD5 46ba3551209b4fbd4b0538ad279e97ac
BLAKE2b-256 4f43438d97b2d31fb06625455ef0d51b78bce75e87dcbee9a36100707ce3211a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.49-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9e087ac5d4ac6a10f7bde86d99037ccc0435bbdc32b02f1158eed19a67b94833
MD5 ad9717580316f63e9184d334c7b6d46f
BLAKE2b-256 de9c7369df59162c55a4f4c0782e5d886a1f06524870b504bd38df43caa8afa9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.49-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b86089a25c0804f5f0dfe24c4db7b6382122e654b380ed52d5ff9960f30d75f3
MD5 a5ff32623f066a4818eaff891b6b73bd
BLAKE2b-256 da88eb5c1fa593b5c99198d0acda8e7f3106d218355d62ad3912eda233cd123b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.49-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ab581e3fac453a91bd8b704be0c196b492fa390a1876f8f3fcfc5138aef47a9e
MD5 8d08ba9337f38ea1cc7777bc4b29e0eb
BLAKE2b-256 3f6e0c2555e1f640292b87c8c22b8574e906ddea574a806cbcec01f98728591d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.49-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 81c5b2013949e2edc97339ad33e34f9464d049ec71ae71a0879ff11ccc83f84c
MD5 6f2c0f585564b1f86e7b605e3ab17c0b
BLAKE2b-256 b4c98f80938eb00bd347369cc18659fef37a70bdf120a990fe6fcf19d75f44cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.49-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f716ccb7cf53969b2427372c16d10f98af392981588d4d65a6e7e6fd2185c743
MD5 19adcbd9b56df3bf0b4ce2f73c988604
BLAKE2b-256 e643ba4507b7ac910f76030ac0ffbfbcbd291e7db2c3199c995f6c4fb170e298

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.49-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5ed8cd5e7694917eed8c9917b49f93194fbdbb89eada2d203c54fdb4adb1a1c7
MD5 70269a21028debb2ec7e5b85c8acb52b
BLAKE2b-256 19201628afbb33328c619f010c586c10d160309210629bc2142b678646b442ea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.49-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 fde896d81ccb7c228480ce7b9844d79cc63b2528473fd0b0cca6fd6d4103de93
MD5 654688f3e73180f322fee8bc3cc76081
BLAKE2b-256 e1d28859bc904ea86871fb6b0e5d0daa5cca29fa3a23f199813a15c1d4eceea2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.49-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f6ca74d848777e27318d43e29b16015ade709f21e7800745ca7feee50d66dc58
MD5 b8f91267594926a751a94e1417143681
BLAKE2b-256 6759500c31f38d72d1c719553e2f449d3293cdcb757c02e5e31293ca3ff73f84

See more details on using hashes here.

Provenance

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