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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.43-cp313-cp313-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.43-cp313-cp313-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.43-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.43-cp312-cp312-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.43-cp312-cp312-macosx_13_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.43-cp311-cp311-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.43-cp311-cp311-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.43-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5dc1c443c289466c467f1c941e6ab87aec88351114945ce8920bcc088fa3c46a
MD5 a945c2401a40384df79cd667379a4014
BLAKE2b-256 39f7eb8de50b3605f5fb2e9bafacaf89a03d26c8d3bb24f6765b1e8124247bfe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.43-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 adbe9b2b32e64905f8f17d0798d9f631be2d09cc242a8caf15527d3a1fc51d27
MD5 89ba3a966b7b53466969a1aad991182a
BLAKE2b-256 74e4ef707f45ae57340a41939c7978d9c1582d47bec053fb4dec583d95ce8505

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.43-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 dbf25af57b19b732a4aa297d6b6a2d7a9a16c555ad55226406d65ff21bd49f4c
MD5 65edfd17c0ea0e79c387bf53c7ed64b1
BLAKE2b-256 7380ae6a7b152b6a72d20560cb5f6b0dd9102f34d01938862177bf31411b2d5b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.43-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3f6ba2f88f9d14bbb3a6c4afbf6ca2f303e9857b0a95d7f8e95d7c21d5712511
MD5 c08483929c71cae6374677d45bbf7e66
BLAKE2b-256 50153feffe404b3df7dfea87399e13675dd016d56ee10dbc5ebb9c5e9123715b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.43-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 62dc3e789b1759d2d84bca21084fbb69f528aa5bd3f400d8d0889da31d2d1748
MD5 7f49ee5ffbe180e0de5228ed5e8008fe
BLAKE2b-256 af5f7fb1616fa341bc95a2a028c530f55091f9cef738bd1a33376ba9d6de5d92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.43-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 da2655cc95586a07e5635ac1be09cc5436516396d4dd6520ec292884f4c72601
MD5 291dd9dc4f4c2c8db7a9a01800612a7e
BLAKE2b-256 345a2f65ba356e1babee00d83d8aa6a3bcf20fe23be97c7b25127b5d070a3e63

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.43-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2ebcacbbbece90d5eb3226efc531c4fd6a710e298dd3658c7691d8079d7eb3cc
MD5 aef0aa5233c4b0068510337a34a1c661
BLAKE2b-256 c70eae1d307e8874ce34c2ffb497147c044464de88108d67f8418e73d85ea0f9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.43-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ebd4138b2868ee841415809e3436051cf3ad9d2bf9aaf225da7eb1e7bd67409f
MD5 c1d116d7bbcf2127b9f7d401547f88c4
BLAKE2b-256 cba9d3b25457cefe271264eaa9c15f4bc1716e993bb1c86b6799a5a422593986

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.43-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e2c978d8aed22df7ff6f6e34437f0915c830e1cb341842e076b503817a9c3a45
MD5 bdb627b24e7ca77ff5513279e991ccc2
BLAKE2b-256 e664db48af72d94d3c681bdae015a1a631e1b4cbc452225ea8debe225c79b79a

See more details on using hashes here.

Provenance

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