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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.50-cp313-cp313-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.50-cp313-cp313-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.50-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.50-cp312-cp312-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.50-cp312-cp312-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.50-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.50-cp311-cp311-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.50-cp311-cp311-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.50-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 75758a5cd485732f3de6cf417365748af656bc5aa9eef9a58b94d5a9f17d04e6
MD5 04cf3944aecfbc117202f35d90fa5e09
BLAKE2b-256 728a23ebd64f0a5c55b9862aae2c18504e767a5d31513d48ce89603d1167e94e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.50-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1d069877da3bfbc9e3d61ede75bc4afe646fa8dec4be86bde425e5724910a4f5
MD5 953df38e6ea624649bcc7bec01f1dee3
BLAKE2b-256 71589d9217ecc1ab4cd412955dbc08eb770c0d526f0742ef0cac8adedac862fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.50-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4f21d6ccb542c3d873bcfa076e43bdd28627f5c9e021c8661b88c6bd50afbac5
MD5 8681002bac262bacc3fe5a205897ea15
BLAKE2b-256 03614bb318998fee7edd408703cfa2bd496d86967cf6102fc4ca1de51d8a4f7d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.50-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d9775cf4c29e10a734a38e4c003384e1342fb6332842ac3675723ced67aa9f63
MD5 badb4e9a20eaf578df1401f836e47ab7
BLAKE2b-256 ad0398a0176f60250c0139656e4598707f7456bd858c8837588d1de1b24878f1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.50-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bc4c38ebe7934f6eb17b4c9e0e300316e8c8a9819e56c7350107fd993fe6fdce
MD5 d455861dce63b06803d4dae9d44d66e1
BLAKE2b-256 09e4b04a9228888e88317a540c9eb721ad9516a3994de480c90821fade8d31e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.50-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 50ee5f72f93eea6c92718ff96440affea176cad9f8b86e806f673b58b5f51ba3
MD5 2ab6e9a2c4db2a27864b3b7de637d3ab
BLAKE2b-256 ba93adbe0d6508b8615cb61774906b361e8b42a7d593b14c5427d4e5aa1d6ea0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.50-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9056056f8b4b5e872da834e2d4f6405a934db095831ec8b0f35eda6f9b357f24
MD5 df48432986ea9d0e97e3fc1f0dc7a0da
BLAKE2b-256 e60f1f76a2169a52a5f9fca8ff8770dc64aa2843396b2213c25a71d597808d1f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.50-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f722902696980edd3dd47a9ee5589e99d23ac09e4cdf21dc51ffbda4e5e0d54e
MD5 4b9683526a5dc88ed628acd10f79bf9e
BLAKE2b-256 9125e3efa349e8b4ddeec5bde985007d7cdc68ebc695a8bff3482d8d0b73200f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.50-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 116aed49c24f2dbeb0e5ee64d3e61255770c28c5ced863d0a7c3f9735ec6ebc5
MD5 c15758c60602d6025db01c97d9aa2cbc
BLAKE2b-256 05c54368398b7908a19394eb51a8e167d4dac732669018dce2a019a5c01243d5

See more details on using hashes here.

Provenance

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