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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.111-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.111-cp313-cp313-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.111-cp312-cp312-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.111-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.111-cp312-cp312-macosx_13_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.111-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.111-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.111-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.111-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 18fe938b91d9f8a8e2ce0ff5b825bfec697a5b6d10d6fb6181e1b5cd9df76a99
MD5 b4ecdc899a29a675d2b91c2e643c431f
BLAKE2b-256 6a32bb85d12f6a5d817f82d8ebf110f01ee6e953cb740877ef21c53c8cbeca3d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.111-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1ca71a6f5db3b4242b32de9a68b68a71e4fef75a58b92c5f33f35458e3a5a92a
MD5 0815917d302f26995464949bf9d1d95f
BLAKE2b-256 61d4116ae44ced099c253e3a8fbaf010a0d598ffaff3e5b84895208e320fadaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.111-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2d2e0e5c0390b7d1c40c0eae40f404eef85ae50a99bff50cf31b29176f02621d
MD5 343cd5ed7bad7dec69fae00e33f3f3a0
BLAKE2b-256 f1ac569f55563a92e6faacc2e4f9319889bfe41c26824ba9737ca59c624b8206

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.111-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ce09aa9584010ac51d52d9efab19085d9750feb2b88264fd7ebfb10d3f1741d5
MD5 f1f7cec904f29fce346e9ff5e17787c1
BLAKE2b-256 f7f97fb93bd7fd058166896c7e6461b6269c7556ccfd56819bba783eb0638384

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.111-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 db9cdd6c4845b8b8e275e907339c1ffa3301bb6c31f754cd7d77a4fe1067d100
MD5 90ce4bc3dd9cf01a50936a586b6bd766
BLAKE2b-256 4fd8fa61d062a1e21ef74d064835f038fb7308caa73c57bda39aa8b597946129

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.111-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e8e32b9b04f678718acecc43f9390b468684d46eb44540a8f74e818ab01e9ebf
MD5 7841793e18d16420da05c48ac14d09ba
BLAKE2b-256 c27bc7db5dd86d9f2319e3d67454ee7ff6282f267d6ceb1cb5f5a788c5a41c83

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.111-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 844a7de058b24c78f0f6d8561337aa628b246bcc5a6eeacc01f60bc3bbfce3e1
MD5 84b5a4ceb93ce984a03cdb22972e6f54
BLAKE2b-256 a6f3bff2bcef057eaab8aaae0bbef86ac2d51f69fb9d87500cd9014bcd96634c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.111-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bc8cd025e9b2b795cf06bc743ae00177652c555715cceaec2447aa1176917d39
MD5 b3d1f7d3275b4f711002ab94f5155c5c
BLAKE2b-256 c1f65ce586aacee8388f9b0f30d4bd6a92287b9b63c2a73ae05422d73b1cdfac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.111-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 95eddcd16a72c0b47aa592c451b7e22876ba8bc749a48f1c19edd4b13fb4c3d7
MD5 ec0d2008d4df89f19839da79bde2fe50
BLAKE2b-256 6c0a8b694facaf299812c97f5103967bff3c194b55fb51024fcef40214b663dd

See more details on using hashes here.

Provenance

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