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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.18-cp313-cp313-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.18-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.18-cp312-cp312-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.18-cp312-cp312-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.18-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.18-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.18-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.18-cp311-cp311-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.18-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 23abb239794b2b7935d71dfd317d4ff2c3864f691e752a233ea61d4569d5d025
MD5 778d4ed7bf4aeed4e088e5e3ccc90a25
BLAKE2b-256 2610e634e8c0f5ad2367bccceaff51bf020f1bef2dc141b69f27275fb8b722f1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.18-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bb5fa83127b8db73b490d749922c997ab9a3bfe808c8df8216f42dc3e9457cab
MD5 8beebc09fd6b414a689c4451a9780f2b
BLAKE2b-256 7adfe59a57081049e4a41752358108f4d7d05b356a12aecc2916782ec51f0c5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.18-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2d6b1c795485f6293241732d435454450e40d9b17f8cf80a8b6958d0b350dae4
MD5 bb1c6b3edeaa43774413aab49cbd6490
BLAKE2b-256 3552b9402bd5a0cc67fe53f29ea407915357576317cd19b462465d430884e5eb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.18-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c84cca5f1c3b5bd97ad6d526eb8082973b31a474cf1a4fc8ff002c4e81d0a0bf
MD5 aca480391a034f89ff2c7e01a4f03416
BLAKE2b-256 dd2cab7b0ad10c16adf0462e012b6226d26880fc827b9fdf9b18f44cb3dd9768

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.18-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 44b8bd302fd5c5ea9ef04976b86dce5cbac5ca6378a34fa73731dd02a6d6652a
MD5 d43537da2896fe0236132755fa715338
BLAKE2b-256 f13d1076e4e6674a5ffa40bc31491d92027bde92b3948a5731903e6a00b9f983

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.18-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 662a7cba11497d77faf5a15734fff8aab8858d3296d3f6b013c721197ece6f7f
MD5 422ed1e2fdcecb73e1311a93dd3166aa
BLAKE2b-256 a895b560c0b3ad63b9585346b2cd937a8f303858ab968c0cfa82c0ba29637478

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.18-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7b677025d5e139e510b6ecab0ed1b1bed1ed6b0f7ac3b9760620aee81e807a9e
MD5 75b5504a6622c4f8b6ece889aef3d5d3
BLAKE2b-256 9459f45126461907786c4218be370d46920cc103a4716f47d4e447c39052d38b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.18-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 39d3977f98d27fb088e581fc2b76cfaf573e9a6c694b4f74a56ebe3a53ceb34a
MD5 df30a36ef58418264a0f724cf5a967f0
BLAKE2b-256 a08ce9ea9f94692bfe545ff76050bfd8436ccf5cde75a922967f96fa9fe81907

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.18-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4326dad81e4ff677ded9e42977207dacea193f7e2f221a7f7539163d5ee9d2a9
MD5 787a6f0988c003da9d4d54ba30dcb632
BLAKE2b-256 39354470768926222b8ed6d84581c811999c15af1caeefbea5450c19ce85c831

See more details on using hashes here.

Provenance

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