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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.105-cp313-cp313-manylinux_2_31_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.105-cp313-cp313-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.105-cp312-cp312-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.105-cp312-cp312-manylinux_2_31_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.105-cp312-cp312-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.105-cp311-cp311-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.105-cp311-cp311-manylinux_2_31_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.105-cp311-cp311-macosx_13_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2a5f314cc3f81366bc8c9749791caf223e5b9a18763321284f58d395ebe10d57
MD5 e60f07355ecf3896e4f686cc949c5f30
BLAKE2b-256 90d4ce01a1b6bc63d54e1b7c256de36445aa25f8a7c6e0dc4a707a5d3106b8ac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 236484186963ab824bac226908af18125789de5764f9e12cd8b739da3280496c
MD5 4382858562c6ce45571e5d059d635ca3
BLAKE2b-256 08744d3a7b464ff171594f8cc2c24d14b7774912c51545d8c681718e4bf0895d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4521394ed7b788c6a92ebcf44e8ede59cd9fcd71cca0992874be3e7f34a5dab5
MD5 11f0cd45d3c1870f28bee3f7cf0d4009
BLAKE2b-256 4db05b43bec486d5d26a732ae38596a44509994ddac1a838c669afb14c3d6e31

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3b60977e2d0a222f593acf387bfe59d04b5ae86ba16490ca2b512a70ac7bba45
MD5 f865e42e96c9649b5a396fe4d4a109e0
BLAKE2b-256 41bc0439a095c82169ffa1701dd2c0baf564ebadca3bf4cd21639db195597100

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2ce19b172f4dc9d28d33922803ab80f702ccc80e8d04a473481907b6db6c4388
MD5 abf30a4bb784933632eb83145f2765de
BLAKE2b-256 9f57764432b99ebae2164e80219f34235aa3421044b81fc3a1a823ee13315304

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6a06b0740b21e28b611e1243beabead852d7286772529957597820b1753d1168
MD5 4d1b1cdc1dd5e38323541f447ade5d5b
BLAKE2b-256 3591dd2cdeea8a7525998ce3fd6e406d39ea33df1fa1176bfe82c40a133f6f3a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 20e0ad53c884aecf43f4c1d97d2ae416280e6afa9a23d6ca4005c930d0a1a0d2
MD5 bf0482b501f281007d61e84c9c72d0e2
BLAKE2b-256 53f374ab4b99669302bb791a3cf3f0adc8013d725bc080ddce3c51662fab3fb1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c113ce73dba261c386c22727b3b9497753c54264d98e007091d01c813705c098
MD5 c1fb2b89da17ad7982e8395438e237f7
BLAKE2b-256 d1083f2f3c21f28e2091ef0fb763cb01777768653c115084c8a87a8aa9f0cd36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.105-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3fae54ca9110eee2de83dc9c9bee7293709611d5208ee49e61af12158e02660a
MD5 b9d267e97d7f596cda92314e2cd54f9c
BLAKE2b-256 05f40757624c0c2e24f31d492b9e8941b025a30efe5612c05ec347ce1fc72e8d

See more details on using hashes here.

Provenance

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