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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.149-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.5.149-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.5.149-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d463c9200e2b0755f747ab7d8c950c674ffb80a7c2f213a7dff04290adae440d
MD5 c082a8bf943df23a4ae48755e9dcc075
BLAKE2b-256 db8f7c3017bf6eb060cba5c2f9d72c70c569c858c5b660879684033eb6a257fd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ed972f54d6c147b26fcb45c3a2eb85ac9acd6ebda26f702619521255ec5c8e81
MD5 c288b62effd00b7618fa76ac3b24139c
BLAKE2b-256 8803a9db444f9d4220413ece582097e95227fa21ae5955219c687d46c1f7ddce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8b5b66fffbfa1f5347fb2983bb87571146974b6d728d374bef76d66dab53c065
MD5 ba22cb27d59d7229d6f8dbf2169d5a93
BLAKE2b-256 e3761fea3919de73c1f3d4bea7bca1dfc9ab8ed65b15fcb583e46c39767a522a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9a9ca63b34573f12fa8e9baf88605dc4cae6549d3ed6839e4a9d52bf1524bc3e
MD5 ed4daa26f76cfe6502a5a41fab5bb75d
BLAKE2b-256 f777b48bf959d321488fe33fe6d8407eea03b2e130a1501b540bec6730d56039

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 7162d4879f6716399a8ce3477e4d285a49ac82901e6e62640ccc26e30ef93111
MD5 e99293d88d78192b6dcf46fad61ab22d
BLAKE2b-256 7c7620f64e95093c1657bdd887e0710b9bd2e2910ddaacec104b7420ba319ee5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3d5dbf4c2590881d3b2ddafc0c8ef766eb4a6f1254690c5ebe6b70473d6939f0
MD5 5352df7cc20219ad3c9efbed667c7bf4
BLAKE2b-256 afc875037783f10d6379f417343c4ccd4c75b2528b759a877fc3ab052038cf2d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6c0538ee5293067dbbd038893fb613bab718e3a5a8805a1a16191d8d744fa04d
MD5 8a969a20fc198b6d485b5c0fdae8fb03
BLAKE2b-256 c04bb37be7bcc34704a2abc2f94c34c7b68f4f16c2eb98f107493e1f0d5b5bdc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c153239f0ff3402d87522ef29b0e0c0008a2dbb96dfeb3b17eab3976ac9a65d6
MD5 e817f269892c8268446803b82f5e1466
BLAKE2b-256 959b6844cce95cc1409564c5d5eb9f2cb8e770be85a2bfc91a99b9bd236b4da6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.149-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 fd2be9ba696d6d7e99547ebeb272d7a736bf2aba000ee361e48457cd40179ed1
MD5 947e663d94be4a4c9b2d519e997cfbbb
BLAKE2b-256 93fc500973ac3a95951527da54ebbc9be127972d6b6a64118f1d35993e6a3b26

See more details on using hashes here.

Provenance

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