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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.64-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.64-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.64-cp311-cp311-macosx_13_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_inference_binary-0.5.64-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.64-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a2d480d105b13e3b2102b4662f158bfdfa9e675083655761ebdaf6d277f06415
MD5 57cd9a73229e88c681dca0625c8f97c4
BLAKE2b-256 30134f43fbfe2bd2fef4978c33c637e62ebccf37ce63ef28e3e27ee36018108a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.64-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c8dee2d6d869d3fb3e011fb6581683daf565bcfd7fb456f36a5b972a51800c9d
MD5 dfbeba47e51e8f5efd11957dd255c1bc
BLAKE2b-256 431e0cb19845063a1fb56db5635de8161be1b61ad95440770c46616c0077d33c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.64-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4e46586c5341ac911d3337fa994091b02a5d7f187136818dfd8aa228c559d95c
MD5 d9a67c15dfb9ee035993b899d98f1f29
BLAKE2b-256 d44cd190d71d6ba158ac7d38c02ab67f755e4639498a80b190d26b001b34f742

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.64-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 026d4a16934b5cf683733643e375cef0631c0c4d35b4f3d48f71e1f23810c56b
MD5 f76ed5cce90b25a3ca2fed8c76f596e8
BLAKE2b-256 2cfbc353b17e1b661227e3d08e500821e5e34a82f2e11b08d8bd35d167f14411

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.64-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 81d317762da1dc3390ecd09b1bd6afb578a13c177335f6bf92f0fb99d626f689
MD5 c116ef65431c3bfd8be2008613fb6432
BLAKE2b-256 cc13bba6a437ea04f25c3e209a479f0acf8af922103d68be5cfd97b3cb2dcd39

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.64-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 664665fb743c2eee43f2c0b7d6d0a5a622b7197720792f65a2f7560249e437fb
MD5 8045dca3a614335267940449b65ab6f3
BLAKE2b-256 c82a98ba6c57d04625e9d27c99459c05171472ccb799ecefb62c158b6ce2d423

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.64-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9a36ae59da113ec44ab610fa3efd50bc3b5a1fa02eafde3a9c3b3c4b1ef688bd
MD5 14a4cb4e00111fa9c6be1c9598ec5ee4
BLAKE2b-256 7b82ce590ba83bd2b5acb21048ece51f8ced43cf33c53f4405a1d0959dc82d17

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.64-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4d7a2c6464f72daab7782a24626b233d354330337783c830af8cbc54f4da1f25
MD5 7f778e825ae2ca57df0cbccb596e45cf
BLAKE2b-256 60bb9a36606094659329301e5041fef4fe8ac9b8f4b46f5c8072241f581ef3f1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.64-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 492974b597e54e7e1faf6df04c494967612dc7a03e3884ba16d38c5a1e443bdd
MD5 a9898a1dfb0c08524136f8dcec4f91a8
BLAKE2b-256 6085baac394505c4effcde5d53800327cf85ccbb41508b122d65272af12a67ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.64-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 840553d45251eee5da8561f499c9cf558754a4a79279cee0e6f08374e6b00600
MD5 bcbf152f3efc7396019a1765285a2a60
BLAKE2b-256 a79f35bbd168fd51363742b59bfe22e7ee14ccce30242e05712096087cf0c182

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.64-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5d4c4165958d2e36f0dea770dffa4d8f24970b762bddc5a90d8b806c203c9fb4
MD5 ec03808be735b8dfe183eecdfae93a5b
BLAKE2b-256 eb303461eda2c901fd6c71552a6f442f677c1253bc25df966e35d87c8778791e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.64-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 be20bb40995235165a0985d88e920408430f8b76133800de31744bb2483afd7c
MD5 71e18cf1aba03736441fc1c8263b1f06
BLAKE2b-256 397d16fdbcbc8778f1b244ff2bbb196ac9fd7d55a61f5d2a4630a8aa5806a9fe

See more details on using hashes here.

Provenance

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