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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.75-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.75-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.75-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.75-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.75-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8fbd651cde2349241638caf6be20dd8ac1bbb45d0d3d27e697762b334ea715cb
MD5 88893e931d0eed867a4dc67726f242cd
BLAKE2b-256 8b0b3e1ef3ad12e51d5409958fa955871f3242c61a096679830997df23e836a7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.75-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 88ef1f414dc6da69dc1da05d61eef444d4d569fa23de0202b2445ed4ca074a4f
MD5 b917e9ff47cb5ead34503cc3df1bb766
BLAKE2b-256 858542389b4c225713ff207e19868ac7f44557fe0f06af1cc72a30ea69e1c578

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.75-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 549482d445ee8385855f1033fe50c1922f664e3998f08a48042caa5812ff1cf4
MD5 ed1847cf88a673c320d0a2c5cfc04e6d
BLAKE2b-256 f5c42443347185a1540eb358dfa9028e8d798d4155c88e4a4374d3cae1492e80

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.75-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ddbeef8909b8c053f74fa1149926906e83e12a192478b0814bc601919d7ee455
MD5 09f6ed08cc2c4f8a17a410fbb93ed0b9
BLAKE2b-256 12edef7e229826657c8266c7fd13bfb5779a043b03873ad47862232a575d784a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.75-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ca8bd54302b8da48a7e8f7fdab49a26220a113262ebbe9eb47edcaae47aea8e3
MD5 8873be7a5452f14c2ca6a1189954ea32
BLAKE2b-256 1489c73c0f5ba2aa9c231188d47d2bdcc001d44dfec77fabc6e5bf1401a42a80

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.75-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ae81adad2348a6a1e643a8523ef934ba3282d74cc3343b3d26d52742ab90d26b
MD5 1941bf46baaa2cf929ece3cc5843e390
BLAKE2b-256 a8222d5cdb97f7a874889cceca058665841bac9533737804f5ff6185ccae6c0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.75-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b31390ca679fdb7bf75f1103c5be75a542948f24cbeeca23b83baee8c93561be
MD5 5fc88b6a1f73f66d15b554da63b357b4
BLAKE2b-256 2dca2d4d8c5cce07b14ed833783e1f456ad889da152c3d3093ebe7479f4f98a8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.75-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e065082a710d0871b20a4fa32f9ecab15598741d35914d9ad7813ce1e5e7f02c
MD5 9a0fd758c5e5c7cf04ad3646c35a409b
BLAKE2b-256 800f939d5aaad820a469a2f1da8c3d682b3bf56158ab40a74af36cb597fa60fb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.75-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e73db431d8f4a87c347ca829f1171b706d7dd4dbb2b60695f24e6a1325237da9
MD5 371f94daf6bc76e7f3420eab9ecba602
BLAKE2b-256 1b5889ea9f5557c38cabd443392666c2efc6fcfc416ba0831ede7cfed821e3cc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.75-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f558c331a9c563bfe1c8459bf47da178287b67059ca50473a7b0b3a93add8c81
MD5 be7d68cfdb7bf38b7d0ceb9982ec5bee
BLAKE2b-256 397dbe2aaa7f10ff0b8867a5047fc94005e8d74cb82078ff7ed5a5398cab0f00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.75-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 50b34d0c76812ab841b12fa614b6a15cd74149c1561ec778180d93fbdf8c766e
MD5 1601115bc54511f5f0346bef1e86ad89
BLAKE2b-256 c499c042748fc23087c2f98f0153948f2bf421774644a0cca294d6cdbf720b5a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.75-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 10831ded03fb2d0af790bcbcf2f2e3233f46a27ddd1c7c1d4099a8618964b190
MD5 7f1ccdb7c6d7023e6758e1b1bffe2672
BLAKE2b-256 af4c6327b6a699383a5ba2a61a9d719ada13a5b0f233c3185d586abd152b7d19

See more details on using hashes here.

Provenance

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