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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.0-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.6.0-cp313-cp313-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.0-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.0-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.6.0-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.0-cp311-cp311-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.0-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.6.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ed7a8ad1f1977eaa0e2978a289bf5c4eabb7cbb5e674e2b5309d62b7eba0b40e
MD5 b71c389edd4c2c411964c356cb9da40a
BLAKE2b-256 08d128814653c2d30615f983fab83d52fe1cfdc94ef06ff35da131dfdceee48d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.0-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 86264a5493e805fc36fa0676784683f365bc4dfc76d03cbf6afade06e5790de7
MD5 f0996fd99b989439bc9071e9f2192812
BLAKE2b-256 26a9673f9c80daf2e1a744ebd5998a638402fdc80ecababaa6831f47e4a0e2db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ecc688e280d2282363b2740f04a0300749bbb1a5c38fc8888770afc5b69cc8c5
MD5 55e719bd2cfff4727ed7067c9b2f40ca
BLAKE2b-256 84c255d6fc2fa9e2c5e3b2a8603ef029eeb17fbbd6abeed772f03e2df18a2cb8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 adc9c7b3f331f20ebbdef42bca078fa097c71a1541914418725120de68a3a63e
MD5 503162a3a1be07d8d4b1ef1866c28ecb
BLAKE2b-256 03ff4d516ac3596a0ed54a9083a996177c79c7c211b79af780fa08fa56ac0553

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.0-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 fa9949561395d50321588bfc4e2b12e2bd18799940976e4856df45eb883aabd0
MD5 7fdc32b180cf76a4d272efd1d56668df
BLAKE2b-256 a03e816fb38b1bf10d4799f69cba4c7ce0d8318bde4ce27e573956aee81f41fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 939f6215ca79eb90eea43ad3102b73ccf0a6b121edf7b25bf324cab8dc622e75
MD5 f4e29653a123b24446f8b1e11968e2ac
BLAKE2b-256 579769e4bb0aa7f6fe646563de9d9491ce2fc14d8bcd27ba689c1b9e85bd8c70

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bf49bd94d92858466a8ef9588218a30e915ad4e2b22f340786d85163e7249001
MD5 698e3f7d17d58053ba431c2c8348046c
BLAKE2b-256 3ba7929ea8d7a149f50b001174c2020baa700962bd33466a64b8e890903a3d5d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.0-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 03b91e1c1c84e0690409b14e68833e7c9198f58dfa7999b033cb20670f59d384
MD5 2cd66b9750f5711b7fc9be3fad3cf7b7
BLAKE2b-256 4ff9e5421bdd4eb896d6ea9c159ad1b23f71ef02b939c5ff522e4f65cc08d1e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 179afd2dfc7cd7deed857679f7fbb771c4c6e603ab56156ddceccde723d9bf32
MD5 f8cd9f5372f50605aba718ad4a96cae6
BLAKE2b-256 fe2db7ca64e8e584d18bf260b43523735360ac864c5bc71f3e8c0cf82fff6f57

See more details on using hashes here.

Provenance

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