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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.33-cp313-cp313-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.33-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.33-cp312-cp312-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.33-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.33-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.6.33-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.6.33-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.33-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a6dc3e5a586946f3bd24ffa28e7663c624910b5b88067a96ac55b6ef6b2f4fb6
MD5 19943057f971315e9e2294cbfd7f11ce
BLAKE2b-256 4ba453b83923588e571d1f508e38d3c6155fd869bb6c87a0305fb851f23fbae3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.33-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f987edbcad5cb66cc201f46a411fea1d3968ef5f6214d9239ad9878f0e1a9770
MD5 f03c8c592c67aadb00b6768e58699c01
BLAKE2b-256 f30787b0f51ff469ac93f263554e3f76e7cca150a3fbf7b739953c210e460cee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.33-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 71c877c9d1dc5abafbbd40592961cb9889e67857f98d8f45efa765836e699ae6
MD5 ed57e789ced573d72b37281b28993221
BLAKE2b-256 738e19ca2aedc055fb6f4055f6bc407bef7fb9cfe8530319601d6e52391d2c7d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.33-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4f5607efa7683c7ce478098fa9ab7cb15eb015aa4642498e7fb67815714396a7
MD5 3e826a85cd0211ee0c53e89e688e394b
BLAKE2b-256 66648b1c34bc30b2e20e50247f2aeeec91d6013b8a1b98e23e9e3fa10432e94e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.33-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5b7350f4f921dfba7b99a2801a236c71bfbb577f7fd878336fb809f06451916b
MD5 d7db1b8644da930d4de26f32ea5f124d
BLAKE2b-256 45f27ff1805d6dd67d72bc3b3d2cffb69a688c668a10f36a9c417bfed679cd57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.33-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0f20218031a38ec15a3989c54d92e4e2deb67f9a0ef59cf6d79963b2cb9997d9
MD5 1a21fe2a51b35d21c0469400476b6d81
BLAKE2b-256 425c1adf0780adb7bdd37e228ccccf1ad8fcf246c1ffc7038e2aaf3a921dde68

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.33-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e4cbd8ff4e762175c30368a1edebc24380443f2c7fd5e5e455e641e3af5d0b5b
MD5 87a49c510c9887213a216bf9368bcd8e
BLAKE2b-256 aa57fc8b9805639d3ff251da46bde5c46dea72ec722f27172cd8c340b06940d4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.33-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3a1c2e7022971d8c8e1acef64c35ee99076bf2bf7a5f5d45ea78178460ba1a33
MD5 cebb01cf1b318fe780ad8a71a7fb3af3
BLAKE2b-256 0c892ec82f330baef7d874cc067e946c155f25d679370c1c9d67a2d393646266

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.33-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 96ece0b87aee7e06d56ba40524143e421740fb5f8ef062effe2755e9af70b0bb
MD5 01d28a6bb5d07921f656bac36c536c9c
BLAKE2b-256 98d9c9cc9181988ee9811c4bb068d8209ad181a296723b96e9c02235369437df

See more details on using hashes here.

Provenance

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