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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.36-cp313-cp313-manylinux_2_31_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.36-cp313-cp313-macosx_13_0_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.36-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64macOS 15.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.36-cp312-cp312-manylinux_2_31_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.36-cp312-cp312-macosx_13_0_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.36-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64macOS 15.0+ ARM64

gllm_inference_binary-0.5.36-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.36-cp311-cp311-manylinux_2_31_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.36-cp311-cp311-macosx_13_0_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.36-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64macOS 15.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.36-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9f0b555a00d674a72789693f1a33dfe7e7502fcd4c0c146e552d84cc5c50fd7b
MD5 1fdaf7f4d3dab2f1dda2893146b8b074
BLAKE2b-256 a02cfcb5d74b3eaf25ca3b8cc0950785ad355e9b0f5691e2b9f74e1a538b8704

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.36-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 87c941997ee38d52bc88f2f35fcc645d47bcea0b081a5833fae6cb198ffa9ea8
MD5 5da916be44cf5b8c2c81783ead603242
BLAKE2b-256 563cf77e3415d7c0a9bb082475079d297916af8725c2eeb5ae60870e817291d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.36-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4b214915e095c07b9ffe68f1ce8a3f1f78e6b64fc08a4dcb5dd528eb6d89657f
MD5 4be2ca468d5be7c10c2657043239c3c4
BLAKE2b-256 9a7a823401caefd61ef3c52a572f9e458b5817ae7736f52cac70aa7a7ffddf24

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.36-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ff335a1cdec88e498405d2b661817cbbf3ca834bdd7d076f48312e63e332702c
MD5 ed3ad1364439d2095ba8d7019776bc85
BLAKE2b-256 c2496fa1b4e4aceffed190932467f9aea0afd5ee8f85c0b13abb28f24154de72

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.36-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4bb14ab115918adb543a4ba26ba256ebe58c27c63632c05c6d95da88edf8da68
MD5 cc30fc1995eebbddd8f23d6c7a7ee7b4
BLAKE2b-256 52ad7e031d70955a89fc4c5d5ed61ae733e254b57ee13475ccc1c1a01b884d43

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.36-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8a5a860c512478512f1d8859a6bb228f01715f54ee35ab3eb3231129c40e1e9b
MD5 5626223a6ad3f814c80e114a495ba605
BLAKE2b-256 591e7b7dd21654c55081b1ef90cd9c4fb9855f55725edf19d387c61fff21fa20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.36-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4de1521265ff8a342ecb7ac4b4280fd9a4e23a07b5b3f9f5b8ec108707c2e321
MD5 a60d4bee94711b4453053205953b74b4
BLAKE2b-256 c605e40c99c06239927f5cf83d798f70b6d3ba3b568c3dc08a304729b0ec9d05

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.36-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 222e5737c2ba5cef8b67034ab7b78fdecdd98f844885f4c58c5f15262d7ee909
MD5 bb40a9bc89ce56a3c9be10dc5245362c
BLAKE2b-256 0bd559a3c710edd0f492b07d6a23e04e8d2adf790dd7376c4c6afc2b3d2da6b9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.36-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e9cd250b28fbe53c7e92394bae96e20cdf5dfad7528c2bd08e8e61a7aafcb185
MD5 4c6a584ff92abed630c5649bf66e8ab1
BLAKE2b-256 99ecf67a1bd79f7c71f419ae0b523dc9f169f8a64d7c3df8d694d86f5a15b311

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.36-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 eed0b0f1c418324980d32ad762a1366850487d1752a616e68e7a930b0ac79e89
MD5 2b11566f3dfbdc179adfcb698eae5909
BLAKE2b-256 094c99965700026154eb57b98abc45f310933678012e32f7c255cea5a5c66964

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.36-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e9d0301cb53cf81039c147b0d6e6ca402dd9ccd35b96ae217d803f06957fb28a
MD5 a42c8dbfed5eca6ef8bf202db236eac6
BLAKE2b-256 51db902ee6fb4b9e253c69185c0b06a75a122328e44a45502ea247cd9f050727

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.36-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 65facab3223c0bd7c43e7927b86bedebd023157950b63d5ef6f5c041ed7e9293
MD5 a5234662e629793970dbaff15dee1e39
BLAKE2b-256 f62d072c233a741f435d81ecacfc1654de705f24c99ab122ee25876c84a0dc78

See more details on using hashes here.

Provenance

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