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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.6.13.post1-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.6.13.post1-cp313-cp313-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.6.13.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.6.13.post1-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.6.13.post1-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.6.13.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.6.13.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d626348e93cf13038fbc8f8927fad414beb2443d414f41fbed20eb01bac71f46
MD5 f41ef40172b493d5dc05682c8081c9cf
BLAKE2b-256 f941cbacc4dac62a8c57c4ab71b7019e20d8f59169ee28e3e155f2f6bfef3111

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2410f9e9b3eb6ff68de772e8a682a3a182677c153cb86add50a70ab1b0fbec33
MD5 e2b64f7d9d250d5f65e976c6677c4b5c
BLAKE2b-256 86424c8b329f8aece04383022119320df5caccf5f7e23662f58cf5f5ae48539e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 499c24d914fb267367c43f9e475948c987f94bfcd4aecb7c9a6a78e7c8d72d2b
MD5 91f7a2e35da18b0550438201bee83208
BLAKE2b-256 37f8999904ec05c43f072d6bb6aabee2b69d4e4c579196908bd31af483349cf9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ee2b3f07410ba07fea0e06edd14844a231a76b74144a96129b41d9df9aa73d4d
MD5 bb5833e3dd44bc4ed5bbb1d33f660123
BLAKE2b-256 8335c88dac0c555c23bb2c7f3301c291d805fe9c8cef48b0b3687e33e9d7f4a6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c0c542c9b606108381732213826e8677c5cba61545f29bd179b662facda69001
MD5 172db532fb45a1c6c6f95b707475b165
BLAKE2b-256 b797f38e6740e0e882faf16e2462c03e06bb3de5f47079eed4ea3324ee94de27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0e7d87dc102b40daac764998e6be03e101af8a39530287c96e9ec4d086d491af
MD5 d202f3303156902458f6c890d4dce899
BLAKE2b-256 d832a735cdfae7bcddee668217d4f7e14f988d8338e69c3d224cda4ba81d24c6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ce963d96434fd8f6340742c7ec9973f9532085a17c0eeade94a0ba4ed14db638
MD5 2739455ba3836bb7dd27bde475c95f66
BLAKE2b-256 32ca1e60879e95848bf60f1289c2803893261128227165c0f690d5a277fbcd54

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9dc96a83f2ebd32738a1e12b2b0ccd4611143dabd3763ed6a5fea97b9b954252
MD5 88d7349e989fc76a7488a659bc96925b
BLAKE2b-256 537239df498cb17cc49efff51315726e4dfaa1e278e5153c67a93dbdc5287cd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.6.13.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 059101854c283653ebcdef16dee4227a072991a0ed4dd3ce93b0ac59e6b4e10c
MD5 eb0232fda446a7cf537c2a882b2f5a0a
BLAKE2b-256 57e3ebb566014f695e0985165cc649a76b623469217b81a3c68ed7458ac5e099

See more details on using hashes here.

Provenance

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