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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.71-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.71-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.71-cp313-cp313-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.71-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.71-cp312-cp312-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.71-cp312-cp312-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.71-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.71-cp311-cp311-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.71-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.71-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.71-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 431cfa0afbb23c9a9dc109598310557aaca13c8514983b67858e39c9db9c357a
MD5 6356b5dabe23ba2aeca77aeb3a9f50be
BLAKE2b-256 d6b2373ed77927898904b3d0dafa63b3f3047192d741342c1496f36bbbcdf97a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.71-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8f717914ea85994fd5aebe0a23b07ad7c8f379a6cc0bb2e29e589a75ed799981
MD5 1f6e9b7b6b6dd7821d387398b69e1f28
BLAKE2b-256 8c03744466734c656db03e572d571da59961394ec733491ddd153985fe1a619c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.71-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 f56a5edb39df093b00cd0781c4f9b6a4530eb9331a4fe120aed8d4c9f44df380
MD5 b35a016b3a2802e60cef6a42e8158731
BLAKE2b-256 9a72a0957dd68759060b3df6f1cab08defb3618a604c9be1417a57ba20d5f2ea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.71-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8aa11166768d88c576a3a691dee33867a51e4e8d5346c7dec06f8599b6b4fb71
MD5 36d5f0fb7ac352aab370eaf762fae03c
BLAKE2b-256 edaf54e0039f95546aa866b4dc0422801d373e90ae1ba4354655381fe247bf46

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.71-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 55246cc6e162fd9bc4a6ad4468208de465e802539ba6521efdf8a60cfd5746be
MD5 3214dc6c9cebb56d6242fc35292682aa
BLAKE2b-256 9f8dc1e6cc9b3456ecae8db806150fdfe2b6357bbd265debc1b85d2402873a94

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.71-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4b73563ee633649a7e9cab8d81567604e618b9e2d77d74837fd5e38d9bf308d9
MD5 f8d86fa63d90effc010286c63ab285d3
BLAKE2b-256 20c3972f22d96f74e2d9a265c603f78b72f7dcb715e48efef348e103c42165b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.71-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 73b49a9f33bcfaa12704f676c6e8653a4b453ffbb58cb902e1c0a30cacff85e5
MD5 8c53abd15c33146c1d8fc5f641153795
BLAKE2b-256 53020774ef814fae9644c700bea41986d10366c7cb5cc9bf90c43713332dccb0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.71-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f6b3fa3aec5a51bf4760791c0bf994d5d693647f2c234db863f3279636cdd87f
MD5 a91857329b003d728d2dbdd28dff3653
BLAKE2b-256 71d1cf371156c148cca9489e180f0416c9657233da0ee7b923eb6502015e7aab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.71-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f5e059e813d655d47f7e9630b01149776ee6315be8069a1565c8751ed929adf4
MD5 5db46bd11021709de4dd9940625a7d2c
BLAKE2b-256 7c41cf8bcbfd39f9426191139925c90143d2da83b22f2533c3351e6e1a532735

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.71-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 771348681654a73a964a772b2e322f9759faa5e09da48da819cb08034448db85
MD5 be208adadee8d5701a5d8e8ae7ee4d80
BLAKE2b-256 2874be1defef6a90e53d2a63a5b72bc77e22ad674cbb7fd0f20ede6a3450478b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.71-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0cc52f6fd3bb85f7e513bc01434212c3052ee43e7972f944fe0344a1ac156329
MD5 c56a42d1b247ec7aff6d2f2f86e76023
BLAKE2b-256 320ffb080047faba219ac5d8c38d383d18737c50ce2d2b9c818d6482a81029ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.71-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d277bd440c441c9d659d52af3e6663a6acf9c789f2c5df37107622579b9c78b4
MD5 93c600730cd295717094179fc01b2328
BLAKE2b-256 48284e2aa564d0233ba3ae795998d45f920fa34d5d5dc9a7de0f38c88d50bfa3

See more details on using hashes here.

Provenance

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