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

  1. Python 3.11+ - Install here
  2. Pip (if using Pip) - Install here
  3. Poetry (automatically installed via Makefile) - Install here
  4. Git (if using Git) - Install here
  5. gcloud CLI (for authentication) - Install here
  6. For git installation, access to the GDP Labs SDK github repository

1. Installation from Artifact Registry

Choose one of the following methods to install the package:

Using pip

pip install gllm-inference-binary

Using Poetry

poetry add gllm-inference-binary

2. Development Installation (Git)

For development purposes, you can install directly from the Git repository:

poetry add "git+ssh://git@github.com/GDP-ADMIN/gen-ai-internal.git#subdirectory=libs/gllm-inference"

Available extras:

  • anthropic: Install Anthropic models dependencies
  • google-genai: Install Google Generative AI models dependencies
  • google-vertexai: Install Google Vertex AI models dependencies
  • huggingface: Install HuggingFace models dependencies
  • openai: Install OpenAI models dependencies
  • twelvelabs: Install TwelveLabs models dependencies

Local Development Setup

Quick Setup (Recommended)

For local development with editable gllm packages, use the provided Makefile:

# Complete setup: installs Poetry, configures auth, installs packages, sets up pre-commit
make setup

The following are the available Makefile targets:

  1. make setup - Complete development setup (recommended for new developers)
  2. make install-poetry - Install or upgrade Poetry to the latest version
  3. make auth - Configure authentication for internal repositories
  4. make install - Install all dependencies
  5. make install-pre-commit - Set up pre-commit hooks
  6. make update - Update dependencies

Manual Development Setup (Legacy)

If you prefer to manage dependencies manually:

  1. Go to root folder of gllm-inference module, e.g. cd libs/gllm-inference.
  2. Run poetry shell to create a virtual environment.
  3. Run poetry lock to create a lock file if you haven't done it yet.
  4. Run poetry install to install the gllm-inference requirements for the first time.
  5. Run poetry update if you update any dependency module version at pyproject.toml.

Contributing

Please refer to this Python Style Guide to get information about code style, documentation standard, and SCA that you need to use when contributing to this project

Getting Started with Development

  1. Clone the repository and navigate to the gllm-inference directory
  2. Run make setup to set up your development environment
  3. Run which python to get the path to be referenced at Visual Studio Code interpreter path (Ctrl+Shift+P or Cmd+Shift+P)
  4. Try running the unit test to see if it's working:
poetry run pytest -s tests/unit_tests/
  1. When you want to update the dependencies, run make update

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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.35-cp313-cp313-manylinux_2_31_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.35-cp313-cp313-macosx_13_0_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.35-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64macOS 15.0+ ARM64

gllm_inference_binary-0.5.35-cp312-cp312-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.35-cp312-cp312-manylinux_2_31_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.35-cp312-cp312-macosx_13_0_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.35-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64macOS 15.0+ ARM64

gllm_inference_binary-0.5.35-cp311-cp311-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.35-cp311-cp311-manylinux_2_31_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.35-cp311-cp311-macosx_13_0_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.35-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64macOS 15.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.35-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bc20db2ba8291fd5766df02ab041920b0b7c7124176f96e930b8d671f3556ac0
MD5 693cae4f95a662f51eb7fd388d76af4a
BLAKE2b-256 a88e31e92e1351d3eaec48b220b44c4aa17511c31dd1e90515f1a1f58d9a6108

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.35-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b0493b7d27bca4bb64d06ed32d9c30eb082dbaa83eb918644bc59e9c4dd6ef10
MD5 190e3366d4481664438f16e7fe8d7160
BLAKE2b-256 19472294c2b6c45e53095b48fe801aad1255859d8775793f4b3f3592ca7524d9

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.35-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.35-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 025233179fc051cf07b66e3c3f6e829333ed5f9d2365a6862b839a481991ac14
MD5 8d85ccabb40895a646ad091c2110adaf
BLAKE2b-256 c8539c206c731749cba28030d4c22fe56d51be4a0815ad9f3307df1e41de8dff

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.35-cp313-cp313-macosx_13_0_x86_64.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.35-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.35-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 cef853fb5dbf1293ee807bc68b28bcadf9aa242fab27c90ff4e6403ffbef2cc9
MD5 03a3b4e455f4031f33cf13e060e019eb
BLAKE2b-256 0303d3b1f9fd3bed102259fbde7d204c1b77cabeb72117a984f28c101a8b74ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.35-cp313-cp313-macosx_13_0_arm64.macosx_15_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.35-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.35-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d2c3011cede2d9ecb53442e2e65747b51ccce47a5ce8edc9e7b4ea343f05f2e7
MD5 50bbd6491154c8278bd8bc28465fe0ce
BLAKE2b-256 0c2f75d6d80df670841bda0f9e276a401b7300fd1a0a98be84558c2d7713cf61

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.35-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2c0cc4d105101074f8ef8dffe4ee1db38995ff0296cb13e0f48eace73a69ee90
MD5 780b6d99a18f8f0dfb4855e162c6aa06
BLAKE2b-256 fb736b21a3b289d3b331a1d5fca0aa2c955bf3748c9587c2cdeb83a9cc87dd14

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.35-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.35-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5b74b1bfa09d61d73f92ce3ce80e417305ecaeb02cb6b729140987e083e2bcad
MD5 663b0b964e67b2ce5cfeea12386849d1
BLAKE2b-256 75bc0305ad99cead97966f898f9fc25c6b35a60eceb78cff153f13916f610f04

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.35-cp312-cp312-macosx_13_0_x86_64.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.35-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.35-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 8b42ad1cb7c993a698422b6f55eee8042e5983a313b0b0b61c32f61f02037a83
MD5 a85c97a148f510074f4bb26069603420
BLAKE2b-256 4bd72c64ef1b4388a3be7da3a38afe8476a3a910902aa4e856b96029b4329a0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.35-cp312-cp312-macosx_13_0_arm64.macosx_15_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.35-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.35-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 40b5d80d035c325f3e21e3bf2ddfaca4b4b7be9faf7336ca97a5d6ef200759e3
MD5 22a8510ca10b358118f4ea91be598475
BLAKE2b-256 bae545655e630ce010a793e827874ed254394176c019676e75a44effd0061bfd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.35-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 da8a2e483aab4771de4e8faa32f010fabc1c248e112885eb57851cf14cbc6c8a
MD5 f5b974bbd2fed0abaec2111f779e057e
BLAKE2b-256 cf9f944fbac84f2e9ebc2c33d36d5bfa170c8de8da875aecda59e2bbfa0d8df0

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.35-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.35-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 56771ad29f6aaf4e801bd8923de215d2e24ccc3121ea2db09cc1306e3a65cf55
MD5 deddc0c7ee35f2507e9bd2464390d02b
BLAKE2b-256 352eed573713c61aaaa06775f036d1626995303e1e70db39e3529f96717992a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.35-cp311-cp311-macosx_13_0_x86_64.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.35-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.35-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 85fd4b77e71a5eb077edd6798e47187aad92628daa0157e5b8a97011a4034123
MD5 4f92279482f24c8e27bed8c5c98de17f
BLAKE2b-256 f50747c3705aaf6c96bcc1d69fae69ba87e55be7eaf33f1adcb3afbb57da7af6

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.35-cp311-cp311-macosx_13_0_arm64.macosx_15_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