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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.80-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.80-cp313-cp313-macosx_13_0_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.80-cp313-cp313-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.80-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.80-cp312-cp312-macosx_13_0_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.80-cp312-cp312-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.80-cp311-cp311-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.80-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.80-cp311-cp311-macosx_13_0_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.80-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.80-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.80-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 587c8a5dc71d8e05f91f2f6fc5bf8df9f26ef8e0b19381b3798e0341cc8db028
MD5 cd1fdf0de3cce8ded91a756c464e40bc
BLAKE2b-256 d56eb5acc471af59a5e014f2223ebb951e7f55210ded7bb9bad3f70522089982

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.80-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e01835d34767a9688c95bc58d15283caf82f7fede7c8263f7ee45f39b85e787d
MD5 1501da7e6353cf54f360b6fe37c369e1
BLAKE2b-256 92aa322713cda00b2ccfed8a679d5bac18d4e6d66bf50c47e97a080315220138

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.80-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 51160ecdb8ba5d722890c60243da9fe9753d20d1224a7bb88b1357ce32d1d862
MD5 3f5142ac97e3657650bc9219ec4e7bef
BLAKE2b-256 fdac80106be62c724face3832ab930eef09024cea0def21cff89ebab7f3325e2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.80-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 838005c282e57168d29af29f127994240dd57228003e43c4e7bc0acbf56c15e8
MD5 77fa9d19c83192ba67421883ef2d72f8
BLAKE2b-256 a51f69e88a69286a67518ab95b6cad9d2d5aadf2c07ce09a825056542faf9478

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.80-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2ed4e6e88ab21a5d5cfc2d57a9aaa5378da9e11aec0b7bf1e5dea642cfb52588
MD5 ca4ad81ff7b5863f6f347e3e94fb8144
BLAKE2b-256 f519c76cbc08290fe4544c6da64a388868ba3bd0362e23e6b9cf38395d3a3ebf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.80-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a9ec9ccf4ad93a4c62f01d8bd28545f821df71b748b70ca76cc84b1660ea1b75
MD5 8653bfc1b4c48adbb041aa5af313d80b
BLAKE2b-256 ae6fdd33099061f3a396cfe10b84d0cb635bb953074c87848f8dd28ec7a5672a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.80-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ce61d8218af798e19a7a10f5ea8f66d3dae3446d807765e09f7647634d553706
MD5 fe756429f3bb195cb4737d03e093422e
BLAKE2b-256 25ea1f1acf88a1e8d618618873fb324ec4a5b9327abdb9728f9601089a482679

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.80-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 77488dc6fb41e5b77ff5ab0459bb0241ef520b833539990c200980f4f9da8747
MD5 424f64d457047f0f0d6191f374176b5f
BLAKE2b-256 132bdebee6e9422cd5e5e05e72e761f7cbf7366fb9410c6eaf8dd219543c7062

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.80-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e750bbda4e81e69f254b77273bc84a1347ce75686bbe2da7ffe23379a076291f
MD5 ff4a2ffbddbebe26e5b71daf6d7b5dbc
BLAKE2b-256 1986b2c99d5958b5634fa8a5fc497d0cdfa45884fe118b65efcd54d63b105492

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.80-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8c88457452eaa4ca72ce3534a7a56e4571a37ba8000644af57e8b661242ddb63
MD5 fda69ae873d7e8579bec62b26accbb2e
BLAKE2b-256 3c7ad74ade4f0c8fb2331dc34d868c1eaa9b9e1bc73880d1b280f1fc1a8e9aed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.80-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 50ddbf63f929f7fd989c043ef4d97a5fb9696a247aeea4c01802ac62531b5e46
MD5 367366897c5a5b68f30a0b4d6b76cdcd
BLAKE2b-256 056b4920aa004c03988059fe5df5c8055cd6b577020caa4d5c0ae5851f6ae52e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.80-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9fab8fc818509008ed72554461084cc87686a150ed71e6402884b24275c7bf62
MD5 ec4f3e7937af987354b2afa3e8e1e0d7
BLAKE2b-256 78d932dfb9bd122c060f3f56f186095f04cba06e996633356c10e41bbe425259

See more details on using hashes here.

Provenance

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