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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.25-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.25-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.25-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.25-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e577f1bcaa03b5114991574567c40ca8fc64eb496182062519fb7d4952fa19c8
MD5 e9dc9f0d975c2ed53bc884518adc7e5d
BLAKE2b-256 e4d654e944913695a35361150b2321f4ce37936cad657b6ff04621c3c61f498c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.25-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a0c15e9cab519c56c1e7cb15380dddcca53b1c554ab17a296ed8b72ccf12990b
MD5 c3898a0aee98e8008e8719d9879ddf72
BLAKE2b-256 43e1e716d2d55621cf6a6145a806cac7a0facf21cb7304d8ef8ba54883ceaaae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.25-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 68b59e44686247f99f0751b7a0b4bcdced554a771a508889ab34d71387391029
MD5 e207ff15cc4157a6d5d98f82f8afe255
BLAKE2b-256 3d252d4c7fe23b1411bd65e1b6d74053aa3e1b592e6d71978868f5d4fb0800cf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.25-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5091f07d1adaf782e77f96d26d15d62a93b1cd168486e9805fe9962cea1ab893
MD5 156f40123669b760b8d9dc5a43f2a556
BLAKE2b-256 d21ccee379ad83c391e8abeb0676e18194e3b4403dfe9f47ebf424d7c75fa093

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.25-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 be49bd0485d12992699aa82ca0c8c69752faf2a46b9436af95c7025f19dfe6a2
MD5 23b44e1b7c0b156789f2a00cccdf231c
BLAKE2b-256 0ed45e3b45990753b8edba22493dead6a2ebab864fa1f2e5d3753b313f8798e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.25-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 cdce309b8ba34afbbf897e62e9a6d78483dfd88dd9fbff08f1cf85b3e4b9c6d6
MD5 0804c0878dad3630f328dd1d10de516e
BLAKE2b-256 e815a6725f29716213a5bc11406f8b68927a916e5bd113ca000947624757af66

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.25-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6f62cc1a2773bfd133c1d0f33852e5d902b9a54649ab292dff5006af7906674c
MD5 d26ec56d975d1b530db6d242a41aca60
BLAKE2b-256 1179d2dc3a5fe3696609f94249e147e608c00698f90fd59ff9523bffbeb0c037

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.25-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e6e6e2b73333c18f03598f95046e186a17a355520dca1937573fdc80d51fc8e3
MD5 0740850b979e4d349f551f8761061cc1
BLAKE2b-256 95462c2e6121cfbec9960877d5a2270ba0b90ba70fbdcbebcfa350972d7e2f45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.25-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 692184530c5b88df7b93d1bec08c7cf42725137337139a849262755f4759022d
MD5 e7aff50c916b826158cdb29e43403d22
BLAKE2b-256 7673dcf4651bd70ab9de584f6df337aa933fd6676d14c38ba6b6539878d342a1

See more details on using hashes here.

Provenance

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