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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.61-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.61-cp313-cp313-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.61-cp313-cp313-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.61-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.61-cp312-cp312-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.61-cp312-cp312-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.61-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.61-cp311-cp311-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.61-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.61-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.61-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a6d14178a0f3721e35e7b3b55f364f975196e63ef83a7812703f683437effd57
MD5 1da82c1d85181cc3632cfef00565d4f5
BLAKE2b-256 c502fcc9cc8221ec7d56a1f7137605274858b0f0c73c341a96159e7fa97a83a4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.61-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e92652d2d1de3a730977ac989d9e1d541e9141a2c886192f2148a0d16f5adcae
MD5 e97fb5328abbcb2dde0e08a73c1a763e
BLAKE2b-256 362877404400892cbbc7758f2838a17b2d5fb1f8f352058618fe2f06694be0aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.61-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d7806c6871240fdbdbe20425364ba6f614a8a71844f4837d7da1884743c8e20a
MD5 32ec01ed878d68f32c9f8c26e8dc408d
BLAKE2b-256 164e5ec05f8d128d9b96a03808271c271bb8ad5d62a885c7531230509ec5f180

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.61-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 09598b924892e1def3f93351b4b67334e30892609211ed7654328bbb9aff62b1
MD5 791e73233c2a094557f6e45f2e48db9a
BLAKE2b-256 acedc699438c1ca0112142b45637c0fc6df8c658db8685f385300d5326c52eb1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.61-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3b7c40ced2540eaf7b412365d3d47abfeff4dcbd4ba49f2e6de49879352e8ff1
MD5 6bc72470009767dfd3c8a654e1fe4d95
BLAKE2b-256 f8663e476607847051d5512c11b1465feefee4f7f01ab5a8ab5a141d17b92141

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.61-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3e2a883f0a54528591e04f188f95867d01542db095f9d1ae8dec8074e0cfd090
MD5 4be1e53d7d2c77b3cf146e0abab19e08
BLAKE2b-256 72eb5d78318bb2197d4fdabfbf7d2064259e27066f86ca8f2e307ddfaa64c2b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.61-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5091983a4d6cd73ab4040e2733aba6fdccaaf7fa1656ac6c1a4e214915caecf1
MD5 305607aac65b2fa74b18f6e1c0cfd1cc
BLAKE2b-256 c8560c83a970c08b8206d91bdef5acbfd1c2f70b13f9720121114374d3ddc356

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.61-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 43a379146261dd1d517d789842fbd56b864d78b4915b25096e2616786c856187
MD5 fbb8b6cf63efca28b79b1f01b20557b0
BLAKE2b-256 6d6d68d1bd6ba6977189c44cb32b37cbacafecded04acdaa623f787664d9da7b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.61-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fca842e367554f9f6a155f594021aec8fed0de0cc01184c08b7400c59cc65def
MD5 05decb7f2a2d94204bb4bf0a303db537
BLAKE2b-256 9418e890bb63d5943bbf388faa681942fdbf3097d81e9c5cb0adfc3296a9ca2b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.61-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0a6e0d1cddad2b79ea660e846ebafe68e588a0dd36b1a2452e5748067ebbdd83
MD5 e417abeac0a70e78e5565b5d57de9170
BLAKE2b-256 e9de93736ec552e837aefb3c90d3cea354628597abc7ecb521013b97307dc8fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.61-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3de942213666f0085e4239682bbd39ca88fde77f369f06f148b87559250053f7
MD5 8a52575ffe8b565c42664ba57b9f5856
BLAKE2b-256 d9b33d2a7dde8b156462c96c90dc01454ec9debd32e9fcc20dd4e8fcfdcd1cfd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.61-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 370558f8817fc5d13c6e573995befe9d2af71cc5d0c77737bc2f9dfccf597ec2
MD5 1a68bb7898cf904f611874f195f81e39
BLAKE2b-256 687d0653f9fba01b8993d7fb70421974558a2453caa35b2a5a051890f55de607

See more details on using hashes here.

Provenance

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