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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.68-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.68-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.68-cp312-cp312-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.68-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.68-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.68-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.68-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.68-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 39e9362d35f921a841e731a78a730933ae25d2d4f5aed7d4afdb507f608d3fdc
MD5 7d8cbea59c665581f040eb53ba2958fc
BLAKE2b-256 f8e4b0c8323c857d36ff93060bbc5ad45342e31affe62ad2508752a3c0eedd91

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.68-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f55945d7b69a4fd25eb53853a7524efd0b130ede399fff8b0d0a680d995ea9cd
MD5 a846c2a5589af2f4921ea417cb51bd6e
BLAKE2b-256 b2ebaaac65585c9a88bb245ec35e14d49a9d86f5a7132af45a5a1355a43548a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.68-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8ad44538cd6d1a244e22950f9a51e32fde0a94e8f9ea51cf842927f91a883bfc
MD5 052a4670f8d2d94b7b32dbadc72284ca
BLAKE2b-256 827d4229e8c68b3db2b76b2c8dc0ddb30cab28d3127ea2bf4c0ab939bc1a34dd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.68-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c3283fa68dcd4fe0f60628cb497f306cd7bcbbe7fb1937cd3d73620bb29b0883
MD5 2b54c1e5dba4b528d362fbf7f8519607
BLAKE2b-256 7fafb9a4bef1c748c9a6d0fb768f045288e0690fcb1d19750145b8756c8aec41

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.68-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 623070bd9ab9d5f0b7c4b0f1db212cf08c6b2f27129704a3aa522066f8ddd79d
MD5 7ad9b19a0c934eb724e2e1564c21f3cd
BLAKE2b-256 51545b41498a275345aa5de26f9b01ffd080c072ccb4d54113eaacb48319cd19

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.68-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1bfd1a69a071d58f4df4ecb952177b12fdfbf501b8dc3b92bb4bd18ee354b962
MD5 6ddcf1be8a2bae362b0433761bd4117c
BLAKE2b-256 bf27a20e8a7c08d2d16fcd74bc6b4deb3db4ee994fa938330bb87b8e41dcf035

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.68-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9b13b97a5ca62b616c20796d69d928438e022fbed6747298eb5401d2112c6642
MD5 635509737d3801d174c9ad5a1f9cde5e
BLAKE2b-256 cb45701167512cd9c73209ac3839faad001b003dbd0d5c6716c2a93d268c8a5d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.68-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 35a00ccc55373be72fe3efc32268993a7810665820cf87847e81dbc40079135d
MD5 4d09036b24ab42ec478018918b1d2096
BLAKE2b-256 7b48b290954c4da8962a0f16be850c18ea0d20abe1638973974dc2820be225bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.68-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 27a3eba87a68c13fc8be7aafeaa06d34a99be1db709c42d336fae6d415e06d83
MD5 ad9db5cf0aa9d689f76e2097056aed0e
BLAKE2b-256 9eb8aed4462136ad3ada29a24a15dea7664a8d4a4a8957894747e5f29d29965c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.68-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 51f4c9cd2315761d70a5f4e4390cbb0749ba9db2bf636b710698972e4bf584c6
MD5 0b3227a9c71dc7ac49eaa0c620cbdf40
BLAKE2b-256 ebe6fd0cbc56018001a0eacc8159d6989d2dd6279f3edcb927ecf459120c6713

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.68-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5b12dbe47dd9f0bd5c54cbf655b5254f8bc5ab8136ac895eb94aa01afaba2dc7
MD5 84a42c788e098a04699308b57dfd5acb
BLAKE2b-256 f3f6d291a2d523cbe19cd19c6609de949fae4d1bd5f8924d5649cded206b24b9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.68-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 63f7c77cc09ddd0294bf9f2c608202787a9fbd77f45680d6590c8431f441f6f6
MD5 108a9a18fa18d02cff4ba67933b8af5f
BLAKE2b-256 8f085f04b3c6dbbff761945033d457d9b5b11923fb521877509a338f5d506db8

See more details on using hashes here.

Provenance

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