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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.108-cp313-cp313-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.108-cp313-cp313-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.108-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.108-cp312-cp312-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.108-cp312-cp312-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.108-cp311-cp311-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.108-cp311-cp311-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.108-cp311-cp311-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.108-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 cfa7e2bb7fa1a75fff23a611735ed6b1d254b1c9250bad9dc6eb6891f52f5461
MD5 16803bdbaffd1e3d2f5b10b5a5e02218
BLAKE2b-256 b4e31ebed4502c56f91f9831dda9da3c4a50cc1f0ad24523ba22e11fe087324f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.108-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 cb85b1d2d5fd6d63d9cecca77383cf34245647fe1e75e7248ca43348eeadef32
MD5 854797ea8721cdfc130fd43a6f302f6d
BLAKE2b-256 ba8b867bd17a506a3435edecd565b7ddefb1ef62b78159400d1d7b24a23a9b73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.108-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d02cdcf9b86885c2cf2e9bbfd38361e039901db43672d354fdcd37b98c044979
MD5 37be28164f4e925abc282d77d024e1c2
BLAKE2b-256 99900095eb85a8f8233c384b6a8294c000baeb0dd101390804e862812fbf6056

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.108-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 73c023183db1a7e6775210463938e4347930194489b27a5ffe849cd69b420f10
MD5 01a450c69652a7ccf6677cd6434ade8d
BLAKE2b-256 89b20b304b9e62994c98cce30dc9155438ad8e395451b1e15f065906fb88d275

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.108-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 860d88d75691ec8d6866a5ec8c5cbdefd38351908fbdc25b3cdd54d2331cc0c4
MD5 ad35167fd37f5425ef3b783482c836a4
BLAKE2b-256 8ea2f14fb716b9c4369ae197648490b7916824aa1b2d3510d9596bdeccc74e80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.108-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0d986d24327a2933dda21ac2a57c4efc9d524eba7f1ef0c19f1f937aa19439c4
MD5 4033996ea481a6975549dce5c5df3303
BLAKE2b-256 89eda158a350e1be8deab67c45671c0aaed63d875f59040b4141e627f594f393

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.108-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a0a35e0840d637072c73ae92ee3955fb744aa14c74275e49780d69b8bd24aa65
MD5 f81d95e11b63a2b7891d0b6803103b90
BLAKE2b-256 d4464ca8de022d28c2dd637982e5e47083348d7803395710ba3cb8a9703cdc5d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.108-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4f943c6625480f56590d9c3658bb5c7c486acc864cba5b28ea24fc9f2f154b74
MD5 e82b57fae8f278692b2f0b3264a1557a
BLAKE2b-256 1ab9025392445b38fbee1025924f123f16be7aef2576c2259ba583731fcea7c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.108-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d6241d43dd3959cb4768d211fb2c05b3ee492167e6658ff61f4d21bfee167307
MD5 7500f0509188c546ba5e7ee4721162c0
BLAKE2b-256 085970caaafc664251caedbed6baa9e68121445d5a0154755e9d88b818e38be4

See more details on using hashes here.

Provenance

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