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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.107-cp313-cp313-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.107-cp313-cp313-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.107-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.107-cp312-cp312-manylinux_2_31_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.107-cp312-cp312-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.107-cp311-cp311-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.107-cp311-cp311-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.107-cp311-cp311-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.107-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f6535524e91d23ff2063040630ada8ae4324c7f874f21c76e5b5731766937613
MD5 308500e119da21195122c15062bb0896
BLAKE2b-256 3bbfa225cd815b7ce0dda7babbf34a4f1bed7f107441b9a212d1c9757136a36a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.107-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5af47ce393d69e56021e690a7c9fbcea59f6713821c04bac82cd1d7dc101c6e2
MD5 df6ee5ce6e7f2fe72e046af726993281
BLAKE2b-256 254d2b8d89af74d2aa4473baaad1fa74a8ab06d84629b5eb3f09a175b3d91db6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.107-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8f512deefaec3dbc0ed25b1b1f6f14a605a18d0a7f0860cf7e3d9583bd4e7775
MD5 f5e11d4aecb8772975fbbc36c689c6ac
BLAKE2b-256 8d21f5747a5c609e164819b83c5dd7da85a917217438b86dea8145cd6f616b05

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.107-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dcd764af0d58e23ab3f28d2f44a863043c7fd8a83777a858b8f07f9a20df5c99
MD5 2f20ebc5a5a2e6be1fd9893ce39eac16
BLAKE2b-256 b8f683730e0abbd12605e1f2ce864df704895ad85ffbd44fe8d8e09c95e5e88e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.107-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b40f5aae4084818b44dd72b2d789be72efc6e01d742bc48e7b5b1133f015e543
MD5 31ddcc1432c17e9ba9e27eed83ceb6a1
BLAKE2b-256 a2a0ac12acefe9090f6c4af33c282e64b09d0a1a02c3bfba82c6b87b7a4a754f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.107-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9888f42aa00f048e7e85a705ddcd8cc63093be3b8034cbe268521f97df04945d
MD5 bb9c2bd99dac5bda588211e85a479034
BLAKE2b-256 d457aaad77ecd9f5709700e6aa81636afd7d339a836219f6bff2b65c0949721c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.107-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 de4e6f8b44496ebc33956fa595ab033d3e3178b5ef88fedde13ce6572d23c710
MD5 d5928601dd8880f79acc17704aa0b060
BLAKE2b-256 0c35abfe12d0b75c8aacc9e4d1bb1e3defa294e6cd613ddb4f4a7eb6e0ff0093

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.107-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 164af3fd71c3cedbca433d75be4e9dcb4335fd833d82457adcdba93261887e20
MD5 a381cf0ecaacf71c115958d69dc7ea0c
BLAKE2b-256 2646c05ff40ca9e4e30d1cd21fcd8c3bf09f05653d37eed9c025de464c756b05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.107-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e496a21d1b18c3fe2a6a569b53ccd18e5cb080dc8f85df95b72942b0a661f778
MD5 cffe7465fe407c91112411086d21516b
BLAKE2b-256 470303b6314223a7480db90862601b7029a87e67a3df81e3bc1c3422fab07ee2

See more details on using hashes here.

Provenance

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