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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.90-cp313-cp313-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.90-cp312-cp312-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.90-cp311-cp311-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.90-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.90-cp311-cp311-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.90-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 dda303f7c732f858d076f87e57891066f805b5275d033fde234722b9dfca4ed9
MD5 1a0c6518051c550160788f2bb6e731ff
BLAKE2b-256 362781aa1a36968777f46e68ac00729b84efd83d33f43f80bede1ad738e99d4b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.90-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 792cd7dbdde60572f3861835454ab6fe57844d0bd538976715f21f914381e4c2
MD5 c5413adc874297c1b6300e4f36fa4d1e
BLAKE2b-256 6eb00dc14b18bc463ab1ca41e57a4cd32a7e9d968cfc5a48be47b8b10625a2e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.90-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9438b9882ac58a35c22137aa78ca607fa5e1ab17d9fe53b8ab28b45eabe6313a
MD5 c82aebb74fc97d5e8d71e717b25e089c
BLAKE2b-256 f4adec30565e03a9266926093895a2a1ad7da1b6edff3468e2faae6e827f3963

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.90-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 454ab9b97785c378dc13a7856950f625840163261f600451c23a5bed14e9524a
MD5 96a4f04f7156668a324be315b82d583e
BLAKE2b-256 6939bb70d01e15c747f4f2464cdc3ef52cbcd6852fd243fbd7f04b639b4196a0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.90-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b9fe866fbd366a6dded5304f9fabbc49b7490245a396d5be52f92db27edd315d
MD5 74e4b4c5c10b197ecd04c543c1c9307e
BLAKE2b-256 ef60ba4f7d5f2c3528c9ca5c520ef2dd3303de4c2abe8d99415ac444081a189f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.90-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f06720e4e957c5050719f3a79263540bb91eac746cf40f7c761bab55431c5ec2
MD5 3376d93d2b592a0c0f13a221903b8e48
BLAKE2b-256 e8790c26ae2324a1f0c0a229781523273c9ae97018f0bcdb3bfd4b8748b413a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.90-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 20419961668afcf22074d443507e7c0f81989d1a41b23cfa1649c72c4be491fe
MD5 e5774f0a811d605adbc63cbbf7e917a9
BLAKE2b-256 57224769a9a835bbe6e86fc726c93acebd3a6cdea0045371040ae7aa15a55503

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.90-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 eed6125c21ce8c69766392d819ebd1cd1230dba118cac034611017f5e71548a3
MD5 a435f66b77952f2badc70fe3eaa90ad1
BLAKE2b-256 e4e6a244f39ebe349f04c1271080021762daf761f287c6e72f84133eb9244919

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.90-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 82dbd613e069ff3215147160589f8779f768afe04df98c77c4c4fbe16b748227
MD5 566eca7474fe4b9dc95c34dbf0ba3ee7
BLAKE2b-256 d71fcff47901aba5c3f4c5a735342ca61c710cecb5c6161fa76a35d52218b608

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.90-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 590f9024301936714cb7c59cad6f53d480fa9f52eb0ec195e87a20c57997a31b
MD5 b10e9016d030ad6ed242f83e73e59f93
BLAKE2b-256 357d0315f2a874f436cd1fbf83ac264dae14c2724296e946913a30fd0f953ed7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.90-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 aa0ac523ec8349db5e3049f81725797c850277a62133d13542286c035c2b389b
MD5 2e903e181381b9538b5b9c52b530567e
BLAKE2b-256 35228c0ed27bab31d90075fa5b7d26dfb008fbb0dc634e29e4a0248f1665776c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.90-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2546ed9f9f9e2c2e054cb5648e5521710b84da9f38b876f8def96c9072ccfa7f
MD5 01302977946bc4591bc5cd21a22f0b16
BLAKE2b-256 e76cefc80fe9e78f91ae1542ddbb77d6e7f5754f9490c2debb145d70bedea6fc

See more details on using hashes here.

Provenance

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