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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.65-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.65-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.65-cp313-cp313-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.65-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.65-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.65-cp312-cp312-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.65-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.65-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.65-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.65-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.65-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 edab11d09380291e1ff5e7ee1150cd0f908951a50697e0fc69e9a5a1f2ee8c54
MD5 fabd7bfa5c3b7f7509f87a46668f4895
BLAKE2b-256 86e81c0607bcda12d225e11c06e2a01b723bebe792411990b51ff8b1bde4d8f4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.65-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 84507bb9c291b52608a25a031af130c61488010d114692c16a6f3ebfa0f11596
MD5 83934c2c6c8ce2080c2a99977b9fd98d
BLAKE2b-256 688c664883cd78af9e1984751c54b722297419daade46e8d646f755b9f9d1e66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.65-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 87216ba7e49319c29f8bfc457db46c349be9e9f2e44af4ddd8e86d6faaebc66d
MD5 dbbd65c262189aa7338bbcbfc4b85f20
BLAKE2b-256 935f5fad14b6955f7af8c43a2db7d8ab26539da3ae22abe8efcf2d87d04e12b2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.65-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d9ec8ba0aaace66a971a7c608d7df24792b30e48f9b7f3c6b9094c414932eb81
MD5 64cdf920d90bf3eb5eea73fa33b3273b
BLAKE2b-256 2e35d498f85c168fdff26d4bc206e3d966f2e425fb00747824bcdb418ac885e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.65-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4d9061f0d13822b854a2eac1dbbd2136992fc7f251e54cd46036409d597870ba
MD5 75a452e8069d7176a9455d2443a93a5e
BLAKE2b-256 a8c1bf293bdde29f2025841d297b0af1783b2c02e757b2ec74408dde74cfbdb2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.65-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5f19cd1ef44a23912c92b282520c44a27b95be289e54b3bafd200454f9929ed3
MD5 2991dd54f36f1e63d60ed018eb62fc4b
BLAKE2b-256 5d787b5721d7332297a3dd7593a4756c82edd94ff721a156a76e651c02a2409c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.65-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3a00b4b5b7d9cc47b0c57e14af44593e567c9f78d2c69fe146560b39c96e96af
MD5 f8482e65a54998cdc2c36f7637f1ffb5
BLAKE2b-256 11d43bb0cb55e56639e51fd76f80c0c06837e62a84ebd2b1d0e0505edb2571b4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.65-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a9f155255bd9ba05957333b4bf0e3904cd0ef1f3f3f474c2fcafc0c49ed5d2b1
MD5 8e690d6d93092e903ce6982dbc1b6d93
BLAKE2b-256 b32ace4e10ece8b4393cdade35f1baef94c9afb2bd653b6ffc1206fe5e27d712

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.65-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 96c6d3aea4b9e8a8473acdcb01a9585e21b62e853377cd79c52856f62fbb0fbb
MD5 7df6ae6c8c471d2f97624744d787f0bd
BLAKE2b-256 4b8e432a7dede4ed4f7ddbe8e725603cf58a3c4fe017984bfd5f486e576fd0be

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.65-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2bbf5ce93b82482ff8cfbc02c35c42d28b7be76e12ab7c913ddcb6acd102644a
MD5 beb7d19bfb5108873b597b122625f2b8
BLAKE2b-256 f678edfc88b829210fb5a67f7d9b78849725aba917377afc22a7ea6577bc8bcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.65-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 605ffadbdb4d41fe27086c44d995daefe1edee6484d4e3147488637149549aec
MD5 7d9e8e2e32e2e0a105043369ee6b0c1e
BLAKE2b-256 5a9b3f9a28bf359c70af225b1dc629f886332dc8f21259f96c9e90cfc8d8d350

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.65-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c43b9470cde3d3efd7169157932bbc1ed352f1a98384d06f548c7516a592349e
MD5 3d25205df5d04a6b300b00e5491195ba
BLAKE2b-256 4ab1d69c854fd44b050d6232fa64144740c67fd4e1566e16d4990994cfb0dd08

See more details on using hashes here.

Provenance

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