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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.11-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.11-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.11-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.11-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.11-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.11-cp311-cp311-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.11-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 adc24ccb86323cb3609b53ecaf70327242950119633466a49ffa14b1f920cbea
MD5 e1cb48a1425ae404a932b49487306ad1
BLAKE2b-256 4d3076568d991d46af484dc62ed6d7dbd663aaa5186fd6ebb5681f830186c786

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.11-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 424f3f6f3ea7d8590c9fa23c1d11f0ed3cee6d68abfd8a84c7f50c24726c103d
MD5 b24aef254d58d2d04a3b0178534e6405
BLAKE2b-256 f60c000dc83f8d713c4d2e9627e5f5d21a15bf11d71b9ffcca7478c70c59af3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.11-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1aef5d2e3fc3aa42e5e89731ea9c1368ba9a5b4bd295cb4e020bcfd13106873e
MD5 d2abc820a120dd92ba254f6452869fdd
BLAKE2b-256 15b9f65b501650b83c988f8cd42c8a8bbb92637f29a0d99e1a215fa871d74bd9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1ee4df923005dde3e933a60e2680136ed2c1bf370aa3234b1127571201f533a0
MD5 c9db47ab26f2f5b99ac6d5425e5dd6b8
BLAKE2b-256 967908a65ce02203cd980604f59546551787b921f49df1b0899ba90dd96ee99e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.11-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 fc4a371e0bcf66f523181ebb22fc0e6c22b5d52f8192c2283a6e4eeca51731de
MD5 4a33eecb7fb4c5591e7c3fd238814de4
BLAKE2b-256 818721f0a48f32677d3c5ca51e04c96157312809675f3180bd5d2d5b4c852a04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.11-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1ff8ea25f36b92b04db6e5dc787b0cdfeaa12694108bf058e9a2ac9c1cf5635f
MD5 85885b1586d4d2b958aab9a365972ce3
BLAKE2b-256 b993076894ea2359ffc9c97ab05bedb773fa9df0ca157991c1cacff4dfa15c2c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.11-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 668c1fc74b5ba4e770282919b8ba424709507154aa17ac819859a1122ec6f508
MD5 522c74ad630db68384b727f5982e40ed
BLAKE2b-256 571267e606bc316288dac95e4328ffb4f643d2d2bb51f443e949d926b43d2fd7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.11-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b915242011f74955bf1a4f732f0ca7cb69a647ec77b89bade0ee5e5841c0b7f5
MD5 c15d86ba86a4eddea6afd4be4c35ad23
BLAKE2b-256 eeea1e06e64ba03c7b658a04e912ac06cf98a24760f451fd09f0b347882c11c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.11-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 661060168019ef5d77980a19e9cc81de923e8de31c663dfeb2c7050d48f1848f
MD5 2c04f21e5985838bf947629eaf6afdac
BLAKE2b-256 0212d3cdd384fa495c33d6d5d8787e445c2cfaea6ff56e315fdeaccace4657f0

See more details on using hashes here.

Provenance

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