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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.93-cp313-cp313-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.93-cp313-cp313-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.93-cp312-cp312-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.93-cp312-cp312-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.93-cp311-cp311-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.93-cp311-cp311-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.93-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c665be1e93939a1861a4746272a95da5375966baab910814d5523e280c3b48d7
MD5 1b637f9f9464c6eeafe456ebcc384931
BLAKE2b-256 1e7052f62e8e4e1060b2d1436899cc070301caeccdfe2118212ae00d2e9aced0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.93-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e2af6c7e6f90c2ea2ca0fb5785cc6a9996a6afcc929c474e5fda8ba2e6cea5c0
MD5 dd3a52e3833f1cce1a0d03fa2852abce
BLAKE2b-256 9f62599a4d1f90ff9f3e52e7e3d05a79fbf2550a7d46a72ed9608821b6ad78d7

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.93-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.93-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a3f08b8af60dc327ff88eb09574dbd288ff4a1a5939ee6339b6a7f6f274dcd27
MD5 814227e1e6abaaeedd025afcd4c5a717
BLAKE2b-256 1421071928159e138aa19dd35f4eda2ca04355ae818c71fb8da9ffc97c3bd84b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.93-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 09f583e0ae8a6756aeeb5cbf621cb460ea08f47211f31c810083c635c6c8bc92
MD5 d583362cd69a6cb5bc9f3932eeca3ffb
BLAKE2b-256 ff5185707a3fbb7f240626df2f746d6a7e0961d102699fc2c4841d005b74d51e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.93-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 724209f4e2d76bfa3e52113297c78258588b9803e84e236e2e6819b949f861b7
MD5 c4cb255798f0f9e56e0cc2900fd42fd1
BLAKE2b-256 8dce9c94d7eabc1f3226cbfb1d67e7ff92d6a493ff867e978b08e02b805714d4

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.93-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.93-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e79d0a970d83a087fb0ba4d180c8c1c851f61d21131a0e199dff54d398aa809a
MD5 6de1cfdab3384a45e53545b63f083658
BLAKE2b-256 9370bb3469eb1acd09340779282a3af8c1f39c1251e8abdef2d9cfc98a41835e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.93-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 46e9919b230b402ecdf35aeb27372cfb036f72fc0783be44b9d7c12dcfe33a2e
MD5 8bd05b292f2e02ffacdd3566ec2a05d8
BLAKE2b-256 3db75fd6be616b6dd15454cc81f99a99d69dd658ae1404a76a436e732c595ff5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.93-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9b1378b8b2ea53ff5007e936581267bec709aacdfa7da442ee1f24c75a09192d
MD5 87b1795d338c9a46ed33b42e9677aebb
BLAKE2b-256 59b24aad95c45c31043d2ec8670d11d2130f13b28d32573ae54282aa420cbce0

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.93-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.93-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bedad75264e2110a400fa5afced734ac7cf7169bfde2cfec2f8250dd2a123dfc
MD5 e6d30eaa2575eeeac81b81b37d5a39a9
BLAKE2b-256 174ea9e67feb916a04b0d8e0b56cadd015ec3b3b8c967516b37992df3f5b5a49

See more details on using hashes here.

Provenance

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