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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.70-cp313-cp313-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.70-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.70-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.70-cp312-cp312-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.70-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.70-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.70-cp311-cp311-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.70-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.70-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d292799bf8b1fad7513959e163b5dc53f944ee13465d5a9fb0f3401a547a7a9d
MD5 6576262a8ecdce002198dd55e7155e8d
BLAKE2b-256 9d101271fbb733235b05f9e8177fd4557eda970acc9fe33c0749129a57e7c022

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.70-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 530b02f4a47fd17ccb42fe451d57a3f3a4ac63fe58bdc83d3e4e31ccaf70e67f
MD5 1a402b000381dc8bbb4749c24970fd97
BLAKE2b-256 d71ca4031e3307d6f9a7ed7496201862209ef96961eadc8adbeabb98c5e9dcc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.70-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7f4037c59809abe6766a23d8a1d5058cfd4f15df12a25a2e1e71752592eeb5c3
MD5 878880af34201257ff573d801decc97a
BLAKE2b-256 e9f8a021f25106a60d1c9ae0e7ea961fc62d7aa16f5e0563c5835da0ccdeb13e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.70-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a0023913bb9d32e8f945c5ccfa255795f2fa736e6e32150082bcd871702c9482
MD5 31cb09b3957cb52376ff99b93ee3e0c9
BLAKE2b-256 fe02e0560776ca6faee94786fbaa5777c58b524c76bf6ae8323cc7bb0f94a99e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.70-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 7e0c71cbc22143c501246194a444d967fa8ea24fc4d996bbd524d39be82e5ce8
MD5 fe9f0d16d6148d73e6c88dcaaeca1cac
BLAKE2b-256 ebd04e778921ca15ec62c2a4359973e7167dd0290ac26c9b9a4603cdd64286d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.70-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7430f26394250a4974e761a15bd6e17307cca81e83400d03f8a715e0844a5647
MD5 558625c27c7641b4bd1a7472d379986a
BLAKE2b-256 ebf3ab28a11388c171fcb989f27a0b3ef197d44a4f71f61d895d9869b8a29daf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.70-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f6c932e1880a4bb69124b1fb4ce903faf07e0a3d3ce1072c7e3f790d6814e34e
MD5 18e82db9b3a7b843271763bdf6caf2cb
BLAKE2b-256 7c2df1c8fe3cd10149354dcb174963bbb27cd8a4eaada2ce650415d45f200e66

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.70-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ba841261b92bf2997d72637b52473079dc86d50913de83a4c11f016fe19c6935
MD5 e595df2a6ee4d45b228a16d4fb2ca45e
BLAKE2b-256 7f7857c16c2a50e10855e9bbfceb5d923f145e10186a4e7eacf478322633de20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.70-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2af010559fcbfa71066d53548bb7e8869113c1f305a747191973533b3ced3f70
MD5 4dbdc62f1d8f4c6e53bd2591a5eef66f
BLAKE2b-256 90ba15326e068e6799902cfd687be91f06596a2b4bee7b183e5b258515335ce2

See more details on using hashes here.

Provenance

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