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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.55-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.55-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.55-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.55-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.55-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8c0613ab81afb2388cc25ca1f0741e62f64fe6737cf25f98aeeeeaeb04273454
MD5 d74ed3a13bb7a47431f4438009993e8c
BLAKE2b-256 61a992e59433a252fe76c4cd907df0deece83124df365e07288ad91039852c14

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.55-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 dfbd1cc21143c08c69b80e8c3cef32dec2a6a9b6f68ba24e0d517ab0b6a66e0a
MD5 7d388890e2cde7c1697f92e97cb82ec7
BLAKE2b-256 74d2a039aec66269fdad23eb0658e8e4bb266240da85d65b85a8c153b080adb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.55-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 487137efcf9be359722ff0f23e31991c975f343be48594f0eb4aa5058e37cf0b
MD5 f1d683c439b95f00739863059ddc40e2
BLAKE2b-256 950e46c873cd0e88529d0cf4dc952fc0c58bf18fd4004dbdbee383e0772f524b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.55-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0ac58e7d3e6c18d89057e85661439f2d193e402d90665985694ea299bdf0e237
MD5 44e4b26c1495f97c77bd29ee1ee75604
BLAKE2b-256 4bd275879fbaf2eaa464a802950abfc8e44cd9020f392be5935d64c5ef549acb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.55-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4c594a4e4204984e7dcdef3607f859b0e3dcf69978b3e0e9417c01211c888bdf
MD5 289f8f21a7b7518e63c7284f36165f92
BLAKE2b-256 034e71b353379bba410caed7baffce2c4b48e5ff105b8c669c37533cbc03d98a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.55-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d4b237c6aa19005dbba2611c453243a968183d14f6efa18e12ccf37c2acf4701
MD5 4aafa5e66b61f71c74fd153f1dd9dddb
BLAKE2b-256 e52c64d1821ce851cd64a844a32c828060476b96dcae740c3f66495149f6f458

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.55-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 dd6cff5587fa785e2a8d9dd000d9f80ca82081221e71b80c35134048d4b53511
MD5 029e1cc35ff83b47fadf285836284471
BLAKE2b-256 226d5d711ca7de865ba4fe83e0f06d7943c9ac281f8e563769e44a9c04e2ee78

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.55-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f8d207aa76a1c82ce2d271f2cd8320c5b032dcbc6019771e9f0c292b45fb07e7
MD5 fc67c6ade4f6488fe88c8910b18bd4c2
BLAKE2b-256 3d0e5af91dbb92f049944f249a9474b8d26664169bc23ec21e4084c36280ce2b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.55-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ab8b248190c134b77bc0567aa0d2bac8b23e80258de233c1abc41e7f80fdc54b
MD5 0a83755b6e7502a5f503c24cce6c43ab
BLAKE2b-256 4c68686702ff42c1420ac46672f59e84d15be963bd3f6ddb0c007bc6f4341c57

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.55-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 44a611f1392c7d02d894590eb5c985c895106b4fd6f54b8b0f03a4ab537d1410
MD5 9bc8d3097dad02a61303a6e037c115e8
BLAKE2b-256 48592a630f1094da115bf40f5f1ada50ec84d12cd832445121ef1d7a67e3713b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.55-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9d963c230db37dc700a7163f5031cdfa95b18dcc1c56603e833dae3a7c06f7af
MD5 485055fa791a467a250f504bc665edbf
BLAKE2b-256 d29550df7b3b4210bc4fb60b59c3968e2000aff506bd4192ed399d0e2959a9e2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.55-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a7d90832f129e9198f405a8b362c5ff6dcb56c90f71ced0345ca231a33b0df86
MD5 48831bed5cc2ea0b02adb5c4cfa76682
BLAKE2b-256 d286d142343f3c239b3ae2d5a74bf7626fe7635da6011667031eaa960b5732d0

See more details on using hashes here.

Provenance

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