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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.97-cp313-cp313-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.97-cp313-cp313-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.97-cp312-cp312-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.97-cp312-cp312-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.97-cp312-cp312-macosx_13_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.97-cp311-cp311-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.97-cp311-cp311-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.97-cp311-cp311-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.97-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e391716466e73c2fd8fc19071e03b3ba44e572336aa4532da767b74c720a1b8d
MD5 1d695662079261e58f1eea24b4ec63c8
BLAKE2b-256 d9db45aa14dbc8975205e8116541bdf95f919e0e324a15c5d469d8d9eaa2ab87

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.97-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 62185d10ce49870fc3f6ec449cd0169bc01a193412c0fb00b9717160483ae08a
MD5 a903c9ec23000cdca72155da2546c1d9
BLAKE2b-256 d4c1b30075ffd9b83d053772adaa82e7abe2bd703e1eb6c2368055c281563ff9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.97-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f681b445749bb15c7d949e112b9d10bf4209b96e60976857b0d911ed64e4e5eb
MD5 147958ead762a4d35038806a86e48786
BLAKE2b-256 8613d35dcf2ffac62b4ebf041746dd5175fc51457cd7beb059231444fd5e5889

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.97-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5d0ace3ca3d86145f66beb9cd90d66c42fb889d768f9951d7b34033d0a7fe20f
MD5 535c302dfab66558a80fff04e324b3f6
BLAKE2b-256 0bda034e962f0596435b012a84886d9f45cac7a896f61082ae5f87f762c98f63

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.97-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2f8548a6564585edc4f24122eab2d3e2f7efae111ac4658e892ae2687ff511b4
MD5 2e73ad729753329c8ce7febb0e555123
BLAKE2b-256 78840e91d213fd09fc31ef559d7d77875e6029af75d4d47f99417b5bf3546275

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.97-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ed58f267956b013e6e94907123a51c10f22edfc1048f857ef99fa28eed6b873f
MD5 92824650fbd841e469b55d8dd84e55e3
BLAKE2b-256 c693746894d554b2069246f4b2bdf57ed39ce912b0d63ac65fc5a833a40f3074

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.97-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fa46d523a16bc4e5b70d2e6fbaf3f52ef744ec5f249989ee168fe4633c5940ed
MD5 e219d3ea3c5e69b8baa372676894924d
BLAKE2b-256 76a657eaaa4acbffd74827072e3675b1c64b3c9423d4041d74698aeaf353ecc2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.97-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ee1e4baac2be953b52aeb335d3fd92bdf23469f12db1ce1e1741383036be2a44
MD5 e5ae855025fc79cb2cc21a5dc45b0a73
BLAKE2b-256 ea7d61589a17ad0a380c3dc9128cd1088c2c5ebc4efa3c04d1ac428952e19a48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.97-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 97d45ec4407a902595dec27eb10ade14c6f11a66d65796df67ff46f9de3761fd
MD5 57f54be57f27a1961f72290325d50958
BLAKE2b-256 300e681f21280a9e623479c5b602f587ce9f99585ededf1bac53ad33bc7899bb

See more details on using hashes here.

Provenance

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