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

This version

0.6.8

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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.8-cp313-cp313-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.8-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.8-cp312-cp312-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.8-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.8-cp311-cp311-manylinux_2_31_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.8-cp311-cp311-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 68047e9c2413b8ebfae21e5e9b261df074d8f7de9cdd9e3b63f9276e16d525a1
MD5 b22cc3f6d2bf483f5dcb6c2418870626
BLAKE2b-256 8e261ca0b3be8b94f4e420086ace6b2d2eb52c98b270c4ea5746c1f114eb2fd8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.8-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9d81d4018055d921d211fb7ff947a5d2e2e114798e6b14ef673c5f3a93539b8a
MD5 b2a5f106e671e8b177bbcfd46c100197
BLAKE2b-256 6f0326a6d30a70b1e943488f7a92ab12c7fee47a50a0e66cfb3f223478b6db12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.8-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 030f1b38c989772572c5a9e725237a0dfdd00942b1eeca960a45504124fe677f
MD5 e0e98c6fe27a84cdc78cd13a58f2283c
BLAKE2b-256 c95e693a685c3aca17cda2b419777ef753f2ad6f6450a08eabd05f9b2bc3fe98

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c7bda02b8fa88f11c5c95b30e1b9bc39aa63eb08b1bb54668a9271f4934452c0
MD5 8ff2a9d682d4032b44fa7c64e76ef88c
BLAKE2b-256 62dfffcb0e27df7f11de4d4d3cd9303fd968c0af1c9cf6f65f85f437b9ab1c69

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.8-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 39a83b8769699c4ade0f867ae09b27258944410f02ce3a15aed0774d211ec02e
MD5 175dc4daefa95ed90b67d773306cb1ef
BLAKE2b-256 b3b6ec5cb7c13dd644cd3e0b919f046e216fad56972f493f94939da9f03165eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.8-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 11b309160f933da23e369a33139a1ff3434595e596b0faeb2595655d6ad84f94
MD5 dac4f804801f602cf93434d4f1350039
BLAKE2b-256 bd6288d81ca63909ac6a42f5b04dacd1f51a1c7a445e4bf11be98f9f53f19840

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 23c01bcf97e1979bb9f8bfdf275fc1607acfe345b5d9e25b6a5bcd9862ff9db7
MD5 fd65f81df21804594156fd0a913eee28
BLAKE2b-256 a8262ba5acdbf35d246ca594acb44c1868b318e99d5cdc4a3871bc9aaec2f7a7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.8-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 73e2bd25bcb952fcc10c332be4198a0ab99532e6ca640c2e9e15dbeb0e1d85cd
MD5 9090bccec593919501f8e4c63c179ca9
BLAKE2b-256 212e31f3de585e9ccb0a141e532b8282c9d95f17cc513dfee3ef242162dee39b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.8-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6bc2afa2b9c01f8bfdce6a868a402ccf660044c9ed70eaa7a585a8d0641c654c
MD5 8d21ccc870f1c545f8afddd9f69331a3
BLAKE2b-256 07a1421faa91119bbf03091d943e791f4c9d9c0ff3f165533fc3d4cc18a47c96

See more details on using hashes here.

Provenance

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