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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.151.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.151.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.151.post1-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.151.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.151.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.151.post1-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.151.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.151.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.151.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.151.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e0a83b09922546f28b6087ef48b22ad61d79764d2c70f2682978e451ff9bc913
MD5 a495cea880b3afae7ac588b67e280ff9
BLAKE2b-256 c09a4dfb92f033d6566b72b2d96f1c0a0c2c02f812e46248fb426332ac5978d4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.151.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 70d1ccdb70e2513b8d68c7df26153cb8df76d1efb077375812a131e8f21e3051
MD5 be2e74c528b5bad4303936d23ae9f71b
BLAKE2b-256 6d3f05be5163271ebe0af9271145d701d726249e9bc665ca439612673bb43712

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.151.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4b39f8cf8a0051f9c10fb542778441681676fa83ecfc7495ae14efc544fb309f
MD5 29fb2df67a3c45ce0d7cfdbaa3ca1558
BLAKE2b-256 c401d20eed9579303bacba359e563650cad1c972657d0e2ee3cb13a5780c01ed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.151.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 21213838c79800a96c9424752d72b9f8be48ec51ef404604f28667f611dede6a
MD5 560c15fbbefbb7c9ecec9ed206dde390
BLAKE2b-256 a1ea449dace261d5dc5f40efa8c59ed90e2443aff2d868195ebfffd4a26c1b9d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.151.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 620bfbe70fb70c80a772a6f8b511b122ad824dc7ce9f0cb8aaa1a412093a6ff7
MD5 87eb1a4dcb841f8bff4c05b349353bc4
BLAKE2b-256 49f6e3f2cc660efe3969491be5a71e89efd620fe5d8b101a9d3f41140f535b4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.151.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 cc83f7469283ccdf75a979a1979fc068fd8e53601d1ad5bd74330e454f17bb46
MD5 2138d86d486b8505f7bfbea955c6ab1a
BLAKE2b-256 202b2e002573e008461b33bac562bd70cdae27af98716f1a399b1231262c6880

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.151.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e92bab8006289e442ee88b1d3431f9de84796b1aecd125c5f7cb76de4126267b
MD5 325929b8a073679525ef68de80820358
BLAKE2b-256 c6cde5a807db76409edefef1557962e71ff7ddaf34ca739d5cd127f87ddad5b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.151.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e7af864f8f9e398d03e24a81c060e6dd78929e94bf230860e8d4446b8a2541d0
MD5 8afe36536b979340935dffebc629dae7
BLAKE2b-256 56b7d6495cea5d088fa210211f4a460cb9d664b947f1d26082d149f7c50a7d70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.151.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2123e743483762f5faf2376608c9cd4b75ab0c63af21d818dc1dcd41bd0045bb
MD5 a8b5f0f7364d8437221019c1204504c1
BLAKE2b-256 c7a9f93493a82f3c0532a27c109c90f35db2469757db62a4cf1e76f410e090e3

See more details on using hashes here.

Provenance

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