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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.162.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.162.post1-cp313-cp313-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.162.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.162.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.162.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.162.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 49b1eb2e4ba99a1a3289219ef6e809b47ec2fb30b9c77fb0082a66f3607ad6ec
MD5 fbb3bdc16d4e4b32f842c038f85cfc36
BLAKE2b-256 7a2cc6ac0f642b0b79460445707bddb2df2c926691b9e20ccf6452f9df543f38

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.162.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 66651b67b9d793b9e0594ffd2ef6eb874a5e893b14f8268aa41d577788e1915d
MD5 185efbdae29694f9bab444e8576d09be
BLAKE2b-256 dbb4224b001e7a401b0e934ce389a0e0fe865fee02c86d0087369ca90fb144e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.162.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 75d85f1d1e71a1accfa098c371e08cbe1037216feb3ceeb92f234f0c198e1247
MD5 0473a30fa9650d7ccc4ede5ef7c68858
BLAKE2b-256 212f8d21d8a78d54eeebd12c970be87a16aa6deed0235ce05e26ae8470e70f0c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.162.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c45b6498a427f59773900b6df635c5d1bf1e41a436d379efc38dddabc0833685
MD5 7d21493ad2a93ba243dafc553d28ae58
BLAKE2b-256 0af8dccbe8cfe6af5b7a2b802dd1aeda262c05317a7cdbfab9ca5e06a3b48631

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.162.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2880a16a227387d346b522e104bff7f75ab3c6d2e21ba388844ff99207287a56
MD5 7d89bc6459f63ac1dec53271e4c2fc96
BLAKE2b-256 3cb612beca1d9a67a754caf80d6f5fa9f00752f3bda29303308a88524a1590a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.162.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 10bf87402e509fb14cb26c3e3aaa498b64156797a0ca11ec6803eb96dcfa19c6
MD5 c0be1b12936e582ec5849b4f613d9e7c
BLAKE2b-256 021a8a13f98fd5639cfbd76078d9c1049522f76da0f270ab36316a5301a295b6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.162.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 268e39ec7ca6b0b601b8af1f611dec16ff9377e8e8b96a1597666d36f80bb7c8
MD5 8f43f9a55a9c8de3e505d1a515ed7607
BLAKE2b-256 bb8602d5055a8cb4913fdedd9d5c1ece8889aece998e12229818b12e120c9b1f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.162.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d66bb3e084f009f85e2d5eacad832c1d110a446729938bc5324835d092d207d9
MD5 c3a536b17fab7ecc078bf6ea2446fd5c
BLAKE2b-256 86490b4ff1dec2525dcbfd5f99434299e20ce55f5830b23c14bbda13f3ae9061

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.162.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a326f76b3eb6e7db58b6c13194e04074e44fbb3cf0776bedf33ad59c7f7f3ef5
MD5 90773d8ced3a1b4e6631df19c26e8a20
BLAKE2b-256 4f937dd546473b7ab2a66e4bacafdd77d69eb1eb4f10b8ae191276468941cc22

See more details on using hashes here.

Provenance

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