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

This version

0.6.3

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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.3-cp313-cp313-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.3-cp313-cp313-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.3-cp312-cp312-manylinux_2_31_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.3-cp312-cp312-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.3-cp311-cp311-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.3-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.6.3-cp311-cp311-macosx_13_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 25aeae8d10b3ed91b5712096d544d314cda3728da89c914de9f885068d0917c1
MD5 d4695b8e95fff37f636a1b76ca0ec683
BLAKE2b-256 7fd7d56b8d67f67148c498352d91abff79f314b964fb3d0570c65f6b7ebe2134

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.3-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 34e73ede1d4ed77f3d3e6214439b84a4414ff7b4e15afa60afa80c25c062318d
MD5 bfa85b028e5ce7330190ca910849bc8a
BLAKE2b-256 b50263e5ef8098ee51526bf90eb2b976fa96ae0d065d48a74f10152b4dd8a06c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.3-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 dbf16f46af3fc75a8c7418ea69af7abd2310de5cc35f7a46da7d6f9c62922784
MD5 8d01772166f1293cbcfe7546940faa97
BLAKE2b-256 e3a22723d87d9eea4a17e45a4d10c7389ff310387112ca82b2c48c2e578abad9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 75357496bb4029b5cf16ad8d5dc325b1add785943c7e15c9537b2df92720936a
MD5 18c6cd20c14a0b8407387f53ceb042ab
BLAKE2b-256 1cae4709baef392a1155b94ec965d1cb5e560caf599a3bb19ba83d74d6fdc30c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.3-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d2a9dc7854ff84f587fe84eaf46ae8c668ec4b08af27b0f1f8de184d1a79e536
MD5 25558adf5053d548ff9e4073b74f4ee6
BLAKE2b-256 c754b474a4dbcda0fea7338aa29d9093f2e73c47cb38d4a639c3f22abb5e0c3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.3-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 746f9a7f264580a5f420a1013fd87f5c191593807a9d6c92d742990564a2e2c4
MD5 070f9409081ebbf5a57c9bd4be2c33b1
BLAKE2b-256 fecc2d03300790badbb7ac94fdb6392456b5101aac9c3718e55526e9c98403bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4e2f10d0e41feab35830f598cb7c8e8cf59a6aabbd4dad044dacd3e0ec3975c8
MD5 bca962dd1cea56d949a6574dc89d03e9
BLAKE2b-256 87d0b6c763fae1c42d72f6bd240f5fa5d3cc54ed8db9bcc1c0f202f8064948dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.3-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 62d8c92e0c4e0809e179c9ceabf314cae4c5f513688d21490d6a06f65a812f68
MD5 5c3ac0db3681cc239d66a92c4ffc29da
BLAKE2b-256 89920a6279605445f8c5c103e86cc0c88b031883f1d9f98366288d44f73a3ac0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.3-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3083db9ba65d1d6a066544b0350a537690a4329ee24e6164ac18fc1ee8fc32c1
MD5 c51385e584f782287c5e9fa3f6f8e8ac
BLAKE2b-256 e37a448574c6163289050311b1342c49c28ca3dc3d84b3fa1ac1d3fd9a1ec09d

See more details on using hashes here.

Provenance

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