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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.87-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.87-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.87-cp312-cp312-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.87-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.87-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.87-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.87-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.87-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2d7f852743d03d64dfa9b576e23288e2042f4e4827d20b1eb76baafcec9bcf07
MD5 751324d430f4c05ce361b0f927aa536b
BLAKE2b-256 71972d396019f89388fa56fdaada06369a8f3e443a712c50ddb30af401d2a366

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.87-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 92776b8a5da3ff3bd1d17833e12b6fb7d11a855a81458a7ef914d1ff06b58597
MD5 451c42f74a788812def48df2ffe4d6fe
BLAKE2b-256 f06cf77572b1154caf6bccdbb891665406c7be3b5174ea230cb70ce5ea0087c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.87-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 890b6d246b368a4f887749eef585f9e94e94c166c9fc6dafaabddb90e8a884ae
MD5 06d43b06c8a294019040f53876e316cd
BLAKE2b-256 c7893f8b458a426f322b8eb7c42e68f22530a46e357657653df7aa8e1531e5a0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.87-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 07e946d0954a515443f87ec69452c8f542c0be04cc30fc487398cfbbdfa573e8
MD5 37bc8ece52321652ef8d5df4707e69ec
BLAKE2b-256 1a5a45dff9b1714047c14aa58c6836b1c3427f8999e7905dc70c3a9021992736

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.87-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 92a6cb61b2819046f18879630c77270ff1e7b28d1549286307318a06837a5fad
MD5 47358d1f04c5451af98d0d86b9d4175a
BLAKE2b-256 49ea583401d7edd8f37b203134755dbb6324768488966baa223fc33e3febfc00

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.87-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1ccbe8c6c0901d9337730473f1e32f632450c415642deb4e64787ce66a6fb71f
MD5 1c2b7abfb3885b3f18850bc4e0e8abdc
BLAKE2b-256 14639f04dcfe351c60983264048559ae9ba86a679cf83ce09e3b15d4afab97cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.87-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 558dd13cbede892a723856a6a835aa90fe418f5e146c4c17aa6610f54f296763
MD5 5f6a560ab42d8f2b59838b3124e3c288
BLAKE2b-256 6b38ca7ce18431d2f1bd6475d22df0da9ffdac9a9625a2c91b4563d15c02d87b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.87-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b19d5dabaa3289ad0e6e4f6aef636059d69f628de7a57be639d33cdd80436d75
MD5 fbf2b3595150656fb050522674b00da9
BLAKE2b-256 6f4c248a1b0bc24a9e738f69d2c9e6d9ca2ebb6e4b5785f61b64009e2feef8d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.87-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 41eb5f33138eb69e069c5f571ee2a6c305eb89bf48055aedd8e9af2d3528c738
MD5 bd89a66e02afee01ccc454e0be3841d0
BLAKE2b-256 253a797ed3d8c332f35826d017102b389d5a52729dd868c1fc296879843bf549

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.87-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 deea0312b981dab5c48f8551240ec5bb8b70e16a6a6a74ec99828acc33d2d42c
MD5 9b4924dce7c4c1aa67744c8ca6d3330e
BLAKE2b-256 4cfb0ca363085383bf7a403f6ec504cb0b4be87d6a3062d9cbc7f94015d163b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.87-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3765ac4c0487d0df7821f2c5bdbb61ba1f9e63387cf63750cc1a85536649a1ac
MD5 991066590d47a9061d0522b1b2ae00e5
BLAKE2b-256 eaa06c5748fdbecca3eba8479c4205ae236b24480095b9a3a9629e0720a13dbb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.87-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0d4678543ef1dc6727ee75b4246cf1ccf26c208a92a0ad88ce36e05eadc726cd
MD5 e869e16ea1977b5e32bee4f164d61316
BLAKE2b-256 2a5f28f9eca833092fb2002dc8ed9250ba8979f9e0ce49de4fbcd8b8177aaf14

See more details on using hashes here.

Provenance

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