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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.77-cp313-cp313-manylinux_2_31_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.77-cp313-cp313-macosx_13_0_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.77-cp313-cp313-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.77-cp312-cp312-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.77-cp312-cp312-manylinux_2_31_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.77-cp312-cp312-macosx_13_0_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.77-cp312-cp312-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.77-cp311-cp311-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.77-cp311-cp311-manylinux_2_31_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.77-cp311-cp311-macosx_13_0_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.77-cp311-cp311-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.77-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 cabd4de96706b337ebaba46b0243263e8988a04b08f8c950d33370f0a1bc9e81
MD5 d12dc60ff8ccc922634b5f8f63d2ab89
BLAKE2b-256 e0ac510a139833c58524297aafc0fde523492534174415be063046b54b5f0359

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.77-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d0ad86a33e237ebf6e18800685bd0f583843e82b20387abeebc0c131ddc0c0be
MD5 7650eb947267c78b7381108b8e5f5349
BLAKE2b-256 711e076849a6b733d365b1c6a92b2536d99bc6b02be85e697e18cd4f50f26d0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.77-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d046a1dd36e062df0d94d5b531017d5c43cc2584016be79fc9fb60bbdf412522
MD5 b8c9484780a585b21bf4abc6a1a64f75
BLAKE2b-256 46a49c40fcb2464bc072f3b17e929e821b01df415600174d711ba1195ebaf08a

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.77-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.77-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.77-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 dcc7a5d67d18853631f1f3d1e10725c16f296b2c9c59fb569e26e14126438215
MD5 762e3c9133c3d3c359def496cc675df1
BLAKE2b-256 86b1e88f2b7bc3394ddff8a7afc7df0abad58f2bf908982e8396d2e24bd875b2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.77-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9cf0d0c8b4c1ad5cf6fd83cbe9f1d75e1fb6b022f1a01d606653818776a2a5a8
MD5 0c7a6bb6c4aa0fb6cee8e18ca517783f
BLAKE2b-256 d7995c1f2fb4e3db2d07f4cb2a9cb8d9bdf38234beb6acba8bbc9be4b8f40115

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.77-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a1d9d36ee5ad6f8a48f0ada50c7db4ee90bc2be7baf80bfc500a78d1c8bf288b
MD5 e89464995595bea571cf0b0a10336de9
BLAKE2b-256 83bc7794dac1500c775a4487d596a45c6804225e60e3cc7e01d33af918427d04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.77-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3b37aa79f32a66df652bb907342b9eb02613de0b099c9d530704c0826639d176
MD5 ea440f800c1a1073dcb1804433419ee0
BLAKE2b-256 ff39e489851ee252d68b9eb5f10a940eabe305ac82a166d30a7b14db7bec593c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.77-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.77-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.77-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 97d531d9727d2f7a5c40c1fab5f5b317545601090593ddcc857becc44d0daad8
MD5 177da33990d68de72866332259aec6a8
BLAKE2b-256 46e8c6d2fca85ad383f535431816273a5db54dc088ccd628dd82eb7cd67b8f56

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.77-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8883c1ee83e6ffd6488d51145ddf495f12d99e3c54acddc3876d843659c70f9e
MD5 e825718f784c90809fdcef610267e7ec
BLAKE2b-256 42f96aeb2a3d7c22b8791bca4553497ba9665cc1a5c26817180696bed3e30971

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.77-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a01b79a1d66dc036793b65c610b2ec7295b94fe46be03bfacece13e15c61a7ba
MD5 ffab879fbf8b6df72145cb0587e3d7f5
BLAKE2b-256 dbea9becc16d4e720add37087f2eb85f4687a386cc11114cb261d8b80cac3ac2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.77-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2e37b9811ee2377975c090a8eb6a4be91782ffa0ee2a04407b34466d783c9318
MD5 27c92c7c83b4c7c55a0148b7af9144fb
BLAKE2b-256 db493ee75b3e05fd6b6e420eb29a4e63a63a95c0ed05b8e5c115d8609ad6721c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.77-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.77-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.77-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b6e046848a4d678a40a6f32c1d19a5f8518696c988d3d45160e0c09f1bf5d6cc
MD5 3823c79a1171fd884bb8c6d5ed58d29c
BLAKE2b-256 fe1018a3a987ee3f7d64a1862178bf1210b54f673fb7ef86c857b220414d398f

See more details on using hashes here.

Provenance

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