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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.66-cp313-cp313-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.66-cp312-cp312-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.66-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.66-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.66-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.66-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.66-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 cf74aaff13594017507e58c43aae8391ac80a6c81baa962042543076790feead
MD5 984ca2cddc383e9dc325218eb801a679
BLAKE2b-256 382a55a8d57974ce1f456d1268f9ba49d1c664a247aef8136f1d9b5a2d00c159

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.66-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ae201667ed03011c9d2b36878c7b067a3f0ff27026c2f2ee1db97ab91dfae0c8
MD5 09fdbb0d70475b3dfbb665487fa26ddc
BLAKE2b-256 44983263ec2518c91d4260dcb9652fca87a4eeb6fc0b10c506ea5f1aad9ffa40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.66-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 964c166e4cac92c2210964c6012486f3916e965d0bffc77c5a881f10416cf1c0
MD5 71057ca14c038e9d3c2deef40256ae94
BLAKE2b-256 acdffc45480e28fca9381e6dc3afb461c1014b37e827ee00569272d22d4f23a8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.66-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 85d5ca844e49ed1b3dc5741c0a0cf460d3e20dfe257db9a2eeab612fe8c1874f
MD5 a77aa012d88858c464dbbd6287168fcd
BLAKE2b-256 73f125f712377c6f53d38ff84d4f49f07b03ec77c6ab6b31f5c6ac594b45b742

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.66-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 03c2248ae80a3484e1ac7d69f415e1662dce255eea7dacf8cc875b028ca462e2
MD5 9f2c379b0c0f27a3daf1213d94a3bab1
BLAKE2b-256 9e0f02ab2227f6a211f3d0861ba5bb22678c7698c0c6226d2fa6ccd5c6392a88

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.66-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 55cada71c86ac34037ffe8b2369313604063f4699247189655084a3907fadb7c
MD5 3d7c224ebdc7a17cbeda3565e5c416d3
BLAKE2b-256 8c35163938d6d517d504e24efb37f9e6b3b9de8692606266b72cb9414c484150

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.66-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 7a25c3627e0b509360b9b6a236d9e53e7ccf5e6f497fe8108735776c32480b9d
MD5 96386bbde1ef93f6c9bfd40e7fbc39d0
BLAKE2b-256 d3d42d3e1fc2184a21b356ccbc1f5ae0e768ab4a9b57398768e46801ed76595b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.66-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c402a18e5137bb4c694f8ef5ce678bf9693c7f124468d2b93d0ba716efede19e
MD5 3f2bc4f1eebada8896ba008c59603811
BLAKE2b-256 6e0b0ece78c8bea53ec9643d3720e60e7e55d050803908276757f4f9a1c7dd6d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.66-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5805a6131f6e51d9ff10070c11babf2b339133646b6b8926231d992d17b41e3e
MD5 036e53fa3adb0dee53754765d1abd11a
BLAKE2b-256 dd37ac4b70b4e309ba4e8f607ec0c2047162dbb5b4ee4eb7fc9c07ac45e2045b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.66-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e807cb587eca17745874f8cb736f16a05ab578bd2243e1edc0e59dc6daa175b3
MD5 8455def63971ff7a56e9269aea0c67e2
BLAKE2b-256 ab953a33017403a052ce4c5e578ad4ce804348dc5fba9b98ee2b15054cbf3d27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.66-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d94fb556078d491703eec20e3a374ebc52f391164d2812f1ce2a7d5a71bfabfc
MD5 50e2d13f892841dfff59aa3d6af3e957
BLAKE2b-256 98734d1d365e6aad3574edd07b15549f9486b2cdf1aedcbf86d228de62372f34

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.66-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2cb99ff3ada4643c976e23ba4926bfb3991f9cdb032f74602e0c5abeaa452818
MD5 1bed33a890ec608e7d52c42f24180dd5
BLAKE2b-256 1c98723823c866bf72a2fc2a742b07c56fd2144ba508c405b23f3770e76a542d

See more details on using hashes here.

Provenance

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