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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.43-cp313-cp313-manylinux_2_31_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.43-cp313-cp313-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.43-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64macOS 15.0+ ARM64

gllm_inference_binary-0.5.43-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.43-cp312-cp312-manylinux_2_31_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.43-cp312-cp312-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.43-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64macOS 15.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.43-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.43-cp311-cp311-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.43-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64macOS 15.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.43-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e0ad8111bb0853d5c508f2b698e5202a9ea5848638e9608518705fef1de8ba99
MD5 bd081fd92bf2435932cced47465e33db
BLAKE2b-256 600705d75567c6fbdbaf490c0381f00b3d8d12b400a5320cc99244b9c05cf123

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.43-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0af57a7e60589fb103a33d26c44fe8f304477568d4ee6c2cdafd00e208824d5c
MD5 2589d1f510f32ec67c9b04bf96a7c1f5
BLAKE2b-256 abf2f28ad7b90d0fa812b4192064cae353520bf38a7216602516be82af2a642c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.43-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3f0751a25e5576f9efb19554774fea64bdb0aebabd0f47abae387bba1062ca47
MD5 72b3fcc0986af0896a78a67af1700613
BLAKE2b-256 2b3a9c649d84edaa8940929ccfb5c70e26b44db18e9effcadc881a34f93ea967

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.43-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 37f047ab2ddf011259e82d115d4af91f43e2414bc435b83bd281e9602ae95588
MD5 84ea2b8a7f439593cec27814e32fa19f
BLAKE2b-256 e4699689776d41c66ac8f384dff8bb11c684aa8372bd74fdabaa5333ec5e8ca0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.43-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2688e755a41deb6648d4f6c1efa0b5a8937a31698e674859e201516ea8de35f6
MD5 ac3875807b70530cc36080d3fafeaaf8
BLAKE2b-256 894f82047031405b84dde751081d25df8baa41d889bb4e1bca89bafbc0bee821

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.43-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e10289c9865c72d049b41e98a46c29e1fdc3e2ee0447245922dbef1c3989f81b
MD5 293defaad001ca5f63b78c832cd9065c
BLAKE2b-256 f440413f39d838298c4806eadfc2d20c1859d5207a8f49a3f1f920f5b6342fce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.43-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 310211260f39c0559ced1ada91c4207f24aed3e86a645a74c64904dbb582d19d
MD5 ddf2c43c4e3a52c11dcef859f1766fc7
BLAKE2b-256 d53ad5883382e463e6e42a6503b672717b2b1a0081269d22441bfacbb067b40a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.43-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 f0fbbbb19d1a3bfac9d898e981f6b7b7d49ea23e5557cd7d0059cbd8e1fa2756
MD5 27e03501aca84b5e8f1cd089582269c6
BLAKE2b-256 a7da4a269e4640babaee20469a3560a91bf0502fe86d9b34693a822849084835

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.43-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5482819edf626e861854d4bd8949bdd9e87ff7d5ca3cac94d95e89aad312eb78
MD5 32dae50d427b74ce28e29f4154d1b450
BLAKE2b-256 b3b4a29229fe9fda6b349091726675bcf95258cbf0e91c88ebd7e6bc5cdab739

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.43-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2bc808c5ed5acf03e050ec813f7453faf4ce6216dc3b1bf45508f54b3bc80373
MD5 fc8ff99586bf0af7044c9a392071567d
BLAKE2b-256 8f4e883005ef33bc4fca8ebf4240414d6656b34a5a2ca11a09bcadae1b5ea0fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.43-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a57f90b014feeefbdb5c4e328a159bc8e204eb2e5b4bdb0c5ba0ce58dddd0f3c
MD5 8620ef9205627deb4de9e8eb406392e1
BLAKE2b-256 b0c058feb713f6bd903d7e395e4633210becd5d62cab0b0588f7f490649d616f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.43-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 a4d3630cbdc9cf1ae44847f86ef52f431814ce3013411795e9fd98fd93b734c9
MD5 a42911d4a0a099a4e08841e391bbd173
BLAKE2b-256 530d491530e16b1e1b88e050981857c554e49d4c6b5d6538bcc3bb924f2d6ed5

See more details on using hashes here.

Provenance

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