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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.69b3-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.69b3-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.69b3-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.69b3-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.69b3-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.69b3-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_inference_binary-0.6.69b3-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 49c22e93abb3d9190ba681d516063dc71a76fa4bcc11e006cd64129c67670eea
MD5 6af39ebbcdf31cca393aa220ccf1bc1e
BLAKE2b-256 a2abc08dd84fc2a41c55cf285a25f3c289706a61e36e20575add367d5da033b6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b3-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4b9a553686e70b06c492f58561078145282754ed99e07cfe26cdd5cccec0f532
MD5 4cf5cdfbb77ec1db01df581471578c01
BLAKE2b-256 0fb5308153fcbeee3991ad08a279950b3cd2cfa94fc03e1930f57db62b63a2fa

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.69b3-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b3-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f3b5ed6d582449229a5d65786821c9cef38c6583356421b24ad3a9fd1d84719c
MD5 1ae0c1a6d78207ecd812db6b238cf820
BLAKE2b-256 7c3512dcc27ae2ebdfe83edc3ec46876d4031c4fa1dafffc4d08671f675082a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4ef41cf5bed8f0ddfba3f618843d75ea34c62c4ac2933bf989c3bceee5b10d1a
MD5 21adfcaf072d14c12257ec8f90e8eff4
BLAKE2b-256 f612eeb5f248d5eaa311b92d46545ba335ea7b6f522f00dbace0e363a1012a5c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b3-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 591de64ba117e1e280db446306af6f01f1a85d6bdc31f3e8f31506270bc15f94
MD5 b9226747cdc98c30ff0fae3bd117178a
BLAKE2b-256 59947765c92c6ac757a8b8e45baa404d145dd40020a7b0cc3ca1e3726e83c315

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.69b3-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b3-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f74c5ed5dc1ea67ba8119c54562d79bbb57838a98e9930a59b510c832df63fed
MD5 a505c1ea3557359cdd6dd6c5ce5b25f8
BLAKE2b-256 3ba5bd5d923a15ea6bb7c5cb4d3d4a8d94aa96bc7a6542a0c32959ee2bcf5580

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 331c2a2ae3381d2c59380447b76885cfaeab0d8f079f596798683342c902e9ff
MD5 f3a2a888ef75e7b322650f43fe80949e
BLAKE2b-256 f7f75214afea3e430241aba8ab501db56d9bd259928e08802c0c23501b879bfa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b3-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3884df93d694cbe01d4706b185621fceefaeea80d501c453c3f36858ccc287a0
MD5 1cf93a88350a8abb99e190458eaa8e6f
BLAKE2b-256 87e3c7ac35f4187f2c4ee5a552fe609367df1b82be4319fb60eede636baf9ffa

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.6.69b3-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.69b3-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ae65c2a430de58d139ddd88752fe45cb0fa85538628a1eabd03eb1ee35fbfb23
MD5 62b399bd0c98fe46f5479ebe17622c7d
BLAKE2b-256 391bd520315ead9a2111ba332d5947a2ac55e936f113d1b38588e0fc564dd044

See more details on using hashes here.

Provenance

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