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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.81-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.81-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.81-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.81-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.81-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f9e3d725a89246c23888eddfa14cf9bb5fb5e2b58ffed91c19200a2988955679
MD5 eaaa49b7c4a6a6938251a248bc91c77b
BLAKE2b-256 fddc2b556328f3916b510a3bab2da5b9424d9e2ba1aa4d0629b0b5df505ae573

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.81-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 70e5bb984dcfae90a615fe48e4ce19b5c73e62553e823532e68f6f0606839b02
MD5 3aece5ae33aef94fb52b42f56b2d1cb2
BLAKE2b-256 2705ae81fea6ac4c313fc5010b8a5f88ea31a9e03898626042cb20590526b385

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.81-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a5bf872168c1364811be92cc883a26a43944841d83c973c4967500b84c435d44
MD5 db3056ff6e9ba5502943030505c5ac7f
BLAKE2b-256 62d692cef346b57f591a0b22f09bc17b9ee6aa6978a10f47d2e43f2af1a4c63a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.81-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f2fd1df005b91138820cd573549efec795e149770837f1bf3456c85e90fe0c33
MD5 b1f21ab5301c6406abe541c36f6db240
BLAKE2b-256 9068b511ec62f69b4d422c5d871116c3e0faddf6fdb7bc9d51ec8743a8836e78

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.81-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3e52b507f0a9dcb2d26fae094bd959fcbd17e40197865f608abe77de48b6148b
MD5 7da3a217acbadd758f93fc4187c3a1ef
BLAKE2b-256 707d9695e7bf7ccd3fbfd2915fc8756e2bd4f09bf4e210d4dd1df27531e2403d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.81-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bcb117c8d9dac8dc662e6e4f8e918bf124f7a21de80c91eab1f5424cabac483b
MD5 1f3a7a9e418b534e638b3f82ff183f02
BLAKE2b-256 b4fe103608101db8ce9a10594925b5b70f4f6d651aaa52b8efe086c6ce70472c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.81-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a69712c11b56252db214e6bb51d15217565e416502a7a36c13d3ad47724ee66c
MD5 7c110ca2f8192d28d6b92a9c38b5eb50
BLAKE2b-256 e0cf1f73d45c6ffef77edc766c6f53a7ddf195dce6fe4608c57e25b65c7f4b15

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.81-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 57bc3e1f64fd8b4d658124aab93d25e64c162000e9338ff6f9116b1ff583b292
MD5 bfde9e39f582ae290caa083a467ac420
BLAKE2b-256 8f4d0bd3fe3bebcc95d62ca39c613f5dd6b0c1a0a963b0bdb8ab20e77def8656

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.81-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e537d4aedeeada2258153ff286cf9ed7e85de65546d470238944dd6e9acf790a
MD5 23d853bc07c61dc9224b70e118ee05a2
BLAKE2b-256 77b8a0e1d74bd93e9ba56aa652dbd2eaf0101e044610543c3476cd9ca010ceb3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.81-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4bb3682e41dcccbff58848352d2d6a0056b24ceeba364eeb46301fffd0bca66b
MD5 166ac9164669195e37e9e82daf38ae30
BLAKE2b-256 b6f980918ab8b4687f2da636dc2c608132817f401eaf6f6362d9c85ce12bf844

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.81-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3d62cfac001dd85844815ed36ca2cdcbce1ede4c360c7755c21596c13ecebbbe
MD5 a34425000e9fffeb3069105417765591
BLAKE2b-256 9b4d2aa9409a495e3ab446957680f05cc4f54d0052efbd2425f6d99d926ac182

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.81-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 244fe6fa7e21b727a9eb58ee12042d8e410c758743e13b012e20efcdae167787
MD5 1426f521064ef04a5bba2013ef23b158
BLAKE2b-256 4fcacff0d300e5a10d49605970fde731ca9d4cea0cb901a5d02bc9021d621797

See more details on using hashes here.

Provenance

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