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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.160-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.160-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.5.160-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 17393dff9f903af9d83027a625fd054ff62665a091cab8cb27131ca98151093b
MD5 71849eae718a6e1d4a446c69232e4658
BLAKE2b-256 868ec029ea97f56a707272bdc10a8def38cc01ecaf640fb3146fd75d6893a79a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 96f941f5ea58fdcb5683b15ef405f5d7c4b3822112d0aa3252cddd311ab85edc
MD5 89610c5430986adf1ec66afc63570fdc
BLAKE2b-256 1243bea227a653872519533c1cdda66c6e1208300162a80b45125e90a3c1ee66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5b4034fbbb390424a4c44f84c76ba9b16d65ee0e902a198dd3a5c25a2fb436ad
MD5 31e7c02c89750135e81986513ee399ee
BLAKE2b-256 1744556ebfe082f0280237caba4133e1f5c7f348a3ec6752a8a726fd57ed0413

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e74274ff43a5fd3f5aaee1e451e1fbb4a0d57ac689923332e750885102d8f88b
MD5 d1a253d9b89b53ae703926dd6c1cbfbc
BLAKE2b-256 b9f7488f80740d7c343ba3509361d6ef6fb7c8f17680db4ae9d3babb0708f708

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 97a6005b295bbc4d17f289092581498a8dea92446f45164185450886ec88f5cb
MD5 b9eb08348f34b64ec2617cad33e11c81
BLAKE2b-256 b235bac74d61fb0f2a6460cbe2088f47d57b1b102c482cb1f52f4c9fca5a4237

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 02f6f1192044251eb41f7f1606677e09fb77c28c276c4825bfa36f13c388ecc9
MD5 cdcd59c1ffd74aee6f05e40ca96d5b50
BLAKE2b-256 b0e545b780fe34030d13f919461e7b65b40381f1790b56a2855e54c7a78eb5aa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cbb3fd06f94ceb47825448af1e6356b3442e11797cc07e80c92d3f481d3f6630
MD5 5fed1c67140e40dd39fcdd49e8a2d772
BLAKE2b-256 10b6dcf066d7778c24f35cf9cdb4a3da6e7920cf43bec71790fd32205cc030a9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 084a86977d8cf76b888f9f374b716800c39b2773925e6e6711dd38fc52fa96df
MD5 bcbf987a22d585c06d48dc96a296c6df
BLAKE2b-256 6bf6899199464180bdf67ae90ac6f791bdbfd3df56117fb50d5d6787b905b6c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.160-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 109c561820e37e22a2232e9cf90cbdf7a900b6b6deda4ecc1cb49e3af5077b4e
MD5 15f2512e840ba3b99113a564d38eb083
BLAKE2b-256 cedddcec143f75cb1abb401d184a508b5e1dd84d79902bdb170e9920c1d089a1

See more details on using hashes here.

Provenance

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