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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.57-cp313-cp313-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.57-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.57-cp313-cp313-macosx_13_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.57-cp312-cp312-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.57-cp312-cp312-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.57-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.57-cp312-cp312-macosx_13_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.57-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.57-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.57-cp311-cp311-macosx_13_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.57-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 13825052a3643e5f65e9d44f5da5007e3891d5f6dd0a00745ad08087653f2fb6
MD5 0f597c15a0c189655e2e836562e00c33
BLAKE2b-256 30637fef814b6c91895af21bf34f5e64232aed58c92d1211f99e97f2b01c485e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.57-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8e5e1ce0b701d73af9ae6ab5e027698ab3a4684fce5b810c6af90fe4536eec58
MD5 9fafbbdc75a6659abf74078354cbb7b5
BLAKE2b-256 2d1fd340ca87ef8ec6819c79bd0bb2bd3e703898c3d354df173c059cc52dade0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.57-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 cc1dd5c516e212be84bcd03dec9a2ea9cb671abc9262d8d8062f2f5ad8e90feb
MD5 40b9db8e1563b270511da4f54cecf01c
BLAKE2b-256 a0330178af6a0377214ee6d186b3f4b4db767dd64649beec0e6d35a89005605a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.57-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7e6194ba1f936b7dc02a812257e9b17200b6dc3a3e07b8f24800293e3f0d351b
MD5 346db5ce390c0332b57a212092395936
BLAKE2b-256 ba2f126dc94a0fed70cd0ad26d28f1f8ee28d22364eccb0c28eb800f423cd768

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.57-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8636af2ecebe38899602a26733ea3761144a9d33e15877c431c1641148584d8c
MD5 e4d4a6364e2f0bee90d8835c26ba7ad8
BLAKE2b-256 6696a79570896ec852f21ddc0fc1acde4fb9036f73d45f87492f35483d14eb7b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.57-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1f1584c85a2af32d75231b66b6d3bb4f8ea6393cc74387c9f4ae3e1a8b0563a2
MD5 a1c279e3b7315bdfe96658f1dd3a2a7e
BLAKE2b-256 84f9fcf9b214730426941309bb283b626b5a13a192d8399f741dd53999bbc53c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.57-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 01dca88440c859932901817d2919b92f0bee4a3f2d43f91a9c9161d9c8bcb744
MD5 8e1dfde0ebae256d654ba2772bf2dc53
BLAKE2b-256 b8825f5b5107221b6e0d0007a0c32c0d4f36d5ef351b075b5a96fbb99a397461

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.57-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ebbc7e33bb1ca9dfa6835c14bee18e25d2fb2b3692e05660358c86fdeac5a0f0
MD5 b398ca1dc5c9de0c2676bcb9113e6f8a
BLAKE2b-256 140905f755b1fac0e70be37df6a63cc3a62e9fc129af977aca5b8bd8815fd4f0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.57-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e6eefd19bebeffd04672bb3f7a4f13637444af3e1988fb80a9770fb434ab0e28
MD5 cc66df8bab8adce22bdf9eda5adec01a
BLAKE2b-256 1120e1ee985da6faaa0dcd0d89d490dbd7b9f2771b4e390ccf9846b61aa30fe0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.57-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a8544cf99ae0f1e4654ea9a4039ef833a577db6f8bddbb4aea93802ef2a7b2f7
MD5 3419b4cbfb0aa8ce2f0e72866433c1a9
BLAKE2b-256 7a08ce4ea255a22c135496bf2cc741cf484c263381a599ea009ce52741a9e95e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.57-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 7024bab689ce14c42195c2309aa0bd0ca923adfd3b3d1d8ffc1a5dc342570665
MD5 4dac66ca54bd6b36acec1da6e87e60e5
BLAKE2b-256 b90ac96345359ca2ef91d8eb7f0499906ecaf731509bd6cf3d074dc966be7483

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.57-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b39e18cf95703c8ab7e454c88db33cd00c5a04004ef4ebb2fe935499e038505c
MD5 ba19816b684ba5bed074a99c696ac147
BLAKE2b-256 922874303e7726bf196e5babf9b74c845ac65c158980f50d3d8fcfec904f4d0b

See more details on using hashes here.

Provenance

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