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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.148.post1-cp313-cp313-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.148.post1-cp312-cp312-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.148.post1-cp312-cp312-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.148.post1-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.5.148.post1-cp311-cp311-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_inference_binary-0.5.148.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7964d14f393428347dbcfc479f23d94e1e15090d8e6cf8ce2a679e3535a1de27
MD5 e7fb4ae46c1233e152a0c55025a0c7ce
BLAKE2b-256 026416b7174d9633b8fbab0dd2d250e889eb3f41b7c80483ffce15350ccdeaf1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 7eff48b3496f9c136e18a465fe7846911756fda2b72ef8b78053ed311ca247ca
MD5 0f5d02af9b4105038c16ccc1306e0064
BLAKE2b-256 d211acdd6112ed3f3d32a2f3690c08259bbe69ac629a93b4b01c66fceb37ddaf

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.148.post1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bb1447a3d8e4836ff8be9d57e4def3567572a71c9561c77257bbe318aa147e4f
MD5 efb9efe087a75b232951e1c8c3448788
BLAKE2b-256 d7e2b7f646e5128b0f1fc6e09abeac40f1eb3e70ba7c820358c0d8eba34b0076

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4b07a278ba0fca65565f45d52044a91d7e54d55fd01d85a00d47738ad7e478c2
MD5 2b8d97d6b4c93507190be416ed59d596
BLAKE2b-256 a393e4aa1a05c230b339cde8566ffc2e0731d8dcf933051395a8a3729749e6d7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 68b9bc712386f25625ea457c38aa58f7c17f8cc0d864c0d7a463d742c78f1d6d
MD5 66d8756031cb76c61626e915f3a872dc
BLAKE2b-256 03a05bc3f67cc0ef1f35bd7d21013a218ce37c546bec53e51621f6bafa70a95e

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.148.post1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 68eb59c999e078c2cb8361a1bc17418b6f436c14dad613f3e6997d6ac1ac2f94
MD5 ccb76daa88e13f688d8890996017637f
BLAKE2b-256 eecad205bbf74714fdbe215113cf9b80dfb2b0a6e3e16c70f5c1ea0bcd497118

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 83b4b7a9dbaa0b06aaa6e99cb68472505a063f5cb2483de4f1ddd84b41e9fb19
MD5 24418ef0dccf5a50c43c8db6f4f18011
BLAKE2b-256 d17e5a63d9a346bd1b1437aa03f831562b0b737e857e72c2f335c3121a8a4700

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b002ee217c38f0d0c04458fd7bdddd3831457c4688bb4d3f6d46fa30a009c67a
MD5 db3a483a160f18344f8355ef848b1c4b
BLAKE2b-256 9aa6bbd0016685d608fc1ccf5a0c127e1d53ccc605cfedf27d2154812e6ae89a

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.148.post1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.148.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f9625b79bc78b2cca05fc12f0f75b64898d7985958c12170dbf5bd623e834de4
MD5 6f08d961592c40fc7f6d1f05beb92d2f
BLAKE2b-256 96f5a295969f4bdd2997d4da0c9eeca5fdb1a1a31163c8bf37d8f3c921a6847d

See more details on using hashes here.

Provenance

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