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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.88-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.88-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.88-cp313-cp313-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.88-cp312-cp312-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.88-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.88-cp312-cp312-macosx_13_0_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.88-cp312-cp312-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.88-cp311-cp311-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.88-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.88-cp311-cp311-macosx_13_0_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.88-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.88-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.88-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6fbcbbc38c260e6e267f020a5a35fa1ac09a9e8ac4b2826fa6109aebe0fa4107
MD5 ae97092418f486295d691e923ae360d7
BLAKE2b-256 434551799229ef8cb42f95054b0e0e70067b0e8a0b93210fb33e05840cd4b6ff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.88-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 53d7624425bac0412215cb7f9eb791ad8f1ca599a4a03de828df337739c8a69f
MD5 e2ae3dd3a0289e79d9fd43e442ae739e
BLAKE2b-256 a3540b64b70c56a156a16f2f63fdd2af533418ad73ef6672bb32770f205024ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.88-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0c1a2359bca7aecc04e2307b1a697a00e5d7cbbb1cd59cd7cdca27538b75ef02
MD5 97df0d9210627b4aac0279afe48ee98d
BLAKE2b-256 d1260e65ceb6cddcc76939c5b056f7d797694eaa6dfa7dbb8f441c7877623bfa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.88-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7cf8c6e1f7f700723f46abd99410c9ea982e287ad08140dbd8fd569233a74bde
MD5 bf6b267a0cb61e66603bfa8063c6512d
BLAKE2b-256 aa273f1643e534fdabc4408a4c5b7362e2f231f7275476078ce998b833442aee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.88-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5d729b0d10b04eb948e2327f0954d3e9745ba66bfb6a9fde247bf348ecf73200
MD5 ab6b49f883c2cbb8b5bd947a114be0fb
BLAKE2b-256 9b6a21d13eacbf8fd1448e047f38f365471524e4140dee527cebbf159db34df3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.88-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 25e8dbe7a85225f3fb7dfea291dccb0eee27e9f71a8045803b8d46e499b7783f
MD5 6da18f5eb4f6ef53d1aee6da726cd05f
BLAKE2b-256 a57daf812c3d79dd6ed85263b2a139278544a1afd68e4cc7c1ae8253dbb8fe65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.88-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5280d60fcf80f365da297e9e2fd0bb96af74f0b994dfcab440ce9774e083cf2e
MD5 6ad8f3f07682f32d0068925b622907d5
BLAKE2b-256 41bf56b375023987250de160cd3fffd67867d3e8800a5d6dd0aed8de7406f643

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.88-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c5fef829d58e537983372a5d768a72b263848fc1f1d05676aebd553b0aa9db31
MD5 891149e2332980a919964b9ca97b6ec1
BLAKE2b-256 7a4e23b4ab677a169acd76891ba1f3205a298a7e3389b790d885eab1596908db

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.88-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a055b2a009a2a5b0c2f20efed7856d959dffd02e678a9bffa3197477fd0db54e
MD5 9e3e57ebb9c9bc9be5189434b1304100
BLAKE2b-256 ca22266e69081ce5551786b2653d25d715ef5a15f8d59086dc78cba70d34e3ab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.88-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 956b280f670331100b96e5a40c8de3781ea7849d3d2cf761795db67a4bff970a
MD5 6bfad6c50ab6ef6392c4c284b7d8f2e5
BLAKE2b-256 8f002e516eaa976b59ab2301fe772595e1cc1bc6291469613ca706e489739b76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.88-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5439aa2f0652457bd138f299cca8b45d8befcd2da390f2c351f69a51941d0014
MD5 60c7afa5287ce899f68dfa5525b9e288
BLAKE2b-256 6f22927aefacdc66529912fae5a7b930d48fa90ae6c84f86a0bae71cd308a362

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.88-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e95e050f622f014c54fc0992b97cc3e623717cac06e5a5ebc9273dd92aa6ffcb
MD5 2d4354dbf20a2748fcb0fd9f9c222372
BLAKE2b-256 eb34b6515ca9d73e99b6f7f9cd4d2f13e76c92e4cfaa3030b8127d1e0991aac6

See more details on using hashes here.

Provenance

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