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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.38-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.38-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.38-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.38-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.38-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.38-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.38-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.38-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.38-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.38-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.38-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.38-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.38-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 552b0cec9a9ed6e708716c6f7e75771a9dace3e04b83066d626b7a2a5ec0d203
MD5 7a46fce038ed40da66a83c77b73ba004
BLAKE2b-256 3e49def90ff65ee33a124b4c6da6bd3adeabbd1a11efe3b46647d51f68bb52f9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.38-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b7109507730cf8bbe239586e6f3d9a07d5bef7218a982b2d4770dc19d2ea8c1e
MD5 6aa6704408b82b90c9283e57a6c28918
BLAKE2b-256 c6a6a2ded0724a133cb65667f0138b28a5651b03d0925c914a6f0031ea68b6bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.38-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9b0e2edaf2bb10c9829aff8deed32c4b702f28c4eef39f60996d5a6794dd8e7b
MD5 814de24053a3ba0554bcd3142a9febb1
BLAKE2b-256 8b255b4895e77e10e411d887c489c60322f08d4e3e45bb72934253842b9a183d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.38-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 174b20646138dc21dbe9b1a2c05973466025ff9e8f3bcfa6dea09aed2d499e5b
MD5 358b486828f97742b711e38183eb1a4a
BLAKE2b-256 157941c8ee777440099abfeb06d7c294113cbd452b0a29a542952ad0f0a37bdd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.38-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1546073f6807db3ae2cb01e8c38c3190aad306558efba9e23859ad51705fe228
MD5 9ee1243df9b01eda9517483d9a2a7d1a
BLAKE2b-256 3611b46de5405580e26bf31d6acf5382c6c6c2cf0a267b9a43f11e76d0fc768a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.38-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1b907a94d28a4236b2e914049cac92ff1fd403c3fa032797bfdf4e5f5dc10817
MD5 7b80e21cb32fa8694e3a2b3e9dfa92ec
BLAKE2b-256 8f3ce1ecfdac6bba14e8422185a7af51486e257a3306ade11fe0568469202e92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.38-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2f22eb989de14e3d31d37c284107574247e12565bffbacfcfcf3152aae7f8e8c
MD5 7a7acab7f22ef6a75f6d4580b8cc45e4
BLAKE2b-256 671de026a11945cb675cbe2130282aaf2838e322acb38544bcd75530447a2360

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.38-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 49432308a09d51b652f68609387ea717f07567e2b4488ce25ea95ff689648bb1
MD5 54742a4ae7b65ebf14b67c05d949db33
BLAKE2b-256 8b7d0f92510419fad1431154230c64b5f7632b6c05e36272c9b7ab9bfdbe2f1d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.38-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5f8a29de70f1a6e7c2efc421e313f678601da45c7dd54ba2deb91d71436a9fa8
MD5 782fe2a7f60caf269bba1e55ed99be36
BLAKE2b-256 40ca73218c86f20c84db42f37a57025d1097725964e5a1b626a053746347c05e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.38-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 48d31f9f4eb2c3d29d3218206afee86df0a85c3d2b97f41963258c53aaa87ae9
MD5 1195068b1f1cd8d9ec08d0c3762f3205
BLAKE2b-256 e309995f24b6d813d86c7c63e81655d93bb8beac1fa813e831faefb477c43dab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.38-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d02e4d3e4b24db93e768bad6d196e9772d1232d68ec20cc7a8f9c0b64313fb6a
MD5 d01133045052da81d9abc4aa50240d9c
BLAKE2b-256 6db7fed1b2681fc3cb2ca547d9343a02d4221f7052c3a9fe87b5971eabb31c7f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.38-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c2365467d079e0d482e046c7a85d413596960ced7fa5f4a35b5249f2a617aa3b
MD5 d85073e152bd856faf8c831bbdb2d603
BLAKE2b-256 c8bae16d0093cc60acb05447a8bc22c60c869a06a4c7a5130d78893261e2a587

See more details on using hashes here.

Provenance

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