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.91b2-cp313-cp313-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.91b2-cp313-cp313-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.91b2-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.91b2-cp313-cp313-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.91b2-cp312-cp312-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.91b2-cp312-cp312-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.91b2-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.91b2-cp312-cp312-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.91b2-cp311-cp311-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.91b2-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.91b2-cp311-cp311-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_inference_binary-0.5.91b2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91b2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 51d55a2fc3d4fafa700634879992ee0e6fcc14156f2f757a455af5100ecd40a5
MD5 7aa970e90a966b4565ca4c555a6d070d
BLAKE2b-256 61b7525d7ddf335d938f07094df00317cf5112eacd46fcdd329b3d9d7f40ec86

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91b2-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5aa43b3961e13821db7fb06cec5087835ab7ca5dffdecafbf53a34f6f5f7ffaf
MD5 f331e7bf5a1f291ba4a986e25eedc55e
BLAKE2b-256 a4361dd53caad26dd05bd9a0d455f06db07b6020b16ddf9f890e0fbc1e2977cf

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.91b2-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91b2-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 598a31d5805c021b899c6d6a872f53fe028f25ebe55947a70d5a81c8dece46bd
MD5 1a3f71d96a25928f7aa75a126d4be0ec
BLAKE2b-256 36dc3da12f7364f89ce4b095e59a5c574ebda362a3d76271920b752d4ca9853d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91b2-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c5a7fb0b39df74acbb7bea815aeb69dda00c81824d9c29a8ce05697452321bad
MD5 7ce43f42b54bc26e10ece167235ffbce
BLAKE2b-256 51fdaf6fdaae757de9680bc57946d24f52dbeaeaf72872cc91bdba5091b19e1e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91b2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 15e0e212dd4db455619b900bc1ddfff437fa7f45e114a503b48f171cdb9fc1a0
MD5 cf3a517cb8f088f6a851868279f084da
BLAKE2b-256 e69928077b4307440b0de62216b5ed5fe4ad6682cbf668681a69aa882a997d54

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91b2-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 219d0459247fff993a31be5fa9aa44abbe208cbf804f19e661180af8dfc965c5
MD5 17996b2e627dd9ceb58e521a1204d06a
BLAKE2b-256 4d619af3efff4cb9f5905db1ae1203a01abb4a912d1c5eecc19279cb557b49f2

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.91b2-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91b2-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4d1bdf0bb30183641db84dc7dd2ebbd3565a037d99e949b0f58059b363a1a95d
MD5 80a9d957e8779df7a15a4d3af861b5c5
BLAKE2b-256 ef87069e67f66a483e5ea9eaf7d9d0a6fd8931c472888ae3fc7b87fc2432d702

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91b2-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 fc23a4e3c7763b34c0e61f21b58d34157ba6e0cde6256fbb7941b2e35c18c61f
MD5 67de286c90ee49f762b2e3e489f9eeff
BLAKE2b-256 a2d293e2084dd6d1ad42d2710ee394307bb59c0463584660372b1af167f40669

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91b2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 01830f278101ca8c109a481ba65e71bebfbc2f4b94a1c20fbe5edc6f9f5e73b7
MD5 dcf54e4cd258204b559c03e4d22c8158
BLAKE2b-256 23c60d686d00cefef3aa47b9a601af8ea57c0931121df96c0014c38c1dfbc736

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91b2-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 98e80a1a9487dde460d59b1c25df847abd2f24f49a9396afd7c07bcce94c95e8
MD5 e775f282bc19fb6179e6b9607a72afb5
BLAKE2b-256 b9cb5b718bd25a98fc7b63274e7990666e5e74c53d945cf0a57e48959f1413ba

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.91b2-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91b2-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 21d7e2486c9b5b4971119f1eb8c377ecc25cc4d34a5c07242fc0bc69784dad11
MD5 ab1fd52ad612ecba97b5f473f3f75a22
BLAKE2b-256 c69596da42af3b5c0adaac0b25e1a56fe64ffd1705e1fbd0e7d3d18ff97ccd15

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91b2-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6f6960a5b83a29384acbe75fafb5bed5fc608eb0a328dd11a44f1372331ce817
MD5 8674c6e42220d1f84fa10c1a9786a0d5
BLAKE2b-256 c7131bbc424c293a76c419b89415569c8864d88ecc9fe4e75f24fcf73c256b34

See more details on using hashes here.

Provenance

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