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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.23-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.23-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.23-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.23-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.23-cp311-cp311-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.23-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.23-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.23-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7fadede6b45a0e9e10a4b21549d88085bec75ffc72a41e123097a6cd4297759c
MD5 88caa0b5f9379dc856fbb43f7d5e2fa6
BLAKE2b-256 3eb8ed4c59abe5648d69c23180a7fb4f94dd5c94cc31310203511c0f024a397a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.23-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 04fdb3ce5e381d2889ac459ed28dc5b924c30286ccfe8e082af1b57332b5e6b6
MD5 7469136219d2da5d50f1b6689af6b1b2
BLAKE2b-256 c106fae723b2a1c11c703abf72b259872ebb1bb86306711b10d034676fe45274

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.23-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 48f124b59e1bac23c1f7b0473fdc17bd44d98eda064b4720f08d13cfdff5c299
MD5 01fa8d57b8fb7e931597677cc7812fde
BLAKE2b-256 6f63dc8a132df8ed45e1fa79e3231c48aa9cc8384227e487811723a188f17752

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.23-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c92f4eee62c05650b8112015500ffe7cb07cf3acc93b02815c16c25adf4e9e82
MD5 6d81853c1f8624a0e4ef3a71062e902b
BLAKE2b-256 ec3eefbe1ada3688a100458f80a2920a306e7349a39be65e62b279d31ee926ff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.23-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b036f5ebd695ce87db244ede5c030998feb90102350066dad2e8c1ce72828499
MD5 65917fbc4b3960d65a5336629b75f101
BLAKE2b-256 bd695c3054a95db3ea913c5703cf8ae20fc7b08ac3b83d09af341ad77b103356

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.23-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 948fa8b9b4ac02187f01db5ba9e702b5ee80dc3c1b4ce0fc16e3473fa20704b8
MD5 e03d99bd1e38e9052b9606704815bd54
BLAKE2b-256 0f710b66f736de297f6dd06fa9fad56806a90a72c40b7aa0d7f95353cc267ebe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.23-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 33b9fab4bdfa95730fe1688f99e6c6a3792b3421e0df83d0ba389758c67b57d7
MD5 67b1f6dd61a1fa535ebd679485ddbb27
BLAKE2b-256 a19ef119b00b3997b1e352b3ab82c5b4e321ae53894e8ddf625b46d9a9c8e624

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.23-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 015240e30545feb6ced481edb269e554a4d2f3b692ad2f2d645c4fea295e944a
MD5 7e23421cb861cba32aca00ed5e6b13bf
BLAKE2b-256 93bb5883f94cce3c59527b2671c150db74867e4755a4cbbd8e4d1c6c520b0cfe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.23-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f7f82a088a6fab44bd95783723e87d2e2f301118434db4a730387bb74d1172ac
MD5 8252d712acbf0daf6aeadc8625bb0006
BLAKE2b-256 2bf8971ba9acbeddf6c05d17199f16758b8ca2dbbea97f44643404a74d1aefdb

See more details on using hashes here.

Provenance

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