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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.120-cp313-cp313-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.120-cp313-cp313-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.120-cp312-cp312-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.120-cp312-cp312-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.120-cp312-cp312-macosx_13_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.120-cp311-cp311-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.120-cp311-cp311-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.120-cp311-cp311-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.120-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 11bd7a3df90d36aab9fd6499179486fc82ecfc14d9e8ed00bef52d7571ce864f
MD5 7a8cbfb5252c634d441cd683a2436866
BLAKE2b-256 e1108059a91d3cdb1b852e9fbe28845c96e64d7c9d545f0d85af6c2ab16e72aa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.120-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 70ea5aff32adda1b6276c0075216b07a4d292b66ae2697faf69d974fea789256
MD5 d1b7850446faa8d5384d5444b93872ff
BLAKE2b-256 cdb9b17c23c237616259fc2a30f6b7c9e757f5e25ba334c930242e7e3262b089

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.120-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b22f054934283ca2d09c7ff551f5c6b277ebfb1f1f6334fd5cb09fd35096acf6
MD5 df9688fb95b8803b8be7031f29cb451c
BLAKE2b-256 0e2275c595fb9a1c4bb1c22382062f8f832edf43e2373bc3f681e28c51bfd804

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.120-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 81c2eb80618a7ba87964c28eb42ed57e74ba0c04f5cd2c2dbdd7d0841361ad54
MD5 ca1534d88deb08972f1329a679df4ddd
BLAKE2b-256 cf485607dc07a4f638f37bca112168558f5a5ddf415676b3c574d3f1e459827a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.120-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0108e27eaee53d4650db28709d267d2271fab1503d2b26649cb086dd343a7a46
MD5 e14996c03890e4193287da7c18e798be
BLAKE2b-256 0e48554e317967b47c9aa7ed5847f0290211676345dbdd89b1a6f25d985f3017

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.120-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 628baa33dd3b3a112a0d091bfb2870d635189db08332e0519d2c7388dad60b34
MD5 957b542e00d7bcf5c283d64579f2410f
BLAKE2b-256 cbed194336429b503c1bf78b2de048298ae42dd0810584c0bb2a0a47e3131d48

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.120-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0b293472327fe44c12a8fa7dce7ca85e42048ef2918f42bd4f9b3dc66a683d0b
MD5 9ad4fbfe1c0ab43e86f3483c933e1e11
BLAKE2b-256 1c42cd1abd3b02f9f37eb3929a734f2e7071e62ccab2d753f6016076f013ce4d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.120-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 371af50ce373dc1acc486fc5ed2bd5c9a7d83ad5d2539cd28bc21dc894e1f41e
MD5 32aa00414b45292cb8daee8373837035
BLAKE2b-256 d49fa15dcf8017eb0fbac38bb10cdd6ca5709e3b1af65fc71b4f84551f9d05e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.120-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5fd573acc4d5fb560922aaf89b09594392c7a4af905d10bc13e42c5fca882d2b
MD5 92caaf79f1e179546fc49cab289c69a2
BLAKE2b-256 a9767d116ac281333d4535cb96a7bae1ccef05ce2a7f7cafd7b6451ef32ddd50

See more details on using hashes here.

Provenance

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