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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.56-cp313-cp313-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.56-cp313-cp313-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.56-cp313-cp313-macosx_13_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.56-cp312-cp312-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.56-cp312-cp312-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.56-cp312-cp312-macosx_13_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.56-cp312-cp312-macosx_13_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.56-cp311-cp311-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.56-cp311-cp311-manylinux_2_31_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.56-cp311-cp311-macosx_13_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.56-cp311-cp311-macosx_13_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.56-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 efa5b4b2659f50b3595bd8ba874547e2939457f78f06a82554110790c5ad091c
MD5 6c204bc4ba3de9c278fa2930e9bd1452
BLAKE2b-256 fa071b61336797769276f949c926bef2b85e62e0aa1959a1d18e09cae020315b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.56-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4528651d41a38e936a88f4499b8054968b6cff9b27de5b038b769d5d5e3573c2
MD5 25ed36e0e5be3bd26243db7baf498a4a
BLAKE2b-256 a504ed3128bca95aea705bfff2dc2fd51a477dc1808cc61b430a298172a53579

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.56-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 daaa64ed01d0c4332f2daee4d6deb5185a6ffd5afc217d3a89d39c3e2eff1bb3
MD5 5bc0163cf38abb4410f475234395641d
BLAKE2b-256 4996911541dd8810a1321bc31d5bfd01b12b1e21311dccfa52e87b402cca6289

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.56-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6fb22e91e855ae3e7a8664db7270ad6166920cdcd617df048b63a98b6fa62797
MD5 3f67288f3ee70b27b0974423b8ae3d0d
BLAKE2b-256 82b9c326e7f5af89610c322a9e5de07c8b966589a3d36716be95fb4ce15f5630

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.56-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 13aba96f94a8ed1bcb88b3688977a07a5b9eda6927a568b6eaedd4cbc1fff019
MD5 2d923dbcecd6cef4cf5c0aeaee944443
BLAKE2b-256 4042b9cffd960333dd6520117869c7edfa82475e39a79864d75b0b0801997ddc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.56-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 fd9cfe8e22e72ce73097c6371b6fc57188120e0b6eead963158d752aade9732c
MD5 96df9b7fef5ba658a2164abfcd86144c
BLAKE2b-256 b6d0768022c775928af6f66b4f7e95e2875c4b85a6d231e691e8b479f9598b17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.56-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a9b0e88e7c2827542e1bcb9ede87ad77ad2df0e439e8d1cf809a9142246a6cd4
MD5 f25ad2225c28f9f76130fb3c6fc8b9f6
BLAKE2b-256 0d3679e1bee037d84f1b36e479f240551f8bba08d68c7f6473766852d42ffe40

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.56-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4f32112ab29ac5089b016e5d513ceb71ed3952b724bdf9b3c23a52cb9b43b8cd
MD5 f7c54d354b36fba275c3a48b8b91dcf6
BLAKE2b-256 f03e04384aca0df71a82206348f6050e37a69c51d9c0efd6b1af6e351db5fa9c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.56-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 66c5a7e5e27ccd6e9f3aacf528d7b8986bb894bb6c5860678a617fbe7fa65639
MD5 9f1b3fc1b9aaa2b7213f4dabf682df52
BLAKE2b-256 6a9b7333e3b10739db4436e0a1bae643377c797ad46d7573d07e3c8e12a796d2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.56-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 402da2e7c7821166604ee77b09b84e43bdc64a416be274c14219e716d7563b84
MD5 242b28cde76bfda4b30806b87dc87f85
BLAKE2b-256 aa2bf5daadcd3bfec50909bc3b7e2927fa84257a99838beedbc1d397bbba184e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.56-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 c649fc5d3c42c465fa144632955dfcf9664ed9e5ba063d2c3aff1099875fe9cb
MD5 ac8c0603bfcc171ba59c638c55cdae94
BLAKE2b-256 34c91db115bda768bf71f5272515bb2bfd728632782c923dd14a4e2401e951b9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.56-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f45f6d7258df7da01c0fd22f718b829120b00400bb0b8f322f091ecc21e4f14a
MD5 f758fc45db225d48f75ead38202162bf
BLAKE2b-256 d68d88d9867791c9fc76c79b6c2a46823228f65b7f3d0329cd16ef6ec7d38c21

See more details on using hashes here.

Provenance

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