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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.40-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.40-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.40-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.40-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.40-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.40-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.40-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.40-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.40-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.40-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.40-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.40-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.40-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 54a2600ea8a73a6470439e2f0878ced4fb13922a2b32dc384c212e1a0f232e0a
MD5 0580d782ea50f4cf062bcc678d07e303
BLAKE2b-256 8f50ec0ad0eb2afab776786d769ce702e84a0f44872b6cb8030791477506fea5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.40-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ccc36207192905747aa138e4634f7e915ef4795760b911ef0bb28c29785053ca
MD5 7540fd0a4a9807482a686d6094f28d16
BLAKE2b-256 cda34b1dc72bacb7805a8e98c1b2f255b8dde054396a81f671fbf2b251ba216b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.40-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 692551f72fe5ef8ec0a75d0290b9353f5f56ab49944ca5075889ece3075456a2
MD5 602b599185e4345fa1ab6a6d7707d6d1
BLAKE2b-256 b07d82000a9773607856cf23ddaf51c7835c2299efa94564dc45fd5ff35c8b70

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.40-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c802abe742615627631a07e38c645109c210daa03352cba0fb0aab8b211c7e61
MD5 e0f24d3e99d0e636083590b1a383cc3c
BLAKE2b-256 e92c5ee9fbd052af5e7a67a92e08564851fe625f68d698e5378c117a38195f39

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.40-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 34f3f68550417556ad3195bbc783dedc6fb813f6119076594e35ee4e469350a4
MD5 49174f0f77ccec64772ef84e750b3ab4
BLAKE2b-256 33606474ffa1dac22aa1de012532dbeb4e06615a8f4f64bbd67807bb26f75d7e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.40-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2ab20a0434423accd85f9def7089ad692ca6f46ef4927ff0920ec77570dc3faa
MD5 f5e52e8053bd50d44669c76c4f40a290
BLAKE2b-256 a6bbc8ab1b3a5c674e2fb3c4aed7b22f76d53b90eab18383a0481ec3fbdee0a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.40-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 440f250ecff4c01c0ed20e995b608cfc82a019eee215679120c17ab6388e8cee
MD5 847528479fd6de72cc356f0c18f9af45
BLAKE2b-256 a90fd42a05a6c083af5a2e8d306c5154efa61caec6a4d3c4952aaa288525f797

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.40-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 b9ba99d44829927b9dc202c3a44f1408762f31b25c63f69e3f6cea8c136fae70
MD5 e6dd58264b222e596ec4bb1a4d26385e
BLAKE2b-256 775e08be1c934acb4b2a39e68f375f2505e0ea99c3c96bbf780f46de62d46853

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.40-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2263be280de6867f1924bd9f640ca21e1f9190162be8c2192e9f2e52e9e2b66f
MD5 3a2185c8c7905c550e2f3391d945e407
BLAKE2b-256 4f79181001dc589b3822d9a947635d8cf0c553ee6ad81137bab7625adfc9fd6e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.40-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4d959949267383c538e286ab177a566a73354ccf05d691d8b194abe8cbd2d33a
MD5 55aab604287144c262480c876888fe52
BLAKE2b-256 85f91020f22aa17508526aa55c9031f91910eeaf9db328efaa06efe6667ebd1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.40-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ce8d753aabab9c07aab67e451534fd041369d67dff6405c189ccf61382ddcb9c
MD5 cc8ada046b4dc45c917ddfd59abed8d2
BLAKE2b-256 5603f6b60428ada0bd38a2dbbf658b0f14c5e929a835179e85c09ef5679812ac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.40-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 85567dc0cdc5d0a065aee80785eaa18794f479e7c623431d222e71863f71e650
MD5 23b2232bb3435510d67660045cac8f2d
BLAKE2b-256 7e320758e17231e35d587b9a2d5708ea7de3b3a71531c92616aa86804a51b66d

See more details on using hashes here.

Provenance

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