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.150.post1-cp313-cp313-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.150.post1-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.5.150.post1-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.150.post1-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.150.post1-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.5.150.post1-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.150.post1-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.150.post1-cp311-cp311-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.150.post1-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.5.150.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 741fb2062d1c4b9f3548b5dc0e0fb779a110a47e88e730faa91f5a76150b818e
MD5 3ebf66455c34cc2b0dac8485bc22eebd
BLAKE2b-256 bb89d866d20a8bc349e24b8d83c1ba2c4d64923837733171c53807c464574421

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9e688db9affc4a363d22400e5534c394efc1d405974c2cb487d196e6556d1581
MD5 87579c377e02cb45f5e53353c2e92a4b
BLAKE2b-256 7d0d23360409f2a592191a50e117270ae4830e7869b3c698b997d2714dcc08f0

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.150.post1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 58824a0f59a2425e1fcc55facb72d71d4f580f181bc84c4c46a69eb09e70f113
MD5 c67ea3d21ff6964c64984728f55b89dd
BLAKE2b-256 bf7a2145c87aa6f43d3c5336befa667137a541289a18677b92571b3f126aee00

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 87f5c876b6dca8277fb378d51c63391c4185e41f7f4dfa07021fbec1802d4366
MD5 1e03faee28456af1b8877383299cab6b
BLAKE2b-256 d13d832a2a43c965cb2203adef5aa62215e2f40f8511c18339f373cf6bccaa06

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 34b1de8ceaf044285b9564084d80be38e55f5d0797e7f39f90deb2397ab1d990
MD5 71d2fe23407ea988caeb99ce0888095e
BLAKE2b-256 7d0f8d3bbdc0f74b082cb2415227ba662691b2b5d893bee34d48f67480bc8f70

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.150.post1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3530199d18cc165846bf5fc7935ecd697966e46586202a9f75fbcbc2d3c4b3c4
MD5 90ef54b9376d81fb7c7d1b046497755b
BLAKE2b-256 5d1d54994c853b6f6d6f095c1974eb8f094df8cfe66da06f2ea6dcc3e1a6707d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3dbb3008a81806d07b16408e53187626fd29ab24a221c35282887f948fb3569c
MD5 f4f159c5a1f010f666aac8739946a70e
BLAKE2b-256 f7b71c4173ab8a2021fac19cc2b6b40148baf45da7c43413c02feef2a8153533

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ec47d2d3e33532b2fdab0417ef44a4bc03fd2e4054db9a079b1e951b96deeeb2
MD5 27040c6b48136a5abd2138d638a49dff
BLAKE2b-256 adb015f134fdde17cad39b67bf9e304b1778b807e06f0b067205235e4d27e13f

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.150.post1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.150.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8ca2aff6e322ce473b1e6f2e7a711228eab00235f15860babf572ace4b51a4d5
MD5 732b22e186c1e3741faecb7fe25878c4
BLAKE2b-256 771bb8165a1bc5ea25b0243c7097d05cebc5830062067be3f4c1400a74adf37f

See more details on using hashes here.

Provenance

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