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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.67-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.67-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.67-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.67-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.67-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 23028d80f93e2d1e77055a291019906c4a1a08c3dbf9554dbf110079f39006ef
MD5 15849ed7379b6d8318a0aa05794b1e10
BLAKE2b-256 c90f98c838999656956001f20afb970923495774fbf93d0b3f288d2ac241965e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.67-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9649b712beed3c414d49d7ae3c732ed10afc928a257b5e83dceb9ef432e98115
MD5 9daf6022e1abd8db8217cd8b504fa26e
BLAKE2b-256 cb352a4e121e9c025af8235a2696161a1706dcafb8298f74de957acec599eacf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.67-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 286ddcabcd2224ec79454a8b20039c9efbeebabe5a9978278bcc17880e20b980
MD5 ab6d58578a6b3556ddf8cb826097903d
BLAKE2b-256 24c9e40e7c90ca82c1c0383886c0a3452fb09316f4391607da73107da411f784

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.67-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7ef7d2fe2aff0317e905f14a83391e57da25801066be556cd58f836a8d435022
MD5 757f5e98b4d052915d5c234b919ff5b3
BLAKE2b-256 b56fe957a25ab6794326c156cca45eaaca321ca72ea0417eb9565545f7405760

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.67-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7fe634987689317b17dfd230dfae2a5ad3108380acded3d8d105e7e70187c5f8
MD5 38b4e372faad79a89aea9f3eeddebe3a
BLAKE2b-256 638f53e4ee29648d902b2f6287b439a1b82fcbb13fb3a7c63c1e8feec48b5e62

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.67-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 24eb8cef6080b7b3e1bfb00eaf00d794015aee21dc29ca6ee31466852e411b5f
MD5 9dcca416c5cdf6391bc0408c85728d50
BLAKE2b-256 cd5464167529d8340feb4dfaf52ebc7f06f9880e8a139a9c451e5169005eee71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.67-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d5c548be62527630f523f17c5b7097501580201acca9464e264bb733ba044a01
MD5 fa80d9ee27da79122bae82ba778280e1
BLAKE2b-256 c4308f7cef457d8791f2f7f8f1d830e6302d0ed8ffb674d963491fad011af5ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.67-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 680930d8cf7eeed5fb915e49b51b5d46c27ec4cf235c9ff6f78ee0da5b1b2e52
MD5 19b2c9748b0acf5416441da98b966c2c
BLAKE2b-256 c3b6571a8b3ade457ae162c97f46947a96076e4d5557a87699e17ddff67285be

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.67-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7098331f9b480f93e5c0ea2493621d70996cdc3ac18e05aee9b8777e23578337
MD5 d83f8ce5481ba04db7695d973b1b2afb
BLAKE2b-256 1a20a83e109f48293f866090ce68551330ab790d7d4a34cebc2d21a9bd543f7f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.67-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 047daf5969db6613fe666d1a8add5d71da242201a2e2165926a8537e39c40f78
MD5 e26780214f9807b049afea7d6ed57370
BLAKE2b-256 e6bd76061ae6bbab5d3c161b725f0902ff693be52a616cd864606e5a26f7f601

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.67-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e381a0aec66959f76bfb0fb33e453187da0af2bbff033243c5f5b2bfa73331db
MD5 4de6be869cea8e0f5011759759043959
BLAKE2b-256 3b73bd71ca0bb144f2335204e53f0490829d62e2f2faa9cb666b19ce24b0dad7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.67-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3067505653a28f54a896f8ed9e2edeee84d10f2e797f6306b1702660083eca99
MD5 64acab723cf7838e553ce1575c9a5ca3
BLAKE2b-256 16260d4ca9d1c5f2b3cb707e321f375e7f0dfdda0871e16e1b244751a7edfe18

See more details on using hashes here.

Provenance

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