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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.46-cp313-cp313-manylinux_2_31_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.46-cp313-cp313-macosx_13_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64macOS 15.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.46-cp312-cp312-manylinux_2_31_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.46-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.46-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64macOS 15.0+ ARM64

gllm_inference_binary-0.5.46-cp311-cp311-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.46-cp311-cp311-manylinux_2_31_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.46-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.46-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64macOS 15.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.46-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 994cec141a92d3be66034e91552171e111124827fe7db981d09dc5c86668b260
MD5 85a9d81af1cd48f0c471c92a768b380d
BLAKE2b-256 c838d32e2f616a40c6fb32a09e39537e7d88cb2edb11a2ffa1dde71c4a87ea20

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.46-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5a57b38f9d24f85d00156c1cb19850a9cd13a8e4ee54dde45c1b5ae4f771eacd
MD5 e20ee7ce752d555d2be73b7e0bf99dc8
BLAKE2b-256 4ea2e22d1536bd44cb969bc82d409f6fe81db07bebae5bb5a86e6cf52780f94f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.46-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 03fc3810c314a5a01bf02b13dd18bc9c4426b08f408d2075cc0d1124234a0ad4
MD5 e4c9fa3c79730fa996ead32af2ee8d5b
BLAKE2b-256 82dfadd4b8e747b545fab29339bbcbe7b7a3c282fd8f83476c73f27e4702a876

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.46-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 a4a5f7cf15e1c2bd1b8b93203d08aee0f18e12e50a0bc044ae329b66d6d668ff
MD5 3d60b08fffcf0f7f74f7258e020e27e0
BLAKE2b-256 f0e2fa989fd9bd94a79d4151d155704aeda15da1b8ae203f529e9871c8e65aa1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.46-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 577ff6d8a3a1d0229a4847872fe51bf53f752d0c5b40f759e343250589a399f8
MD5 8d9d57d99345639bca4bc988be367d03
BLAKE2b-256 0f94424b8f4e3956ab2d61eeb2dadf3bccb27c716eaecc01838fa7f59e865313

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.46-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 310bea96723a7b14dea30550739ba8496609c97d472b39f3fa98baa6b15d9d30
MD5 5325ec766af5eab6be3118280ccb78d3
BLAKE2b-256 07a62cd1969b97191be1a768e986a68c321bd79d75865de920288b0bc445237d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.46-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 be599d5b480f34d5c654533ac826113730ee0e8290ea51487acf62fe8cab7827
MD5 5cec68fc3d106a630488de46128eb6f7
BLAKE2b-256 5ea014c13252538ef1cf9c847b15c00a1c23350b7307dfe4ff3396d39b54da1c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.46-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 0d78d03f937aa957959d1ca77fd0ba26b6a97457cd811e1e45ce1c96e9946b2c
MD5 f49bbd3292f7281fe216074c212b9bd8
BLAKE2b-256 759ecc2890a9fce90aa4fdc39848670c7f362d2bae7b9635b5c07aa51da65e5c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.46-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b911b41cdb12dd0809d46e800a248525551a1afaf3d12a563d0c4902d1860048
MD5 4efee534d47d5ea047e1e9176d33e8b7
BLAKE2b-256 abf264c251e36e6aca4827a4f5a9daed1b036f3efe92efa2cecfb6475b2d04b0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.46-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 683c47d1918abc9dbb4a4a186132bb35dfc6c756d7837e9566ba795a9e98ed20
MD5 6852c0e0f82a14e93e65cc1a8d022687
BLAKE2b-256 c810b4590b47f15841dfbcb18819a1101e9613470cd65169968489a81d681d4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.46-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 fddd24c0af486219270a2b2528df952d57a5cd986fc0e7b36e7d63c477ba411d
MD5 d214089c5a9cb61a7291d3c4875349fd
BLAKE2b-256 4c70f7ccb918916c425b73eb5c038b20e456cdca6b316592a157d89ed8b70b9d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.46-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 a2778abc363bd0c1b486bd124ac92c87eef107381db45af74c0627475777eb54
MD5 ae9c2930f997755aba2abe4accb60a21
BLAKE2b-256 29279dfd949bffadc3c5eacf8f2a0044eeb151ae14d828ccd86fc50ded5341dd

See more details on using hashes here.

Provenance

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