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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.69-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.69-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.69-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.69-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.69-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b9711bdf9abb1f377092bf9d7e7f611765dc077a5c4ce7cf4f0ffa066cea7946
MD5 fc53f9494e9a9459026850f29cd00b17
BLAKE2b-256 320e21301acd2cbf2fd4c2fdfb0409fd38a6ea35de5f2f480138982e9453868f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.69-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c2815e0b99eaa489c2a0ed7081cad37aa748d94c9b5d86fb4f94734e4c774cae
MD5 14144481842054f3c46b256e48551633
BLAKE2b-256 f843ab54cebd016b240942bec6915839d72333333353eada6457c7791354faf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.69-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 50427e611c70c698f17e370f3a0c062603cbb4123e7c2f03165ffd6a132affa7
MD5 11788649c6adc2d21a7afbd6a8d22a06
BLAKE2b-256 8c89c4b6cdd6b5a6fd46e33d86cab6c79fbc3a5122c2e9ee00e63414ffdcb4b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.69-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8039f4129cfbef5534a526328f18bb97d95bf7c616bfb4656d52b26755d65747
MD5 ca0a273c5ff2c46772f15c3479c439e9
BLAKE2b-256 8b54b76e3d0b9f41c7f03982ee2f4baffa8345f071d11f61093772b3e4349371

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.69-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 550acfc580b1356b6b881c04df8c709c59d070035a552dc4e5810af42df37148
MD5 1695e0573c33642aef22d8690e3b70e4
BLAKE2b-256 833ee458be33e54b2a08d08393cc1e3808778bc1c684cdb89ca2c949c14319f4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.69-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6a13b18b5fd7a620955f31bb393a8d11cb49df52c638e804b6dff040d369d885
MD5 9ca21683f13253cffa4c36c25c20476f
BLAKE2b-256 cf56d7c5a40fe248de71e11a31701f7ff9d64fe0dabe2886ebd3c4e8345c0033

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.69-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 22cdfdba47a3820a6a37c0287c979ab67bf4f35c32d948a56a0d8328d52eddad
MD5 27d5576e78682f37fc42ebe08a0823c9
BLAKE2b-256 56da581e28d7cf6e431eddfa776aa1805ebb847c9e42af500998d539e3d5e72c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.69-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d73d45471e96d585b58ac7847ef0bc55fd032c03b4fbab918ade3289e9504a85
MD5 fb61e8283be70c3a360aed82aee80769
BLAKE2b-256 c39b3cee322f30fe8824d3ed17a5d7e08f8cb53c4b3ec73411ce859699c5fb64

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.69-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c10a62fe40a4eba13828ec060dc72a0e8bff8955fd374876d605dd80e466eff7
MD5 defcc4e71540b9bebb5de12b5941a8ec
BLAKE2b-256 2d02227631436a2d9c3547333d84974f796790a905933b7654223489ed44e174

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.69-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8d619eaf5d6aaa70c9dcafb37f4bc766f56caeb9fc9644b49352b5f4dbb1b190
MD5 d735bc921cbd79e03257d080d8a9d131
BLAKE2b-256 64677606a4246abf7f01829fbec216e7adc17c0e907c27100a81cb3857e1b339

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.69-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 7d34976d454eb79bf5d9a611081fe71fe84ea59cddf765c7ef4766cbf0a164b4
MD5 f5f6cddc567e8da337b3597304af3cbc
BLAKE2b-256 84d7939b588c008b2263d0c5b0f3351b52c85c252f2db9764564934116fccff2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.69-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bea8bf76bbd57811448719a6a7a4b6607d756366ae2c53d0edc562e78795adc5
MD5 089ea0fce53a3b95a940ba154ab0dfcb
BLAKE2b-256 2087b434f14650e36347b4372ebc219c1baa5030cb5206151e783638225e520d

See more details on using hashes here.

Provenance

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