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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.72.post1-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.72.post1-cp313-cp313-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.6.72.post1-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.72.post1-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.72.post1-cp312-cp312-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.72.post1-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.72.post1-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.72.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b3c9b50b630442d482e15b53ac33dba59f547c0cc9f03cfb38f509b219682156
MD5 d988c80fc09a8f9878816cb527f43e8c
BLAKE2b-256 16da193000cedad940e81f5bb29f2c5ffb628b453557150fc6176612700ccc9a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2a8a73ab28e3e055d677fc8ac9a410124d0822563d9a0c93804e9eb95a7525e8
MD5 c1991d2ced31e9a6afb6d9a28d7c961d
BLAKE2b-256 020e0064bf54a65de006a150809c2a51a88980514468655d4efeaa3ff2b2004d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5e77c3734ce9f3d2610738e912db83d3955d4cfc978e03270205ad6772fdcdcd
MD5 fe9259d966e4f7fdb372f27c75dc9b13
BLAKE2b-256 37d6279adbb0877393b1c40f861cf014bd492053254f3fab352c0b5de0391fc4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5ae1fc27a1814415c33de7c7687eb0bedfa99cb0b22d66d978ff86fed72ba8af
MD5 e8c6606ffe6a5337b149b002f1da781f
BLAKE2b-256 ec85bb1deaf472d09187e647f572bcea064eda1aed83e7e153b25b2735a50abc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c576a301aa876049bb96b7b65c816d9843cef5257d6c8f452304e934b8939579
MD5 8fcd80aadbd6ff4ac7f1c1c6d6eac44b
BLAKE2b-256 139c18d3de1594c8cfa98d8367d2dc57616a53a19911b02bfd46d0fa5564e75a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4e7a7d8a144308161fbf191f335e873cb4a699aba156f0415fa674409ca1f37d
MD5 e12a6ebc44a82dbd087f307d192cebfa
BLAKE2b-256 c14aa5972826e6209e30ec03fc3bb70a52c506f129491f421fd26538535aa3be

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 334ef76dbd5847773b5125e0a2a83e3b9f85c31d64977b4b79045e7cb7169916
MD5 b7fc14b4764634657905d8cdf05acfd6
BLAKE2b-256 47279409915108efffc30b760b2c29cae7237d98cc7d54096c1eba5f54f5ab6e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 748d76f2a2d9b897034fd77b10d297a75beb7df263766c4e06d50cce8f2b1737
MD5 aa7bb995263e59bd4d5c1e47ae631d2b
BLAKE2b-256 279f5eea5e23ff4eceea96660baa342af058b7f0f3c110b86e17b03ef26f4711

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.72.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d17618e4fd82d149672e6e82d1c7140360858a428eeaa429d28b67f365f8cb1e
MD5 d4df0edde9c280f5b523376c5fce0c20
BLAKE2b-256 2efce3f54ee66c167b033a61d2be29bf7f614e5559f0106bb1986ba822933e4e

See more details on using hashes here.

Provenance

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