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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.91-cp312-cp312-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.91-cp312-cp312-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.91-cp311-cp311-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_inference_binary-0.5.91-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a6e4b8a86655f076511aa22d1f5fc24151291ecce668672970c27af062c23511
MD5 c3532505fed0510374d5f56bb20fbfda
BLAKE2b-256 85670d1b05fcb65bfdec4f2ce8cfadc8bc54c815fc764c7211193864acb4ce5c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a89971287aa55cb3cb113fe8f66bb46505b81072f05679daf175be1220362153
MD5 490286a548bb4728ac42c79ccc8e511e
BLAKE2b-256 bd7047134625646ac6312efea73c1eddc956ec58f479f4fe3ecc661733b8f9bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 62c1e5cce6d7c672795c67551bcea7f72988d350fb97b66d18934a8cc44e9277
MD5 34bcb5109c07d3a8ec3d1ad36c3c1ebd
BLAKE2b-256 1688bb6f6d8f42ad69993436b8945c4784ed4eba02ec66e8ae0fe9fe105842df

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 39cd483d011dff3e6cddbb6ee1a7b83851b9ea0ed372400f728767eb3d810ca1
MD5 66cf86ba4a1d7f4aabd2ba80eb0b9de2
BLAKE2b-256 7c41f1595ff3c8ef728c1f8fa031913925915de2f7c5205c6f595b459d6b3ddb

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.91-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 309f24f2ff0ac7ecc3b085763e8ee4f5a080d3e9de92b287c13fe3f49c103851
MD5 f43f8451d426fbd181f50f42c7b1dfa4
BLAKE2b-256 b1b71a569ca9e166cb9ad3f7d1098fb8e323e8b712590e29fa408c315f3bf14e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b80c0ffd4bd5a0ffe2b1b6b4e0b5b7e9e2c8a0090f117bda1c619c5948804931
MD5 da1856fc09eaeb479abc955593043dce
BLAKE2b-256 86874e391d96cb91fe931d8dd6275b9aa2d248be74a2732379bb35b8a79f452f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 859b150747fc13bf2523802c17187521831a3708cb613923736643e91903d8e1
MD5 55896fd1f75430247fa90ec0387d0ab9
BLAKE2b-256 6005c957a6e9547f43a091d37e5cc23eaf5742fccf7e9a514a991980b5f7158a

See more details on using hashes here.

Provenance

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