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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.95-cp313-cp313-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.95-cp313-cp313-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.95-cp312-cp312-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.95-cp312-cp312-manylinux_2_31_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.95-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.95-cp311-cp311-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.95-cp311-cp311-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.95-cp311-cp311-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.95-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 42b98935f1ddf5fee1a5f4be8de7a4956126f90e0b95357c5a2d5d10e224b5fb
MD5 587d2e5e6109db18938fe5b06397475a
BLAKE2b-256 ef069d38a7621ba9e956e3c57c4474bba64acd4c02c395b50abb98f0d4d64390

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.95-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 20dcb4620ebaa0e865d135482b5290a3f7863c9ffe7f8434866bf5aebebb4628
MD5 d8be9812462483ead69777f4639e4e8d
BLAKE2b-256 144692f80f681b2782b7bf2b653b906765339d45323d66f3dfcd255f0595f457

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.95-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 34cd7ec046d666d44c07eafd051c8c8a3eef11088e6b5e446652d4875277093a
MD5 d1b8281a3f9ed2b199275230a1e8c917
BLAKE2b-256 b38ee5701a87a9e52695e4df63bc3caedfe491f17edd7d20ea9c4465e04c91e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.95-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 269259805369643a1c0e530a4f14abe4a461c1c8df263aed3846fd44b0d922bf
MD5 df57f8094ded8c4beb7d4830e6ef0026
BLAKE2b-256 896e1bd694f1fa49f31e982f2574b514bbc89d1a6c8a8802e29942ae593f3ab7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.95-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b0737132620b51890a65fa286decfdc5ff500da30afcef139ba70015cb7a50d7
MD5 816ac93aafb41999d752a5af0c10d07f
BLAKE2b-256 0e85c5c517f1c9f5f44de6e0da293d34e784d29674c1a6b1cd65ea2b38dc2fd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.95-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0ca0383c9b9d81866e6dc71b7466488b0695a654fe6f82eb6702193974bebc25
MD5 a4c2c8c903e0f86d5a30b7b82f1bb052
BLAKE2b-256 bce7f8baae2140dd7618735f91ac7474e76a6d6e90cfe98a445314233b805283

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.95-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 13bdc5e29cf1e14d1fcf51806e9c42e6ad1f2700bc4246ed80e9057632a4e16d
MD5 0923969c057af3051b07ce9c0d3938bc
BLAKE2b-256 e960d398814fd88c8ca3547f6dc8b96614b9ee475ad4dca79d509970d1417fc7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.95-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 63b878874e306fdb11dac226f503bfdf46488a2678269a4ce04ff2a0739425e4
MD5 e7f696fb54fd519530218b8162975472
BLAKE2b-256 99991fc69d3693078f22f21edcfa4d0e0ae25378dfa0e0be92c9a116af0d6250

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.95-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 734342094a98e119ccabd1e57073586518e8b24942af6130a4302a1f9245b945
MD5 b5a38127a6d304b559c270de80e65a25
BLAKE2b-256 ebd71ac4c91e9dfbf12595ab6d38136bcde9cb2aa4f0e9b4f5be4bb0e2df6fad

See more details on using hashes here.

Provenance

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