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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.102-cp313-cp313-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.102-cp313-cp313-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.102-cp312-cp312-manylinux_2_31_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.102-cp312-cp312-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.102-cp311-cp311-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.102-cp311-cp311-manylinux_2_31_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.102-cp311-cp311-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.102-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b993d32939b83aa20018e5ec365db754315ee964c2db7971c093f0c3f6b946a1
MD5 4ae740de3e77ea230492a0d12c52617b
BLAKE2b-256 1c435588b4c7af2cad9a173c3cb5fea2ac94f2d7289d4000da561d8cda7903fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.102-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 770708d72a0d4382ccc7cd17d7caf9b4b382c32ab13b671c5a7bcce251847350
MD5 895c0d0124e8cc547e0ab33dce8f2a01
BLAKE2b-256 b8e1b0b11b7bd1b3c3220216efeb4bbb0c9e5b34729b4a7b20a4dddd167b1088

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.102-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c49d6720591d669e959d2fe6b23620c364112c728b9365659d54f9090e6c25df
MD5 8643fb27d6118f1064e0d03d83bf1d1c
BLAKE2b-256 06a5c527a99c16ddc51fd958e82bbddd6b07e3213d23f1c859825eb1d11d4e69

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.102-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 010fbfb6e404f57fc1f8a0b9569fda7d786e1543c81d4213064e2db2c533f06c
MD5 24299e180d668577de08357f2053a289
BLAKE2b-256 2bed2576b8b0246715655c3969b8fe345719a08b462708af4681559808a6ddb7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.102-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 757be10ad996cd85d9d77e87eaf646d4f6b2ca9a9c3095b86a59587c0f4615b2
MD5 fb67ca6b8fe6fb81279270d4466bc103
BLAKE2b-256 1ce68b9ac5fddfad31239471e3b12aa4a73c3e447ac67419eca8ac757c2824ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.102-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0dfb7f93acb5f674b359de9c1dbda06df315a4e12e119ab4dca2bfcab0738f16
MD5 24cc8dd6bd0a8f7e7ed09c3a21597047
BLAKE2b-256 06d7c9a190117386bfae0f2c56dbb7e8866c838076373a62e457dc5bb48422cf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.102-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8cbe835a97789d873d309850b85d8e25a2635603e0f81f91b90d173e2a8a1fec
MD5 4f24bf8f61516170a0ade52fe51f1840
BLAKE2b-256 10b0af66543df22ef9bb81661b68c24536f39338c6f25203f23bcbca9a825dc1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.102-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 06da66c2549d0e3c79b2d459114098a431e304123459d57ce8cbc947b9a4889f
MD5 8d48ec3a4eea48228a1de787106f3b0c
BLAKE2b-256 1a92e8ae0c20079091ce6afc4d217c134f488bf56a3c970e1ca6edc8a32b67fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.102-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c23fed89319c31444e0bd06f6b927a20008297c870949377d59e5993d31b4e1c
MD5 b47d1449e19d4b4615ed558d96ee9a20
BLAKE2b-256 bd3bc8d7f81d1467a79a9bf4e0164b3a421b0d413b6d97f5923170cbb2b2020d

See more details on using hashes here.

Provenance

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