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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.67-cp313-cp313-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.67-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.67-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.67-cp312-cp312-manylinux_2_31_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.67-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.6.67-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.67-cp311-cp311-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.67-cp311-cp311-macosx_13_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.67-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 526eae8074cd39c6d3f0ab8ff7465a6841823307f8261346b72716cf2e5625bb
MD5 e0aec3925a5d86b63763c2474e4a27bd
BLAKE2b-256 44cc48706a320db9e3fc7b4fbdecc5fe9f399633f1a34ba666b8a9a43847a9ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.67-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 429b3e820be99fec56af1a2298e5475addcb25835bd5b118b1ce9fec9cf8f3ce
MD5 45c9806b712ca44a67f8d22efc42d060
BLAKE2b-256 fb58bd8f198b081d186f2d3e35b35e0f59e37a54bda49e00cf738eb93618aafb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.67-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d5aacfc15dc18e68fb9e543108465d9dd85e89b80c8d2abd7abe568e25584b4a
MD5 24ba635f8785df70152b4fe7aa96958a
BLAKE2b-256 e45af5ee499b4a7143a1a1c1408e83ffee69c7a831a7c0d177b0a1badc8fff5f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.67-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c5ce39c43346a1ac6b3bccd4e9b37d7f617e05058c4cfc081354ffc05d58a75a
MD5 e7745d174ec79797be955bfbf38ba991
BLAKE2b-256 0dc07fcfa74f4c1128ada17c4d4213681026a5a7b8e196585a26f20cb8947b0c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.67-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c3959ad3c1fe945be479179b50f23a0639b27a66c694f9074d7b2acfe19ba185
MD5 b23416413dd02eb5cffbb74f09098c5c
BLAKE2b-256 579814f2981064206200be353ec7c9f51b1fe5ca30e604a67faab583d26f633e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.67-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0d870ad4dc0e0fd40533d1ade775b13d71a9cc624512529896dee31390bd09ce
MD5 40b61bd96afdc6e491ee938250175c70
BLAKE2b-256 f64e6beb09a4de260942d664a8b9e161e40328ddc865f1af56242e4c22bbdd6f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.67-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2bbfddc9ef7df7b802450584da64de326d56adc0f8f381a4da61f90794180b6a
MD5 0ad26332e3332c544441546a4e9e1a94
BLAKE2b-256 a614546190712af2d470bf18f7526d1aa62c6fcc94458d8c01f3d73306eba560

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.67-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d474a8a9740c2a1aa81ba2c4092bb663479595ce53ce28dc0c1d0a7f560a5d68
MD5 f4a88031b39c910a6e8b11e4bc698a1f
BLAKE2b-256 2c8b606c42592d4fb904e240a8aa23d38e2756bfcd82f98a44fef5c7cac50265

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.67-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c54b6fe1c320ef7c6ebc26bf7f7597128b5096e1ddd2d825e3ea74053c1b7a73
MD5 3819160778ef08d5ae97f1193da85d1f
BLAKE2b-256 018a94493f47f404bbb6338582ac196d7577bff5d75bbca1aaaa753b743d1c7f

See more details on using hashes here.

Provenance

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