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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.72-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.72-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.72-cp313-cp313-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.72-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.72-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.72-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.72-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.72-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 568a7ee01c65a97f35130db66dd411a79ff01afee25709cda9cc843a7262b8af
MD5 646b9b12054fb3de83c5e59a98814778
BLAKE2b-256 e4b382f6903c14d2db76b799fa00b57a3c68360ef55d48d9fba39385c178699b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.72-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3f9c8925e6c9d74ae860f36c4c835ed2bbafef13330bc858900901d053d57218
MD5 40bee90d5772148237e0700dce9ce0bf
BLAKE2b-256 6e0482a2e05cc041b692efbdad937f270056ef160a51e8433871513d265c675e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.72-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 31ecf882a194afe95f1ff27367d9a03394996a03e901dbbff25439cc678890d1
MD5 a10dd52b0a7004cbcd6145dff3ea66e0
BLAKE2b-256 9b4ec9a31c3287de74a00651b6c1bf1b318218291be08749afdadd855a1bc773

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.72-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 82219d1566c347d0dc02f2517e3d3141e4c15a9985ff919a9db19129f3a459bd
MD5 172da7d2763bf7ccb71224cf4ccae0d4
BLAKE2b-256 66268069cf89e632210d326a873a6d235b90cc3e9d46607dafe23c5799e543ad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.72-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4caeee7d1005ff227a311c283f9b6c89ed5f7e0abf35e2bef3320c9c931e0487
MD5 5f9a80df417350048d70740582abe9f5
BLAKE2b-256 bb7ae7bbbadf000d848b372bfc735eb961fe84dad893dc5b1b084303dc73862e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.72-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ad471745af0ef0d00912fdbb4b563d9f0ed65c699837092d3a0ce8519a76a92a
MD5 abf18f365dc0ea09ab9f4e3c2058038a
BLAKE2b-256 ff51f6ffaf100eb29886a98a411e581e449c5f6e8245803da2ca7a714ff424c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.72-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9a9588da71350994fb45828fe24fb545e9d5cbf66077b940b7560410f9350e84
MD5 3adca983c9bfe83e55f9f7c3f0fec3e1
BLAKE2b-256 f63dbe3af8b61600637d370a934866fca3576edce83bdfb1e81ef8471c03e311

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.72-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f985f540ccc22749c82d5357eacfb24db1da120c4964a04bab3256f35a37a9ef
MD5 730d338ba81767918d9893561af8be3b
BLAKE2b-256 c181abb1bfda96e44ce166a1b41f08ac1bf018b1aa4de5f1f237ab3183a0819b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.72-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9b77f4d90708bc070a2d503fcf07ea7300ef460ac3b1903be3b6341c0892d39a
MD5 1029c1f9222616eaa4c2a2e7e10bd3f5
BLAKE2b-256 7b0e2455cb44e2bdd09e925e1b89bf08138b84be8e3fc5a1414eb07141a07aaa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.72-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 81c01c9b917bc7a8ac3ef3dffcadf7bbf3d986018430ba06e498a5d5f8c138bf
MD5 6e71bca35d0c12ab67b4c300ed4bea2e
BLAKE2b-256 ec949b1b606e9e84ac19afc82a958705839ff095e2bfb1d539d110e4c608043a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.72-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 feb78038e1417bb82bb1ca0af41348be10eb64df8df78793ff259aaa45874881
MD5 b53dd52c020fe0f769a9a64efe211363
BLAKE2b-256 76ab87669ed278a979da47d6649a06ade90ad5f7156fcff7a761b4c17a48e0b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.72-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d99f1af703db76e9ded85515d7d0aa174783eddf0904fbcc46e5c2bb0d2c0744
MD5 715105ff11df31df55addfd36d2683bb
BLAKE2b-256 4c5e468ff6721d6f008874d60e0802e0042680ef1dcdab4c57cb59e5823cda54

See more details on using hashes here.

Provenance

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