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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.74-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.74-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.74-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.74-cp312-cp312-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.74-cp311-cp311-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.74-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.74-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9d9c95f96290757f1486026a54b6f4a092133975d7bf5dee1a805350602dd41b
MD5 47cec370825147e652c7102526c3d5d6
BLAKE2b-256 dea06290e0fae3cf5d96225517363942eb557c044e8825f2b8802302ec0ddf30

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.74-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ed29e538a5408b6b01b64dad0f606f9b502b40cadfdfe712edd33f78082cf009
MD5 22ad5748ca0b5a25707e552c14f0175c
BLAKE2b-256 73bb06a9cbdfe53cb8fc0f35bd928128567a15f9f23c12fe66bbcfcea0185976

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.74-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7a4d903b683b072767e0cc02f38adfebee6218fa526e7f38e843eb1334868ecb
MD5 8181dadd076f9b1e4bb0d1251b6caadc
BLAKE2b-256 172531c54d24aeeb75603a54630d8e9711f7cabb891bb5f1fc917f4214200d69

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.74-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 53c9599aa2490cfe589d64690be05d9f155a567d78294d45889d927ed57f2df4
MD5 e7ef2f4276250b1ee29feec8dc6a404d
BLAKE2b-256 b9ea122ba8584e973893c647357abc716a10a0b641651f2f7a137ce1c7e1ff44

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.74-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 06ec7c3800429685bcc255bca7c3954100471f7fa8b6a5f235f4cacd3e5e4e84
MD5 a5515df2770620bf4f19936eb9ffdada
BLAKE2b-256 9cadbe4780071c35d18d96f4053ec96cc66f3e00664190b3a6c5eb5f78801e0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.74-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c23581c7913a2c1eb5c384344764a90e22509412a70e10d606ba313e0dc3ec08
MD5 ec637b6da31d4e5d916eb34e2177ce52
BLAKE2b-256 620a6fc9250db07213c1027936bee8171039574b9755a0ebd364c1d0e379998c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.74-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 524d56c17f919dfb903905d21a77a3ffeb26f84878631a983bbd4e18d4298506
MD5 e0d603103abb125d950033cd7208a2c9
BLAKE2b-256 29052dbf1357c24ce525c6d86c663703ea57b2cb514b7f2191bd7764cd04ae6d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.74-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b10835a7c1304645ba138cc13cc402c70a11c0121924c80bf1f57bd719fcb318
MD5 d65a624104d34d70f302a0a8191dcf4e
BLAKE2b-256 21951ab55947ce3c802006f88c3da4cb1dd2ae54c150fe4dfa90fa5ee08e4996

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.74-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3ac976fd0b0ee113c1337be4f75d40cfeea045dfd222468f1d543a5cca59c6d1
MD5 29132a770eabf06d7cca9a3b1f5f0195
BLAKE2b-256 994182cd3f36e086604c9f2c1623b61afa99ddc5e5e18b3eece672b9bbf8100a

See more details on using hashes here.

Provenance

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