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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.89-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.89-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.89-cp313-cp313-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.89-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.89-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.89-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.89-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.89-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 19a2f0ea08c0a1acd6d1bc81b0cc3ef17161b39b9c99d9518916f5f2da074fa8
MD5 581668314edc7f588a3a246292c2c205
BLAKE2b-256 08a6d1f9e8082352ad89fe7eedd18a9ca547aa3a21f6ea292bff5f64d9dc92be

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.89-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 742e98fe41bf2f9feb225abb6b7166d208d3e6425b91df3800d1395febb30dcd
MD5 2ff693868dab130644569179accc5309
BLAKE2b-256 03c8c2658ea417f324d54b141bcddf3a5844f6797040701e11f6ff69379e8b0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.89-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 6b8fc17c48aa68185386b24c3df24152c5e04b1a6d07f8698a5d0fa04a518cfc
MD5 590959e338af6bb187af1465c252e047
BLAKE2b-256 edd584cbcb1b8950e07958aaaeea9a55ce978c51af8f4062925f9efb96ab0b11

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.89-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6df4288e69ddb98fd5857b0c28ae78b96ef3cf76b958f08fb41ac8c854387ea3
MD5 fb36ff2cab6859520ea870cb0d8576df
BLAKE2b-256 b5a58d0cd0cd75dbe8566eefb198d28697d83b8993b2e9646a87f9b074f69b7c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.89-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 33d8149dd98bd7d2da6fbe68fc930f49b1efac3a14d60b5af9bf431ddc821467
MD5 af3a4be77edbb2f608423d51d383d793
BLAKE2b-256 026c0d9c7cebff19f4a8c3b80d7ee915015626d04e2c1256628237cac66e5393

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.89-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5b04c38a98616fc0411491314fb8a99c1a52fa21d93e547283e3b3306eea03d9
MD5 3ae4628ddb688ab42789c8dba758f7be
BLAKE2b-256 3914f3fc6147856b09e1c9ec621daceb6b1e378b5312fb312af8268745a8c1cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.89-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9b6e53cef6b9dbbdd646bfeac3b7a07a57e1db692ae021e19d5e9547abf2e99c
MD5 b8928167c43b8c3e918ca7995bc4b728
BLAKE2b-256 530399a2f1b87e793a85e860e83c075060f2d69112a2b805b33995858b8d474d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.89-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3e6d52b03223ce65aece4a39ecc1583a4ee2697002951faba2d73f6dcb94dda9
MD5 cf0d054ab844b763ebd98779d11f9b4d
BLAKE2b-256 1e64851627484b99ab064c8c3bd1d2c4375cc2b4eebf2986d3650d2351b27bdb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.89-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2dc21839c78b8a7db67e37394cef59241e0480fe302cf57cc80b257aa3a5299d
MD5 b577c900cad7ac4c79908921c804a504
BLAKE2b-256 640fd26be15bf879202aba8e596dd5ae0a07a56ddb50c1a6027c9f10fa26e327

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.89-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3eeb20c565be01f993a72bf21786753ad5bef74e59167483f2eb8c8e30e64336
MD5 dd5f727fe81846b4446e66877a49935d
BLAKE2b-256 93170891994a6f2f951aac7e3c6440d03fed8ef8e17865595b0e9c76946cf0cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.89-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b6c77d49f448256c629fda505f796c287845ba6214c09b9ce927be29053d59fd
MD5 f7c066295960bc16e38f619599114234
BLAKE2b-256 4b1c40974470cc1a417c2cd03b372b29d28dadedbb90bc47e0995dc5552fde05

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.89-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6a23a721dc8801ec93e00f3e1e1574ee3a50558cc388c0a03fc0147cf1ed78fd
MD5 9d599f2b821eeac6cede0f48bb320f53
BLAKE2b-256 3cde2383dcf59e02c70b762a578af222a23568299393de925385aa6da970fa31

See more details on using hashes here.

Provenance

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