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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.45-cp313-cp313-manylinux_2_31_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.45-cp313-cp313-macosx_13_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.45-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64macOS 15.0+ ARM64

gllm_inference_binary-0.5.45-cp312-cp312-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.45-cp312-cp312-manylinux_2_31_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.45-cp312-cp312-macosx_13_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.45-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64macOS 15.0+ ARM64

gllm_inference_binary-0.5.45-cp311-cp311-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.45-cp311-cp311-manylinux_2_31_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.45-cp311-cp311-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.45-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64macOS 15.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.45-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 356803a1eff379dfdf97d030da2424dd1774d4a70e6ad978c5408540369d5192
MD5 7eb8cd4386b89ac136d0a1b78c48d343
BLAKE2b-256 4fc4916c7fe29570f29392d90a97ac2fcc07e0350b456625e25fe4eed4137767

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.45-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6dbdf3a72b51fa5b751d8c2bb92d76caccf4641a18217693ef049a98efeb2b48
MD5 05c4f8fd40d54c1f1eda5e3a15025caa
BLAKE2b-256 2df31d19a7d11827d9a51042be9b153bd2764ca6d972ea6cd10bd459386b706d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.45-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 663aac78a2ee948cec975ecdf1d87c3d1d583fcb5c9f47c32a42748f58d61680
MD5 bf0c986082c382cc1a2d2edfa4500fa8
BLAKE2b-256 cf69df08c0a26ba092bb02b259e1a268bf3da02c34db34034017fbc113f86141

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.45-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 d4440595cb1ee5af2961bbda912eb4e118b2059982e5fd5ba0406ad3fa020675
MD5 be353aee9b6ca8ddd8600b1126e96eb9
BLAKE2b-256 b9c3151490a1c915a209ea881dddbf22fb4323d6dee7497ee68b470fa850db17

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.45-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1cc838d9c27b038be40992ec8d457ab133eaff5818cfdc7b114c95b4a8398096
MD5 708c87226277e8924d7ff4e06328ecc9
BLAKE2b-256 c71ae12da9f3b07b768dfb0d216f4ba148db4b04840e4591f051a61dbbbee63d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.45-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8ab077da051c9aadddc922a734863b67738028f8d89fb0138559d9ce43d06861
MD5 933bef33ff9092f294c871a8519c9edd
BLAKE2b-256 a4cae41aef8bb10f740964cad5832783cd6b01ac4b6cdc49a641524dd20dd608

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.45-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8227458ebffaef0784d13cc48dff42d7f9c4ad1c4a1759e302b0996295eb85b1
MD5 d5ec5e0fbe1cd4257a8d0894bd66d22f
BLAKE2b-256 1ab0a71d4e9ea226987cac4cacf7d2eed64dc523f49937ab89f376479c415f92

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.45-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 22f911b75900385bab89a5ae8e46f8bc7e5653f386233e51d092c5d1187b4542
MD5 00c6998a2103a9a9789c996f2005b0fe
BLAKE2b-256 754c607a9ae40a487ba7cfcf92077827219b04703d4e3c668806e203b3d04473

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.45-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 267540f2dc7be93f25b9b01cac8cf9691a24a8e6d358cb48a980929eabc08bd9
MD5 15866a02662f6efd9a350c1b9e0e0004
BLAKE2b-256 d5f8372bb94e89892caa27e102a7cd1aa558ad1478cb2a35012fbb2a7a939534

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.45-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 986691493a4348c96584f992a665234e9e62f39494f6153d0debe5ee771489b5
MD5 7821ef40ac28484c1f3fe851f66bad7a
BLAKE2b-256 f5dd678604b884d9c9dea2d3168e1cf6f44c3109860554c2e80792e1e9726dd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.45-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 836c33216a23f1fc6ed644c80b8697a31ce5a50cbbade698a536c59dc228427a
MD5 2afcbeacc76eb992260b22945fd5ea4b
BLAKE2b-256 72a5fe2e04a54b64fb831b2a32c3a46e43d8ad7ce7e387cac1e91bbc554c33be

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.45-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 15e86abda19fa242ddfeface2913e148fe84da932e633d7377fc969cb69760c1
MD5 1a726b3d1fa1a04cd01306b27c2395cc
BLAKE2b-256 24b6658ff19dca284007e749eec55b7bccbb187a3cdf03a714280e52b15377ea

See more details on using hashes here.

Provenance

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