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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.19-cp313-cp313-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.19-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.19-cp312-cp312-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.19-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.19-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.19-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.19-cp311-cp311-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.19-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6b05e93e5025dd96fc711fd4a9c2d1d40c285ef3abb8e304e6a65f6979e4fa86
MD5 79d3210ad1d17870f2861c9c82ea4a7e
BLAKE2b-256 6600076b9e0eba59738d03063a7295e76bb3075d111469764b95a9b732e18b03

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.19-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3600829ef542cfcf42a1f4c2c2e2400d855406a94e745e64cb27971132f859b6
MD5 91c54fa189a0be969f558c92c611a625
BLAKE2b-256 a6454c5b29cb5d50467f670167d09365cc0a1c5e5fc01b6e948bac713d4ebd00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.19-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bef44f7fefe3fab3883d99ccbec2bf547e0de46f2662124e19ca98028ce5c4ab
MD5 a51b82c03205df37d0c7e6b8fad30f15
BLAKE2b-256 d628e0171364f807ae97349f2d282534bfdef285119055e20741e46a63ea2539

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.19-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f84d38576af6e8b3e8dc4233a56be1f9d72274e0d7c22ec634ae8532c710f601
MD5 44466d67888617b18f14d7b598fb1b63
BLAKE2b-256 43ecdaa56796c0864434fabe081ae831ee7a1c5d1dadf7be2cda6dbc4c583d27

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.19-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 32c1edcdfd955372a2a6c6b773f5934a3a9c8258a7e2852e6eb4b3f62dbe994c
MD5 289656ad1519976bc6b51709562ba32b
BLAKE2b-256 b34e6c7db731c853e427d00193fe0224c592a4ad7e5a02a3564690d6856986ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.19-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3eb8cce0dad42568c0ee1b5da7d082447f144cfec78919dc0ffe24b850bd3aa9
MD5 604e72f462436985e47269d56b4a7d7e
BLAKE2b-256 625de5e9f1c922cccac7addc0820058e7814a55820cdf166c1b8112b667d0033

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.19-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0efb2673b13d809997ac34ba1be2ae7e05320b55932140c0a6a21ab5e1eedd40
MD5 41d19a8ac5c852d05cf3c06cf016dd4d
BLAKE2b-256 93f910fe6e4f74d35f54b7931c00f5e5807569db8ef46975b0f04d87dd8294a9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.19-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b11de1ce0c00486f4d22699087e0ef92339e6cd448152fae2b44fefc4fcd315f
MD5 b0af708842938391f7ddedf4da903ef5
BLAKE2b-256 25678b09baeeb15387f63e1dae636f70ab1c269213c1f161e6a5e359ea39b188

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.19-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b9b0a1aa4afc5821ecafe16c22a9bd45f9107a50b37425f81632f82642f06803
MD5 b3a54c00bdb3a1a1e0537e3a0d17466d
BLAKE2b-256 943147bc9c23c5014ab813f15dc6f88a10a68afc5ca509faaefd70523679431e

See more details on using hashes here.

Provenance

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