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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.86-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.86-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.86-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.86-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.86-cp312-cp312-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.86-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.86-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.86-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.86-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 908d7a5e78e3123d388ca13067edc16c3818a7cb9843f6064a0e3a864ef6399d
MD5 e3af893ffbdaa1c6b995ab91547bd09a
BLAKE2b-256 d9dfe5e3abfbde103a648a43b80104a8efa9a74dcea2ca12b840ffce08712eb7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.86-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 060ab5f8002855f4dcd71e10da4dcdf79b04212dfe58aaf9d079594fe5919f48
MD5 d97149fe0b2cc76d70b89535aed95754
BLAKE2b-256 55e502a955b7c5c6d1d727814d3e38d1f469e966d2de4fe6a71bcdc3afea2237

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.86-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 95c0270a41f7b470171f5757511fdc7c934f5ed7945004f29c1251a9a2d80d53
MD5 1d16692f862f63d05a2915b48507862a
BLAKE2b-256 4c41c79134a733f0da7c22661e8898bd8995997082070e6471d7e6077d075c03

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.86-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d2be8eaeb5c26e311856ce83fe6ea9b828992d5c67310b48fe4efefdea62e22b
MD5 c72d0f6b24ad070277d196216c82e208
BLAKE2b-256 29de6c7dab89a632e2203cbf99e6edb91db7447c0167ee9bb9ba88c057d53eeb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.86-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 36108738bbe0bfb6db31416c7384aab74cea43229d6cbcb2a7208bf0fd317e92
MD5 bae9b6e6e204c67ebce8103eca1d163e
BLAKE2b-256 f400a001dd28b59a826fd938aa1bbfda731189666a38f168045f892ff69c899a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.86-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 196de9d7d98132ff6bdf0e3636651d28e59b6367c29fead70e09cd86832b0207
MD5 b2838fe16511a010159844cecfb93b92
BLAKE2b-256 568911e8362735a0fe97ce73bf0f001acab5f5118e676c68109d6766273fe07b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.86-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fb455d37e3f36f21dafc63f291b9a73b200bb6bab7d108b99fdad0f18a692231
MD5 673e6f5699e26c22146bb39bc17f1cdb
BLAKE2b-256 02a3399b3efd2a46fc45879c00cbfbfe2e37433f5dda07ee7e617428b0e34ad7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.86-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f3c001cb2212421ccb88a51e1b8239ee971a13aae75ba23215414bc352bd50f1
MD5 38baa1eaf7ebe080149b3d46d64ce3d6
BLAKE2b-256 ae725e6957de0daabe8efda649144f4d0a95d4b0f2bcb543e61b1258bebc37c8

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.86-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.86-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2946cd0980f46743c41fffed51c775d105b5169ddcfe635e0ced0ea1d12bf485
MD5 daa873597749293005817e2092f97ca8
BLAKE2b-256 36c0a60ba80108af0a796fd2115cf1a8196565a2caf2cc943f770d4a3cc8e489

See more details on using hashes here.

Provenance

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