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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.10-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.10-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.10-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.10-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.10-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.10-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.10-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.10-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6805399f5411b6c1990a0f51412cf186d9c58fc375acf57a552855f995481a8f
MD5 5f883bfb7acbc4179c3d1e536b7094e6
BLAKE2b-256 00fe794f9c9b655aeafb9d77837defe5f1a3ba541d9eb0d31839450373b19299

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.10-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4d8e62bf4b31630234d3e928300a658cb4add22b975931022dfa3404f5c01877
MD5 8918211a0626c77c6fcef5ea3c49d1de
BLAKE2b-256 7eeb6fc0f56e70216fa15980b6c14a68f512a1fa51bbee8c182d85a84bd1349a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.10-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 75ef16ec27e2e56121af2b43fec7cf9cd7c79f7ec5e609c3a1e9860e7947917e
MD5 339720da498d6605fc9860b48a829640
BLAKE2b-256 1fc019b55e537f565499f8df4c1ffe96284569773fcad3865327b9d4d0063bcf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 da32b8aca2e2211f70a12b590567502628c6be0f60187fd1ccb19b35226a8680
MD5 418ce6446a88e90f0d236e5891cc3c53
BLAKE2b-256 8722319a56b241db094ee6320340c798e4db8892a0818e3b1651668b3b8a01b3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.10-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b842c89143fd7c49b82ce67261647d6eb090c81eeb6c125db549df6352149da9
MD5 f60e43137d1666dcdd435ad1c7fedf92
BLAKE2b-256 04fc1c25e315ef028c4d561b401584da3a6976f09c84e54aa8cf3607f6bc2126

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.10-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2da401e731b6ad6f799a6bada1e08d7dd76c7e93528fe8687cc337dacc70f960
MD5 7b4201e572ce175843ab11b0ea0d1352
BLAKE2b-256 c7829fcbb3068e075aca6f6970dae1d9dee25c4a7961495ed6e0a80d934b7230

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 50712d584a455eec498ecbd58a28df50bcc142d63585c6dab2b4f2c3458d9bd6
MD5 c6c5769670d0b061c486153f28604adc
BLAKE2b-256 e09f2f30d523668cde362fbdcb70d40225d9860eb2d4b45861579c8bc4fd6fb1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.10-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c7bceed52ee83e45f2bfdd51a3068610802550c73b9da3aa7fee68afefbfebb3
MD5 c9afb2e7b7b1e4fb3a9e2e4425ddcf8b
BLAKE2b-256 79c020a6d10c002fcc6a32eca57ed6fc7ce23d605ac3ce7aa4a89e6d50ac4a25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.10-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8ff33b248355bf85dbd53bd017ac47a4b9a60317af63616de173b923f4ef56cf
MD5 7cc19e2f22495cd61a6d03001441cfb2
BLAKE2b-256 43b4a173a73dacb13bd95efbdd4d935848745b45872f5a23902b83f4893a06e3

See more details on using hashes here.

Provenance

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