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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.49-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.49-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.49-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.49-cp312-cp312-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.49-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.49-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.49-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.49-cp311-cp311-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.49-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.49-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.49-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.49-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.49-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2cbf3470127c89e3b94e7f4567e21744285b429b843a8a10ad2178b4b6963217
MD5 496a431ac45cb9af7e15b4570000baf3
BLAKE2b-256 f11960d35bea0182e86a1e6032c86551273292767b2839de2a014e87a2c89055

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.49-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e6f1b1c0fe109f4e2c245ff9c43a2d56d2d25cc0fd40ec3486bf77223ef55059
MD5 5192cde6640ba37949b3a547a31ae03b
BLAKE2b-256 27c84fee03fabd72ebc6b1f309a77eae98314b7fff98621a61c1655a7c238833

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.49-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e3fb8bfe2ad3ef6483094b2991f5d86e1f5a27696ae416027e52cee4e965fcd7
MD5 e5a7197ab8c07a07b2909674b9997f3c
BLAKE2b-256 1a2e761ac4368368282542bf662260f1bb8252ee14732f8ae5d39334641a5144

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.49-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 f8e3e02173f32dbd32ee545d7efa5d76485082864cf6017d29407e9c01be8db3
MD5 1c5232cf688731911b6dba66f1f63592
BLAKE2b-256 63480564e46d8c1597309e8bc0d6b687298a78489130f79b8b10c1e629a60bbe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.49-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 600a4568bec6ab7fbaddd96534f9078cee2687ce23ce4da3ed49e6e6c7004625
MD5 fed92100b7bfef2311adfa8d661d1a40
BLAKE2b-256 41b82289db6f916bcebc7e9c601de4ce61624f608bc146ee17bec8dcebf6f994

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.49-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9b8c27f2c3e9ae1786aea4fa12da7c8cb2b47985334219981f165be551404b9a
MD5 e2f4d33a2a877114876bae984df076a3
BLAKE2b-256 06b78998dd2c252598bd238ab55caa644437def890798c024cd69cc16eda8cfe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.49-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 86efbf3439285114b4882bcdbbe7c95f3dc00e44a692b18f4b7ac3fc2c8a17fe
MD5 9c09852b45a654d7907fc3ccc81e48c1
BLAKE2b-256 c393977210ef45c96d837636540a4961b4be4062e3d5d580079f5fd4a7f2f121

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.49-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 43106d4ce3b18adbd9164a3bf745e555b06cb689d322c3f39486be5c178f63f4
MD5 3fae70213866599416624e073dccf842
BLAKE2b-256 7884ed4e1a704277b95ac81a40f155cc9c59682c3be2e0eaa66ce0076492c113

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.49-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6e488222ea264c26a55d5a3da60ab14990b9ce36afe41d4cb197cd6c4801be3d
MD5 a3f038796062adb70e7b66218e403df2
BLAKE2b-256 c2dc7823d9e8a80c4f55b57811dbf2a0bd4cfdec933331521162dbc17871d728

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.49-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ec4da3cfdbabea97070fe89832115c5ff3c240f98ca9787ef1d66b718ae828e7
MD5 90ee7c2a38bde36f93d51dd9ac5492af
BLAKE2b-256 6af1d6fee2496e2bc369e89364525570cf29176b9cdeb2d7c260be6daa53a27d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.49-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3f66c7eba917e4cbf83906ee5c76a5e00982eab747ea48c4706acd9a3631532c
MD5 2ca6f849587bcee365c12f7491cdeb27
BLAKE2b-256 422a384ab301483020a75e8021b04c4b05b91a1a7d0124d23b36e89c2132435f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.49-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 34d4ab4d66f82e39b6e66a97d70ed7e1277b703ab1b194f1a5792507cf464aeb
MD5 7e9a6e633ca2d5f0238707f06b71b342
BLAKE2b-256 bc97747294194bb46c446318808842c23ccbe31519f853235150dfb9b15aee3a

See more details on using hashes here.

Provenance

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