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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.70-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.70-cp313-cp313-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.70-cp313-cp313-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.70-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.70-cp312-cp312-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.70-cp312-cp312-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.70-cp311-cp311-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.70-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.70-cp311-cp311-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.70-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.70-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.70-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9bed28544fa3a63cc1cf5c8099ec8cde3a2e399ed1a62fc0f3e46580a2573e36
MD5 19cf8cf6e9b0e01131a78a581bf70166
BLAKE2b-256 fb912f5c4c58b9210e504bf1a33747ff8e11a420f69d0a9bf9670d04b2b366dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.70-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3d335e3ad5a50f31bab4b4cb82b772c7e1f2d269b273108f6677741e632651b6
MD5 d98e650047624e71ce91b83779109ecf
BLAKE2b-256 4452faf6354338029a2c89d73db093062bd23800e394cd5559114e0de73d202e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.70-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 86a4adb22c1c085a9678315c7c9b4f1cc26f90097e1c7f521c6f5b885cd0b274
MD5 e2209c1b9ad1fc6bf3f487bf401aa3f6
BLAKE2b-256 09998d9ea89f888ae68085872d97c421aaa0aa47d5c2a312208d2e319661bb98

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.70-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 225270a58fa9a46daa07a684ff2356ae300ed24eef1ec4d50fa07f17f7b381e4
MD5 d6f7d869eb98840a76e28a49f938a673
BLAKE2b-256 21145e2a7c44aeb1f66f4a8e23c3abe56af6a0ed013775155aa84f1daafc25cb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.70-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cf03b4246bddb4e2d2885998ce63295c28527f8478e98e8d39163bee117dc9b3
MD5 33303c1a4e069d75d65f50c5ecb29374
BLAKE2b-256 ae96b225e35ddf6e15184f68cf5c2056771eb5ec6ee10bfc1fc9c4dcf9c224f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.70-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 486f6815861b23f21caa5c9c474f60618420624994c8826cc698944c0e1a8629
MD5 98f477e956a50b776168e4947263fb25
BLAKE2b-256 9fa2ff135b82fbbd167e5faf4d716589be565f31fd2e49deaf190c78848e0ea8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.70-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 685da71e5a423d3f62d4f3b061ba27379f22d1a1a6fc3516b1b498246c49fb46
MD5 5c90a505315df74f1329a7e50b9fb99c
BLAKE2b-256 bda2d2eac55e8d0994862876489ab4f557c6a6b618275b364fc75fc76a8239f1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.70-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bd1035838e64fcb2eac79ddd6fe3251c3c08c202930f5ed8223c8c7ca9b8d9b2
MD5 f8e3b1f8eef2d2e66007c5ff859c6826
BLAKE2b-256 57eb79d33a72f05be40327edcf8ae1280719530936fd874de5ec4d270f065cc8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.70-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c8510287526c0ac5d360adcfd50ce818711790f3902343465cdb8b5d638b0215
MD5 5ab39d7c6ac20cb61172eee96485df07
BLAKE2b-256 9a3d04c2c2adbb54d23a6f1430b8c42132ee80deb6029c3a215210a067be9765

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.70-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 02b7c87e04975c63e9407bc9a88c1aaea2e4b6ae57ad37e8e98979c7ff380a4b
MD5 d4c1aef9b9ef5e72479a934f6dca1051
BLAKE2b-256 97515cdd2c04cef00462d5babdf87ed449eb619bf788d930f5a08768e85c18ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.70-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 62616ccc6b33a27da6bdde3afebe964066d4343813698e85ff5d89e6adc32963
MD5 72242a63ca2f20a7856353c799f93a7f
BLAKE2b-256 cd92f6b4d5ed26066f0b356962ef836d82526abfe4b1417855f3d2759a2f1042

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.70-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 939addc0978a022af65866d66546a8da08f71e84c05bba1999068403ddd57075
MD5 2c685b7d3b93fdfbf2893e86a3424fad
BLAKE2b-256 f6cf3e4a94ac608d8069164f2de3e154f9676eec1606f92ac15d6946f9b40dc4

See more details on using hashes here.

Provenance

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