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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.82-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.82-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.82-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.82-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.82-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bd6dd1417601965d7c680eb5f9b504deec8d9461942c92cb83600eb323792371
MD5 94bc5426a2a46752f53c7773125d8f6f
BLAKE2b-256 27e31a87e79a31e56c1b7f05568c2ff5bd3d8641113b6a56d84d319a537b116f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.82-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 87398b4edfa2af2252888bf1cc1900139223ee1cd09d7710ce1140718cf0ab3b
MD5 cfc240f657de082c957317ee185c5135
BLAKE2b-256 91b9be08ddcab9aa45b071f7298fb7ebd872e7ede179bbff82e5aee5d805498f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.82-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2fd1698607eea5e15dc6531e053176edf87016da9c6e32fc04e5f097b59b2c39
MD5 41b104dde029f4489425e1b18b0eb67d
BLAKE2b-256 b96f6a0ac3a35fdcc9c15f11d4d1c58d55f0dd8f66bd22c4c0314b71b038c8f3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.82-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f18b32919d9469021c1a6a5d2ccb3f482853817ed5b5a347d979f1bb94dd8a4b
MD5 1f131aa5a2aab1930bdaf18af83f61fc
BLAKE2b-256 a2b4244df71d51ebc0f2e62cfedb036bf8ad00e6f1f1084e05dd631cf2e6c864

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.82-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 23c5b8d602e39e640a20533f35c391da877804abcf387e95649c84a13873f779
MD5 2f548ab7dc904ef8220015127ab497f0
BLAKE2b-256 93a28a245a0c2d84bf96ec09c09bedb0e189b0be59085ccc98943d9ab501e7be

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.82-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 7e1167b3f50d1711d9d22501859b8e6cc8bcb833e7d63a69150ff5c7a0ca679c
MD5 f2101044f332eaa6b4a0c04902747a0c
BLAKE2b-256 05f5d9be971c8bfee75689da7726f7bc788d1d860b907d5aa034e0c7b8d50fed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.82-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3a0a2a86368cf891d41a84ac08ba24c55fa92df5dd11944b582b710280cedfb5
MD5 487e424535e6f73126ccbafbfa4a16c7
BLAKE2b-256 084233a48ff9846d46cca268b5e430ab3a4fea98eea5b94b3b0a3ec921f516b9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.82-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3190d492579c21706eb4227474185cc8162e9ddc93dd4ff252b1d9f46b583b86
MD5 8e5926665f4023a022714b2969928d83
BLAKE2b-256 c2998816657c1fd2fa80c9a69d5f02eaa2aa64104f1d70eca24b4d755a9b1aaf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.82-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9aa2af204d6006d64b12bbfcf2815c5f3aebfa76e56e37c4ad6bccf5fec79430
MD5 3569a996720b9930a638d0622290c4b9
BLAKE2b-256 e5c839869304b7c8eb8b8054dff5b2a117a3505e34163b2a93f7057d5b04b83e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.82-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ed1e7d2e44496e0ea81c6ef34e8a8c82138b56794fb2e8edcf16db520ee57c49
MD5 2c23398a51f14cc69bd1e9f681e5cd33
BLAKE2b-256 a5b6919e901feaf648e161b5f70a7eca7579fc7f83d6e198ce6e74cbf5e50de3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.82-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 316a955f66474d77da00091743fb61bcdb5ee3fd6ccee88fe741bce3cb58f966
MD5 4ed73c07b4b9d49566d478f9725fcc6f
BLAKE2b-256 296c53eeb778a8225391604d20112173fe9cf4fbf59fb750155668494146f2cf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.82-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a5012f8ab6f8f3b1bdba76a3e2457d9657eb8fcfbbc479d7747f6f643b4efb71
MD5 f3cd0a8c66de72441f2e0ef0c88cdca3
BLAKE2b-256 ccbaa7b535d8d52fb551fcdbb96959974d9f58d72216eef78d76ef942c09dc63

See more details on using hashes here.

Provenance

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