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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.39-cp313-cp313-manylinux_2_31_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.39-cp313-cp313-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.39-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64macOS 15.0+ ARM64

gllm_inference_binary-0.5.39-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.39-cp312-cp312-manylinux_2_31_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.39-cp312-cp312-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.39-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64macOS 15.0+ ARM64

gllm_inference_binary-0.5.39-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.39-cp311-cp311-manylinux_2_31_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.39-cp311-cp311-macosx_13_0_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.39-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64macOS 15.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.39-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7591b36a11923192a848c792352cfda28a22f576cf8e10a2ddb8c568b4870f04
MD5 13f77762f31f2c0af241f9734e4e2bb0
BLAKE2b-256 10dd97c271323df24951f1a85da8756d9074bebcc9fda0cb89612d29186a5b31

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.39-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 04415adfcef599cd4c70aa0cc6a336908fa488ea4a65ad1b7cd7d4a0a8b9ee07
MD5 f268d9ca47f2f42485221295439da076
BLAKE2b-256 5f871f3b13db1444cbf83548eeec16da25bbb00bb24750ae3ff48e3bbea12d73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.39-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b55025b9ed1fdcd349d105b4d24337b29644376476755101bc3ee5c99b120dd9
MD5 3ad8ebdd923f0cd2a7c3ad6d57438d1c
BLAKE2b-256 298ccbee8218ab75209171a7fde4ae3cd935bdb0c83d19ea887c8daa7fd7cce5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.39-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 0c3ed47241352ab535fc600ac13e09a7178021dca5db82a441cf742219a16b20
MD5 2cf7284821d12cbf5cea902d844b151f
BLAKE2b-256 f12eb5d36a2dc4f002268040d40bb1c33af82ad7496e3cec8a2bb6e515f44fcc

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.39-cp313-cp313-macosx_13_0_arm64.macosx_15_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.39-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.39-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 687af891264dc5ba1d8084ae89897928324230e6364d6f73cc04add3d2c6103e
MD5 3b56f395438a9c26ae0268ddcf1c34b0
BLAKE2b-256 d8b4980fc654c6fedcc29e6a0c8445be4a82d291db1bf53ced1308b738cf9625

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.39-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 54991fe09733ed1d2735c593286bd507b30be482426e36e9efc1b157e009514b
MD5 3ddd71484d214415a9eb64d82cc9462f
BLAKE2b-256 97b2c58288b26d9ba3d2d5c285b0d2b0cc18f0d65fb3f30ac9e46cd8e9c0c8d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.39-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ddbcf9a6f18c5aaefb53982576dfb856cc95ff03b4fe36b530620fc3778230c4
MD5 3efa5e95cd8d68e77df917461295ab87
BLAKE2b-256 b4fdb2fe07d388ca0e7a411ab6b05cf6c11f70d573f70da849b248771c7b7d42

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.39-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 d7ec694c70d27fea75d5ca84f27c73f84955fbd2c77b75bae8a3f571dee0879c
MD5 6a4b0f09d8f87ed61458ad7f153e2dc4
BLAKE2b-256 a40e2338a3f5ffe6b9099295d30e9c3dd1f1c0a734935e9266092afc5e291ff2

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.39-cp312-cp312-macosx_13_0_arm64.macosx_15_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.39-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.39-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fc9fa8d0c42c149b3c805a59e98c50e5b6e68835f3c77c68a5106004164bdd8d
MD5 9ea58f7b629ef9617cfa1976a300bb00
BLAKE2b-256 9b21276d2688cde65ef9b896c30fd1e05b92e2af7e05a70ec416e2159488d24a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.39-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2c572fd06c2bf54aaa89d927951dc54767d7adabb2ebc39f7a1555f23e50b157
MD5 1d1fe0765ea74616edb0c32b97d2b686
BLAKE2b-256 c8fc928c551a6807fa5c2f301ad3473d47b283c3bb0c14d0533eca207bbed92e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.39-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2ea88058cf116b9af222b19543dd20357ffc948ea4b75bfcb781b29b80a32edc
MD5 b67a58c0e88064542e50b940863c146d
BLAKE2b-256 a9788dfcf9a242942a8e8b4294844cb7db143c97f4f4e8d60a887e4a9ab65485

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.39-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 253a2232303c26ae994a74f6bbd8c2db7b34227e11ccc783454e94a9741dc1b5
MD5 a642f3c52c74f2bb6f3283b307ac96b6
BLAKE2b-256 10caee218764555447f88100d6be5a5fb81bed0b8a372aa135a3e930680b5377

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.39-cp311-cp311-macosx_13_0_arm64.macosx_15_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