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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.41-cp313-cp313-manylinux_2_31_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.41-cp313-cp313-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.41-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64macOS 15.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.41-cp312-cp312-manylinux_2_31_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.41-cp312-cp312-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.41-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64macOS 15.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.41-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.41-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.41-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.41-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.41-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7be80411fcd5d7f3da67672bee699584ff9a4a48092712524a5b98a4cb7c92f2
MD5 dd8ad777341a931fe65d412b9e82b937
BLAKE2b-256 a1d4b64662e42150de3a04950fc1f0e0307f0693de4f4ed7ff456f348d670555

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.41-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 29021d586315475ea203637f0dfbb9d01672ed1cde4a31c7b43c651be3895250
MD5 f8505843b8eebfa35aa94a5d2875b5e4
BLAKE2b-256 cfebf24e9b43bb28d3fb133a4f5fbcf43d6792b98cee426976d5e1e9f5892dc2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.41-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 504b532b7b6fb6062133816904f2e06e5b6966a1bb8e4809fb92ef806ed726a9
MD5 40bb36d7a547f4e87839e3304be0eb5a
BLAKE2b-256 5b431ae2861d2c976e46be35c4e64084d1aae20119a087141acf7bb3974655e8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.41-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 6634d485753e0cec1c936bac2356edf554f4cce15150c09552494fe11b9ffece
MD5 b15822001f4ce2785b73796edb301f4e
BLAKE2b-256 5c2cf3699ab2455372ca45ffd44a54c839ab7622ffbb47944c3a7e48f70dc1ba

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.41-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1bbe706e5fa87e134cc8c60573748a2e5f18fe7fdcdc52633f25bad323d1063c
MD5 e7be9f64e2f222aa24ff9cc5487e4a94
BLAKE2b-256 0d5f02405eadfee465fa5fb7e4add783a9fcd07fef2602b8f5b958a72a9bb4bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.41-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 17c84f05ed22aa193e88e83c9690928d9aaeca681a5c3b68f77430db6dc7e83c
MD5 efa69951684651e564b6dbdde2ebc300
BLAKE2b-256 f17be3d446338241062409ed34fb92b3e37902d547a913ca98ac414ef1d5bb05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.41-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2df1bc3f21c4e8f9df1f8f03728253149a278b16ad70f92516812d0a71269104
MD5 771f99c80955c6ac2ab3e4ce1b6fa227
BLAKE2b-256 6399cce5e486310a51ffd932a2cedcf62a0b07ab49d7327d00caf6bd750b41ef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.41-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 594d40fc915ff790dc97f1ebd12ed7c081d9e67e6106605b4ec3706baa35b953
MD5 85b9125c5186b4461c968f2468347f12
BLAKE2b-256 5c9acbc00e7a2b284bc7e1079217955454070bcb341d1b1c5ef3828a87b09b68

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.41-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7fc7ced7705b9a9456393c7f2f5580a2dcaab3b52506e26aee6447272ac752b7
MD5 4bfdfcb5cb6762d9c010cc1e9102d5c4
BLAKE2b-256 6b78fa36c4d419baa77f58460ab880830bcd50bc19df30993891b96436746595

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.41-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 07ef98c08e581e076e66eb9ba61d9841478bd9847d2962985239afac462a3ada
MD5 68d08fb4f9aaf80268ce6b97fbdfd5e1
BLAKE2b-256 9bed6db646e0db22a91d61c39903ce520c96a3e70d8bd012b5486f02cc7ff13b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.41-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 900dc769acb9eaa87bb70f36e1c4670d87a85d08e961e5810f1e1cbe55b46ef7
MD5 79480a38ed81db2f9cff5ceae9f71bdd
BLAKE2b-256 6675a40e8dde998a161da45d8c0b2f93be405786f1ce637facb98ce86edf1366

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.41-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 8fa12787cacc9de9134ec0ea3a665b6a2fa458dfbf2a407641a5fa3afe896551
MD5 9ad7b0a0218b997a72860928d317160f
BLAKE2b-256 6dd71a5ee13029aededaff2f555e08e1561e2e907af513ee7db026cae39ccf10

See more details on using hashes here.

Provenance

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