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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.147.post2-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.147.post2-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.147.post2-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.147.post2-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 37b9aa6ebb014a7188acd101a30b568dbf16c993187ee98dc5b1fc8a4198fed2
MD5 6d468d906f6c80dce0ea6e9c17abb1c0
BLAKE2b-256 c9d74a23abfb252e088a8707f835a6721f9c67077f97bbbd31d074d8bf7e9097

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post2-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8ac229dc3a3dc47de681b1e5fd46ace8df3517aa91635ea93c90a51c2273fced
MD5 af50884cca5ccadd99e4beec60c49141
BLAKE2b-256 c3b84984e37c583782d3d678f46c02626a796dac05b22ada25647ca2744f7af6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post2-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 64d54966f5c8cefc5a52f1acbe474f9437c000706dad132a73aacc72f4719b32
MD5 a16bfa0ad64b154e6376318f9f79bd31
BLAKE2b-256 9d7b486924e7f8c21f18abf863be22c594081c31335a47a6649da4cefb68d322

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b14134d83ce856792da89adfe3d15c35d9a545648c8c781c5d5c6227e3539eb4
MD5 d86b87658406dcabc828d866cca0ae73
BLAKE2b-256 204048b3d6615aa82e93422e84a6f4965cc525c95e47ee5f7a76ba9353058a9a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post2-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 247956f14a4b986780d9f514a02a8ee98fb2febc59f1f72fb895cb0a840ef5e3
MD5 606c25771b9df03b78f4ed4c7a110ed3
BLAKE2b-256 25380e4d47e46a66d4683261258691ef14d5c37af63fb66782525929c85b8a84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post2-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6d841c8838ab3b9abebceea69d06ae5083e112a8dc5c4b88ce3ae8ffb716ad8c
MD5 7089502791f88b502d8221341ff3b072
BLAKE2b-256 2690669be6c76538690d5bab87780e97b1f3a45db557737f0932eec50215c4f5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 caefa26e18694b7a610bea07315c5570d4b555699deb0c04509f579f9cadb86f
MD5 4bdaa60054ceba5a1df16cb1dea51394
BLAKE2b-256 56fd6d474f056e252b15f0c1b97b06b7a781b198292654125924fe6a6869ce53

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post2-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5e89debc08d54dc1752f873d8c6479addf6f109987a8a7de7e86016e3611c305
MD5 ff8a5c42e844432e0153d04409415d11
BLAKE2b-256 a640e572307ce7b6597a8f26a4a63ac99a47c81df1b03bc9daa377f4c7ebae4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.147.post2-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3a3a95c72bb882775ed509354cb1ab8bf708f3bb83607b2bec5346380ae65052
MD5 1ff20c3de98e18bd4514c5e98f40d8a7
BLAKE2b-256 64a5519203a27773ace5621086950f8ece0ff44a8061bfae53b6d257dfae2237

See more details on using hashes here.

Provenance

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