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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.73-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.73-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.73-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.73-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.73-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 27d180299af616b3c279fbe680e760d4cade774ccce94b5342a385ae35a77052
MD5 c9fdf669aea885a6e80cdd516cbffd8e
BLAKE2b-256 45dc748de9a98ab749bd04c718e50fa4a1f9973ef1f9cf75c7fff60e68df3795

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.73-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 90ed646bbdb05a52610cc7fe717d628089e29bd4f295f46232ef55d820a19f34
MD5 626fc404093df06c8d917c8630a3e01c
BLAKE2b-256 3c5cc2a17b47948c2ee6943a0e85e486009c3afa2c50f4802b5ded5a9c5152a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.73-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 82a24dbc6eb9f2fa75ed8574d3eb1ee3470bdfbc2bc8d7d736ee6be9bfbace0a
MD5 2cc951c97d1cb16176a53b1c7306693f
BLAKE2b-256 7d7403bc4e862b47ba7babadc021d95e67a0dd17ca99b5cb4f0b6d9b2a65b097

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.73-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 292ae2ba36a4a458d2bcff121ff2be33da004c693899ecba894c44aa43b1c36c
MD5 e97658c2059dd01bd7ada1c7337183a5
BLAKE2b-256 651c98419cad2d60c2db4bcd882d86276972c7238957a015302909bff95f048b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.73-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 44f9a13a98a0335f8d7c650a23c1d5da033d65f6dc23ffc11299e0657c392b3b
MD5 39cbaea668665708be39aeb9e16bc920
BLAKE2b-256 004f24cdfae7a6e329691316349e7396ea452d189cab61dfd04bf6ce076ec9dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.73-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d8cb96639e7ab29921772e9123a77d5a89a1843b419a9c39a6acc0d60a95b5d1
MD5 8e9dfe333d6a34e671313347e791b62f
BLAKE2b-256 a99b757f3452f1199c0a2105625071d070bf484a79a7eead87c709c55f3acc96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.73-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 f91b00f458caadcd4787a3c295957b58449ff5a4463883d165a5980731f527c1
MD5 fa8770bef66b971c3a3119e0ecdaf0ea
BLAKE2b-256 8488c3da83b23ea61940ce3d557ab3e94f14309863f55fd388c976150506929f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.73-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 918ae670927b81c44fdad7be885b83464c8349e79488d58c86ff7cafbd515aa9
MD5 c368122ac21cef89c12acedad4431cd7
BLAKE2b-256 ed58ce1992f4f14dfedda69d20cf91022e89e08097222961c59b135464e7275f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.73-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 299a0251c0fc8632528ffb69d484f34607a16718f42134c6b2c6d48094ee5b13
MD5 1d9fe08f4c8f4e589d4450c5dbb05f78
BLAKE2b-256 76e5bc495831a83fe0c0b153ef8a1a174cf42e04318f33f87eb7be6689447fe3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.73-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ab33597de5d21853aeacf396d1ea32fde00eb83206c26ba795143d87fc80ede4
MD5 251023662431e26ca0280e604e9a53dd
BLAKE2b-256 37b7bc4fa27e76025a53ccfb3dcfe194f342fe0ac36be08e5d666c094e0f7e46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.73-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 adbb543002e45547d56343787a1f9936eae2a313e08f9a3d5332522497b9dde4
MD5 cbec31e19729d258d7c3eb8640ee966b
BLAKE2b-256 0a6ec2881db604311c456fb9ba406c4f51f24894e8d62f273edfdd66abaafedf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.73-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7242e73f9b1697cf178511dac6b568c1b88e00b1019d4f69930191495d219f24
MD5 89b156f12c2498d8db8b0a8e11111b37
BLAKE2b-256 a692666efe16f2b6ab0803e25cf67ae573f63b44d82800b520453d54765fa963

See more details on using hashes here.

Provenance

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