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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.1-cp313-cp313-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.1-cp313-cp313-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.1-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.1-cp312-cp312-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.1-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.1-cp311-cp311-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.1-cp311-cp311-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.1-cp311-cp311-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e4486dedb4565770b0e4abd9fbec1ed4c8ebe2875241b751ba170cddc0770b24
MD5 22016facfa6f78ac536f8a7fe6d34f62
BLAKE2b-256 9cb587c0dc5ebb1af926cc3725701174f65a05421b79655e5dcaa4558a14ec1e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 fea1d79ee37f7abc2f302caf57259e110bf8c2abd05bbcf13c04fa4c44879991
MD5 3beb658e5687f85dc1e3cfe8349e6534
BLAKE2b-256 3c6ee29708472c9e0e6e781c125b91a07d6cfec84d06bab055f61b6611309995

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 333db697f4580416fee0da9e79e2c7a8f429395c977e55c575d476a2df2dd155
MD5 856aa7b2dca6392a031ed32fdddc5ce2
BLAKE2b-256 37eb4c1d1f044a9bf617a6be6892c49c4a63b5377df3c1b095b86acd28c8f8b4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bb5c362dd48227bbf50df885d82cce2c40cf5358872053cf484019e46287471a
MD5 e064d7a0441c5731c7d0a38d575012f2
BLAKE2b-256 08295d4a4499ebb3275d0749788c6c91518c9ed049fe872abbeab3cdfd35090f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 08b3593006fceab7fe65dbe41c3deedac0fade6af68fdd6b45a5fe7db7cb1366
MD5 36f1efec5de8bc373e371816b963d279
BLAKE2b-256 322a41e4edb2b6149823a78306836eccc5b4931d35c8f7fefa7242a3ab2247f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f7847748fd7caaeb8fc985a0b2832cf743df868fff51f8e180c02822d5d3a06c
MD5 d0c2d3dc73174f48d0d9a3b36842e178
BLAKE2b-256 a88fde8b9f67c14f96fc1ada76bd0cb84d92135c200409cdc0fd7e3091fd39df

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7e7414614bfe654c3b7d637282a5b475bd58e7b04d8159edff2d6232218c2272
MD5 0fca64f4e4a14b122ae0b603624be0e8
BLAKE2b-256 cd76fe03aa6312fe5e5205f5e785fa62389b584bd9137d2a96575439ae69173e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 520658c3891d2d89e250292c43b2ec84bd8672fff68e239610f75943b9561c16
MD5 79f326753f1e32ec4654dfde75bb54fb
BLAKE2b-256 3e7bac637e8ca314b4d95b6e09e5d1b6d8e34fb570dbe8896674723e3060b762

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f156ec4031cbde4efea7925a5fac0c08621b54d804e2a26e60647d67ac45d473
MD5 be0bf7cddfbf8a778c942e4d810b5a02
BLAKE2b-256 d113db2415006b516ca242394c0e30b7f6c661d36bdfae6a20c7cab1b829a29e

See more details on using hashes here.

Provenance

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