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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.157-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.157-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.157-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.157-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.157-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.157-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.157-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.157-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.157-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 83f39f8a196641ddf4be958977015bbdcbfa15008df12fc3068763d76ec027a0
MD5 5cf86df9d75d823a170057b1825e8154
BLAKE2b-256 ff480e8413ac0ee13bf0f24860d66359a88f28fe6d68b16eef0bb30ada40776d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.157-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8163f106bb16d0599f174b0aa004cfc13de4d8c7fad086da5ace3b133855a23c
MD5 2f2b1cb03c10517f89e89d72841f2999
BLAKE2b-256 02846c54cb6099ed4031675f91bee2618e193feec3e4b43fe53fbb198db0e1cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.157-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a9444452402aacd0079e7be4a46c3ba171292c8c3d0d458d86f94c884c9093c9
MD5 d4a152eb6beaa556ca4f38d0fec83a6f
BLAKE2b-256 9f5163c8f17bb1cd04df77aeb3d4fd384e522c95bf8f84f4b57e9d652764755c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.157-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8fdde7aff138789ded81bc42868b50ba9501923ddb1ebc731bc8c9a007c2dedc
MD5 496bdaf3f7073642e2cf6b8578d269ec
BLAKE2b-256 7c04fafc69decc73ec4ffcebb4cb1e1903f205a583326201d9dbd026055756e0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.157-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0883ef554b6291cc33163743194e980ff634c6e33de94e62a028c1b341551a0f
MD5 0ae72e6f0fddf8fe9f71e38f2a3319b5
BLAKE2b-256 30deab513de64db41bc06305bfe9f051a714be56b5bd0f30dd656ea3246c86ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.157-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9a078a05e394ab1b17b14b983cf0e783a69c1da95241483fbae4cb3767827911
MD5 90d9f0180a8748809e3e948468303a68
BLAKE2b-256 d99f71224087a801846db147924e771b3bb129a102f80660862f615d66ac8a8f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.157-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ce0471521ad0ff21d81a7be8819348731a5e97a84db5a512e0e9eeb07dc223cc
MD5 4e29369d447f8c2eae3b53094200cb76
BLAKE2b-256 b629573da72b0130b048cb5724ba85c139c93d436984cf381366078ef6333b97

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.157-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 72a69ddaa191e50b11c724144fadd6b50c1e6ed69bd3979852f91295ad132c6f
MD5 1f5df32e7b1516275003f2872ca89056
BLAKE2b-256 e733d685bd08f722fea42a33edc14750dbc061252a33b3ea4c2c73abcec324cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.157-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8e7b150ee221324319a89f7cb795171a03baa58ca6235a86338e602967544c90
MD5 54a16b1ebb64bc2945ae00711d9ff1f8
BLAKE2b-256 726cd7e4ba88e334e5beb2f249a6c990b2384680a64a33712dd1e4211b9acb70

See more details on using hashes here.

Provenance

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