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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.147-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.5.147-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.147-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.5.147-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.147-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.5.147-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.5.147-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0d968d38a07658b37085fbe71d6fb281e1866a1b754a106b07838d891244e299
MD5 e3fb095fb0c84cbe342ba2794a15fc3b
BLAKE2b-256 074573771f5f350ed8254bf4a8f8fe1aa05b9df3581fb4112dfdf35cff0e66c9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 55d71ac5dad1be038b1eceaf2c824fb32c943cf52cf43f2d27d675b75bb722ad
MD5 d151c89cf73ca9c9af59f68cf889025d
BLAKE2b-256 83f2563d9d5787ff5946331faf0d9fa7c88746993b6d3a731cfab549743c08bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3d4d22eb0d51d4fc7f0ccaa9229764a90b275dae2da5da0dac10a346b74f6cf2
MD5 418b0daaeb66dc13856160bb86950e7a
BLAKE2b-256 f0108582685f07e8e93e9aae511a5afb3e5e99d6595f0a616fe0f5aaf4085fcd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 013d64d3823d5f02154938acad7718b7700c027c397e2a81d5e67abd242f51f7
MD5 c2176956d41b8cff9c218206b1074018
BLAKE2b-256 e7bc6833294067be0616b24fff61896350313b4e448d350108cf20915c0bf39c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 184bbfa441c59ff87c009b614f8502b14927321f87ea589ad29306fc78e69623
MD5 f857cd14c7b8f2e1a7ae5bc33c8b342c
BLAKE2b-256 09e7bf5341ca837386bd33496d24e45c1efedd0a537504824cde7e89ac77584b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b62fc74f1816e9a63688d2fec6c47bb08953e901f0cbd90e3fe8440183c0711a
MD5 e4d30a82e2d014e2775db72e460aad15
BLAKE2b-256 2e530d98ab90de92a0bac1383c78e7e0af60e2780b466b75c2aaa89aaa8bf3c6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ec6df71560ed157468024ad62b1b2b1260343038b2c4cc75a61229e8e93de9a5
MD5 13b5ed7f6de7eaedb8a7998d16a20ae3
BLAKE2b-256 87b26be22a16356dc226ad9e7fc4bc97c048948f3bc10cafa23f98c27703a570

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3e5e258383c613b2b7c0495ca594b4bf2c65a90e8c5dfda389fbe60c0b463904
MD5 f4e3b819a52da7c03aebf971390926c4
BLAKE2b-256 707866d9ce14cb64a73bd268c78cf3e53b38332f679e451e0ea234abb369e77c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1fb351f994ccf82184708d7934a12f0f51d43c570f5c059b1fd5aa1b8856179f
MD5 7f92a0229849aeaae3b49561e7abb29c
BLAKE2b-256 8e290ca03d9e3556766d7805d05f2193b267efa96ce34c7cf1dfcc95bff33c30

See more details on using hashes here.

Provenance

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