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.51b3-cp313-cp313-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.51b3-cp313-cp313-manylinux_2_31_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.51b3-cp313-cp313-macosx_11_0_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ x86-64

gllm_inference_binary-0.5.51b3-cp313-cp313-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

gllm_inference_binary-0.5.51b3-cp312-cp312-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.51b3-cp312-cp312-manylinux_2_31_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.51b3-cp312-cp312-macosx_11_0_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ x86-64

gllm_inference_binary-0.5.51b3-cp312-cp312-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

gllm_inference_binary-0.5.51b3-cp311-cp311-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.51b3-cp311-cp311-manylinux_2_31_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.51b3-cp311-cp311-macosx_11_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ x86-64

gllm_inference_binary-0.5.51b3-cp311-cp311-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file gllm_inference_binary-0.5.51b3-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51b3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4325786ea53f1aaa850de68d7af158e3d5ebf6cb7c9fca51c1f374bdf25f7033
MD5 6a7d11f53100a84694f8b2de4610a658
BLAKE2b-256 ae8d663de9fc678881f0b1c3cb712ec5da4465fb11508cb9a1f6ee68b4121c5d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51b3-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bbaa9799971f6f3d7553bdc5f7e1943c5fa38ef8ee883519e0cfb04af112505f
MD5 7f314510cd2495d7e885376f14a4a36d
BLAKE2b-256 1e7e208a51c176f667f20b2d4173aa1fd3dbd1cd87095c9a9fffa3d362cb5c54

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.51b3-cp313-cp313-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51b3-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 3fb50de7b94e566ae4efaec48bdbdc89513031f07d0b37054632abe819571017
MD5 0f4217ceb3b0b115fab9f2faa8416689
BLAKE2b-256 bdef81a7989441c7ebe1b60e2c1fd43727c17ac6c1c96a0b29fb2120dc1c47a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.51b3-cp313-cp313-macosx_11_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.51b3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51b3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0661f3239888abe837e2899d337285326852ce9ea4e9f9251ab543efb9791035
MD5 f78513898ba3c080655e18b8fa7237b5
BLAKE2b-256 cf66a3e117dc68d12b3cd992c63d37254009d914dff8b61478773ed561551cdb

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.51b3-cp313-cp313-macosx_11_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.51b3-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51b3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 70f63249a910b8474efe06c4f2f7e8b7826cc8c7bab6560707d9552383fba345
MD5 b4262a548582509e01a109d263be7934
BLAKE2b-256 a18e5fddef67dbdbb436843d595a801c24a8d608727e8a07c19022fd7e77f6c9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51b3-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 939b61ef55a5b10fc0207203131f05daaee1b60430f95d99129489e65405b4d7
MD5 b5658711896e03e5105aa0420f71760f
BLAKE2b-256 3bcc6ea426ecb65e0c3a4f97d4327a82ff425b21b3e321d12583cc7dc6f6ceb6

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.51b3-cp312-cp312-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51b3-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 541bfa5038917d22cce0718919da321628c96c6c5e715718daa3d2b3ab67fed1
MD5 c105cbd9bad8f28032a379db9ed08fad
BLAKE2b-256 bc754592eb301250fbf121c5c4d3ccc8d1ac364d848531678c898df4618e805e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.51b3-cp312-cp312-macosx_11_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.51b3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51b3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 896d90f29bf731f4eba14a43e511b9ab373d7e935946ba968378fe467f981645
MD5 2d6d1585a016a286d8558181a9944d30
BLAKE2b-256 bba08ae8545108c6f3f3b3e2e56580b04d4ecb8aa342a25f069e8da9394a4237

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.51b3-cp312-cp312-macosx_11_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.51b3-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51b3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e73b5a5ce31f577c7c0b034d85dca8aa9be2c3b40d790be79138ef1cec4be3ce
MD5 688b9b9c4a04acc73e14029b389efa41
BLAKE2b-256 701d9bb6cd4fe51982d03bb7772794c6d4847b2418e0fdc5d814f7a3e7f936d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51b3-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 32f40c04f168145a9c5d94a2cf20ab66866d99a9ee6193e571618b55207bd907
MD5 8c7df7eed2de892dcb6928b97a1020b0
BLAKE2b-256 40c16229cb669b662bd40d2fa9982290f91ca5d87461da2919e336e782edb7c8

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.51b3-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51b3-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 ce8c9b9fdce62dda531be651acacffd63efdc266348d5ec22598ee48d4db056c
MD5 e40c6ff232d4d211608b4b04ac1c3f6d
BLAKE2b-256 fa446d7da1b3c007b4cf0dbf9cdafd4ba1ec255918a9001d3cf4e4e4214db8ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.51b3-cp311-cp311-macosx_11_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.51b3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51b3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aee8782bf40d1fa8b745e51748e9c1917eada7fbd33f8a8c7f60540462350eda
MD5 97365d7c45d57b9d32483014ede4944a
BLAKE2b-256 8a7b589845029c91bea31124f7aed0b6af725f9f30bc83cb2c38f6277775eee9

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.51b3-cp311-cp311-macosx_11_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