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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.55-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.55-cp313-cp313-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.55-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.55-cp312-cp312-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.55-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.55-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.55-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.55-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1d96f3329c8fcab67fc19dbd4e53b58c3275a6f60e2c667a413d1533768ae7c8
MD5 53175acf1dbe62bc79f290d731b17a68
BLAKE2b-256 fc310daa668ff22ce62294c88e435c96a8bbed77aaeaf8754d9ce0c876ccfbb7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.55-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0440894255393e427af90968581494d42e4ec1f69e43b61777e4e89be36000fc
MD5 d7b5e17f29a8c5ff0b7229b5d3bcfdab
BLAKE2b-256 63a010b0ffad1e91c6f72310f503d6c67de24b65c050e098b3e598475f2f8963

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.55-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c14eb92601e8f2db6a139dfb4907805a64e37c03cdfed232c0c27f3b7eedd8f4
MD5 f0fae86babf21e3edc80030d1d8b7e39
BLAKE2b-256 b31593517aba77db751c2d986c21dd8cb373804905628fba5b0eb2a3fa26e0d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.55-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bf417f258abaf5d7bb73ba57404b850ff0c3b03c713e611e80a6e7794d63e9a2
MD5 b551d5f8b1a36ac80aa12af0e4ec7113
BLAKE2b-256 f527ac48139d416abd04277de8199ecf43f3ac7d16201db306bcb59eac1c34a4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.55-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e266b53bcd13546421588cbceeaf066dc9df83e152c38cb0004bbc2e7f2d8129
MD5 17999a865b8ad5d429fd5f2056a81e1d
BLAKE2b-256 938b7a68963b23d986b7f4341200feec7c5b52f40e2ba7eff700876d9cca2af4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.55-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 62a7fc5a0c75feac468920977c6560ab54a01e680ef9ed0209e7b210200a86c6
MD5 2b585c7de09a20dc08c4f842b4fcc072
BLAKE2b-256 8c31e73119f992a006bd5cc864712c1fcc0eba8a96f0a2d1a3be85379369ea5a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.55-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b2948c812a976e46a3ff9bad805987bb313d6a4d6ff2b264914d3e1d4a18ee86
MD5 6074be81c154fb3959dc6ad917fae4a7
BLAKE2b-256 05c173e0be5666c4bdb7e5163d8985917fabc8963177b68325a9a2d10a32aab1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.55-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2266db96aa0f5a50392c0cc8c300accf157d1445ec2a1890427c00c6d8e35537
MD5 6744cb0a24f0f1f7141caea2882e0b9a
BLAKE2b-256 6f7ce31381c6576e81bb73c76d815af0ac70f5700654867b125df46579a3efa8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.55-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d1d319918125a56472cbbbb61189d5ea7b58a62eb8289fc852268f8fb99854aa
MD5 b540fdd389e20edec8b57d421ddbd9c7
BLAKE2b-256 99c8f7747fab1ce3ec838ab25070fd31146c335ab0c1e77dba6edf28fef8ff47

See more details on using hashes here.

Provenance

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