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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.52-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.52-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.52-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.52-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.52-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 08bdd401a98c0a8fe37f531d888cb5b3b038da6e4b29546ee5c4c4a27ad3704d
MD5 b310046194028d9ffbc4470acbb5f40d
BLAKE2b-256 b35eeed3fd74ce9b45e9124457eb8f71c5046c6fb1d405fc33daf75e450fb189

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.52-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d14a10e82759655b68505a4ae651c8bd35c331b8cd3c751ef9e76c42a0a31cc0
MD5 b9cca0a70ef0e1f6eba80483f3b45e90
BLAKE2b-256 6bee973816b4ffcabc14f52f1a5576910aa16887aeab932cedcdeecb665a1ed3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.52-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 6a83ed61ac806ff9305c08793b2a86bf119ad1f50b2597ccabefb51689e2afc2
MD5 22c4d51923cc5ece383a3b957ad7db08
BLAKE2b-256 a5fa56639a3334017d095bbee525686934f2b6f3514a05277f35f1ec0bfbd71b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.52-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e3520603ea3586d9365c5b8b95bfff060ec92c38391cf2996790a4e5bcf730ba
MD5 b95f295aa328296c2c9cb85f1f412bb7
BLAKE2b-256 fafaac11e65aca7860015f51c351bbf1e49bae0e8f7bd2fff01d57fd99bd1c1d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.52-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 17286b8cb9b490642709cb9fcbf4a65dff9b206df91e566040da9b62bcb3850c
MD5 eb6577f397d6b83f67f709d575d41b55
BLAKE2b-256 fb7d3d84875b725ab9afc42817944a9e1e7a873b74f4247883e69317a31e7b95

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.52-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c22cde24286be130c6d7b484efa593ef4aa7d061a039b3e3c024d6af670f057c
MD5 86a45d3a2139302a29673a832e99425f
BLAKE2b-256 32b992498f8dce2f9901db988499b0a1b79a44adccd3e5542e1dbb621b53f49f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.52-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 92340e6fe40989ddd0a1b050c18115dc3f7fd457f9a805d0f1be13e2a7525b80
MD5 06ca92addc05e2c69efee05405d2feb2
BLAKE2b-256 435a8b6514aaff4d978a7b4aec860af5acefb82c7fa4a9f7c984e47eceb0c0d0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.52-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 964c134a60a3a1e87fb6b34660eadd1f87beeb584d2f121a60580de145630c46
MD5 ef4cf43e2845113fb5715d63d6e3ef40
BLAKE2b-256 0f0ddf6b8c9951189c4f88583b3b84bfc14d1e1a68a4339da4a6041d24b10deb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.52-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 63ce9214436f52792ba1016faa8f91e4bfe43bba70139d7e063fdd301cf392a0
MD5 a6cda20cde71ddc67ce8ebf4d0c6c0bb
BLAKE2b-256 55b18bd528c60526fe53838c2d2ca7a0ae5ac9fda05bdc9aa70a14a06ddfa072

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.52-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6fccc7fc8caad9424b0c3070df4251ca9b2bdc50ff6172e13ee02c3009e05e3b
MD5 6ec7fa10863be6d39b10450575204632
BLAKE2b-256 3f60ee68940f9103ca8cb6b54804583fe3b93b72db54e45fb45f53ce8f9787e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.52-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0a9fc816d2136078d7905be7755ddad1006c6167b0f31011d2d620b8fe697719
MD5 7157c5b7c99672569a2faa07e5d4cb9c
BLAKE2b-256 5d6daccaf7aae7ff3dc5539ca63e1727352b631a9a42d066fc44a229d33aeb97

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.52-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 d8d8f55df7119582cfdb5a887bd31b8a14f72e0479bf57a512e2084c6c3c9bd2
MD5 2e85cd7280cffbc3dff3ae426d93168c
BLAKE2b-256 b0f5cfeb5928b8901ae7c1ef9c111884cd0eebf21c50f015408fc39622542a93

See more details on using hashes here.

Provenance

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