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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.9-cp313-cp313-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.9-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.9-cp312-cp312-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.9-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.9-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.9-cp311-cp311-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.9-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 74f6ad79553ccce56285d5f1c66729466c3e439b678ecb0e801346657227d71e
MD5 d6ea368b2c341758a0b99aca0cf2b041
BLAKE2b-256 1fc25db6805dae07b7c48a92e9aed3641366aa0309c9eaafcf9cedf228de864d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.9-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 48d713b6ba45de25e9caebec2e251d5912c4fb3e97e7e4ef2e47445f84c67b5a
MD5 7aa5ccee9c6ac72b7f5a8c2985bb48cb
BLAKE2b-256 3393dba8df64dd70a955e9710eba680c943e071387494ebbd4533f6d3f618dc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.9-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 de72fadc6ebd84c67a41e9c0f34d111c79e07d38c29bcc2ad23d8604220099cd
MD5 47055acb93e3b1ea819a6f8a8fc1c102
BLAKE2b-256 58596b5e3759aa31402872560df98eed91a2faceaed51205217a955c0bb2667d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7485b42aa275504bc43116f28bd29f7fa7642c7e95f913fb3e6fb908e2de29f0
MD5 d05a7a805dab8b411006c742d243167e
BLAKE2b-256 3bfab6bbc0f324c1db169d0e0c972082d991231091af6c9311f202c97d65c038

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.9-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c85ccdaccb81260d782b5a794d63f4f8f6eb1162c4785811518687070110b7ff
MD5 3a12ecd1ad4dd8e0fe16d09e78b70e34
BLAKE2b-256 724c21f8a56cc2b529550eae3a8be273c04839497bd09f12434a3a654f5b08cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.9-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6bea13199df2a2a999d0023fb41eb6680fde2296223be4ea206859db9c9f88db
MD5 93b8a3f126959fed6f53a085e11811da
BLAKE2b-256 aafbafef8ad6b6579825de3015faf1c70140c9cb032c8b57e1eb955e05fe3070

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.9-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bbaea8f548b7795d1e3030024d76672436a9b9c739cbb8133b76cf9936881021
MD5 a354b3ca42920040b34fb5568a59d5fe
BLAKE2b-256 cc2c0d3d5f02b7a9315f24f841ff76c5287713cb6b0afa07dc0f519722356122

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.9-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5513c8c44d4e616b0c791525e2b7be890e2b9fc41a9bc242e78dc86d0e4f2872
MD5 01b0f0fba8ef1955f08f73b713bcedaf
BLAKE2b-256 654defaecabcb36108f2c8c10d96e555c1cb7b9739ab2bcfe9999f37ce28e935

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.9-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2826f9acf28f06206519830d6b324fcb3b3a0844430a4566d019131ab7bfacc7
MD5 70cb1af47e863db5f077e2d24c77c703
BLAKE2b-256 07458c121affab95bb401911be9f5cb233c87c3cd3627515463a5c75a89fd88c

See more details on using hashes here.

Provenance

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