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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.60-cp313-cp313-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.60-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.60-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.60-cp312-cp312-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.60-cp312-cp312-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.60-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.60-cp311-cp311-manylinux_2_31_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.60-cp311-cp311-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.60-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5535464d62513b1fd03e28eed7a439b998ff04a85f3a03bc94ca85be46784f98
MD5 ef6f8bdab2a556eed8f2bb57180d0822
BLAKE2b-256 cfd3b56e1f7260406d956c0354b319397c604cec76285f4575ba0e7b8e4af960

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.60-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 93ca1f8b6e511ba1da8daf052f779b49a19a564495081746c09f7eecea32bee4
MD5 7af19633d50a61b4f531624fa23dc8c8
BLAKE2b-256 e5247ffcb433597d3b0dc60dc4cbc5ba34c52a311cde13bcb26dc17c8c397d60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.60-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 440fb60a68de13a62270c066e8ab29fe2ebe169a7d221e8cafc5088a652b41af
MD5 431254dfab10787461edf151eb27b555
BLAKE2b-256 bf366fbc42d5c62ef48c3acd0003a90ec46e3a5daff6a8f4c72ffa2eb1e61a90

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.60-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1eff14c88bab73fae5b6424a4df5bdf4376a05a735f5dfa70ca8e80964ec3449
MD5 0a357ae1ce929e9e855b3a06002fa1e0
BLAKE2b-256 82b6de6761282d5b07c05102dc891b99f0f10678134d72b84114eece0bd9d452

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.60-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f9fb760d83c128f11925d6038b6d95925d5ecffe040fb3d5665fb895c7979bee
MD5 f59a56b25babfd374a1a2309f44f227d
BLAKE2b-256 f53546df8fd4619f7bbac08692ed5c1e296215e854cb9be870a942304c374f85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.60-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 abd1cc657bf94f54969f58081a961c108195939da68a303baceab630281cc414
MD5 2e7bbe658c2d21827a85bf60af359991
BLAKE2b-256 142b470b221ebcdde5f5520b684a7cf431903bff1ef376221e188cf9568cd4ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.60-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1798d9f4bfb56af00040af0db82cb093b780749650937cdfe0b44d5443cecd09
MD5 fa67c221ac5297382b7b8506051e5ccd
BLAKE2b-256 11d97afb045a17d4d2983c9c185b42ea08f4db7a1164e7b2f2678cb2b08fc4ac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.60-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8f4737ee8e6112d0ebf8acbe6f0eb816fedbff864a0d3de81c7c43ec3d5d6908
MD5 bf72edf5c41fb8a50f7a3e2e19b30281
BLAKE2b-256 2a3b0c0e88a90a09deb4f95408ba76bff20a1258dfe68e95cab7c4aced2e2ce0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.60-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f48536147f2b16b9acff97da62bb3a5ac8335492cc5cb42e171425ce2140d658
MD5 63132d74499718983dc886521bdfe5a4
BLAKE2b-256 28c806a18d22b5c0e2d9c64761b78c5f5723557350920826d79f0bf4b23f5fbc

See more details on using hashes here.

Provenance

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