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

This version

0.6.7

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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.7-cp313-cp313-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.7-cp312-cp312-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.7-cp312-cp312-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.7-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.7-cp311-cp311-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.7-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.6.7-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d9011edf4e55b33395ee1cf728c255d3a6e43a1056b285f63aa95499efaf8a3d
MD5 2ce801739840491d3c7ab0afd4906dfd
BLAKE2b-256 df2f7ad992f19634b368b40839ef3ea43faba2aa3a1249e369d71bf3508040a3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.7-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c185916c7a51104aa46c55c75ae765420a77d31229a941b439a5b18edd3dac05
MD5 9bea0b213eb1050129f5d552d08b1678
BLAKE2b-256 64733cc3f6fca1da2cb012bf6446ac5f6a3edbc371dc9163eb47ea0176b5e54d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.7-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6d998c7bf985a75fb7614baddecb1db5923a17afef480b49b69dcce517509849
MD5 e52810ed08b4e478e39d972a104670bd
BLAKE2b-256 c0a30cf06f48c693038fc6feb3d91c6b4a99fd7339f5063f5ac3a7d31e376716

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5050cf1de91686171273cbf5240180dd928af18d952d063af258d2339c6b2f0f
MD5 85e325b13cb75033495849cbaf2b5140
BLAKE2b-256 4b8dee5a9d5c8f8bbd6779fde6aa407a77289acf1e54b48097d5cebaa45c40ca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.7-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 985d0bc47a282bf4a7d3e37d8bfda14268f4dc1318c6bca8d1be0e7cdc2db814
MD5 b9d042048f8b0e3d602df26b668a938b
BLAKE2b-256 33a100e7d43b8cd7d6b0401f4950ec41239181714b6d76a2c70b1cdb23d23663

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.7-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ec6a41e347341e2b2019884e2a34dbe0a106c76d1a1366d09d59fbfa7ae80bcd
MD5 46d8ef41b4e0f11fdc4399ef994ed862
BLAKE2b-256 2442b8622eaf40f998806a712f7dcca8c3076f3dc29f98f8a313d228ca7c52aa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4bddd66133cdeca693be15c1c18781879b98941f28d70bd7c0eaf69f8b42fdb2
MD5 ead9ee9f899e7cf8eea98a23577b05e8
BLAKE2b-256 eb046492f957297549a2c93ce29069b00fed88af8b26c8c680a9ab32297e57fb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.7-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 858a28c64483df33e12c055b40d176b2e5b36a708bb1b81f0987878e015b4313
MD5 58a89f5c2777a0419f17d23027f04822
BLAKE2b-256 b39f40246362d40aa40b6e0d0e3084aee3becefc94eb5815fd71d94886f07ec1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.7-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8d34b10f4779ab6d65afd8a7513377e02e22f4f4a99a3dac9d5b0392a7f81653
MD5 00296afcef38b9bd5544477637f2aee3
BLAKE2b-256 bbcbadade36f27a301caab80729515a99a6c283b8ab5c95699bbcd07d4616b64

See more details on using hashes here.

Provenance

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