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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.54-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.54-cp313-cp313-macosx_13_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.54-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64macOS 15.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.54-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.54-cp312-cp312-macosx_13_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.54-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64macOS 15.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.54-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.54-cp311-cp311-macosx_13_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.54-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64macOS 15.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.54-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 112ea37d8f3ca89bdaa7001cf38411d8cdfadd3fc3266ca02451a2ea24d8d582
MD5 c0922794255d7944b5bac31007b3e1f5
BLAKE2b-256 6463998aa6b60901980be1c06ebd353ee7339a02207e1dd4d00ccef36ffd2d6a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.54-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9869422d7dd2f5d2a785c29ee7d0f4fb6798a822709bc715a67ffe7023b137bc
MD5 92dda35cfd94cadc54846d1ac90463a0
BLAKE2b-256 d1a4d6d3c1c8a6f5a68c9c208d30967d8f26e276ad47452d2a86d229908faf75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.54-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4691aec93a537da03b59144e59df7862ec18f572952beff04d2b315969169b09
MD5 870f796bdb72269d4190a275c955d672
BLAKE2b-256 a4a4d8467f50519a5e00ea0d1a1b49d589ba3cde99dd716fb89cf067518b247c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.54-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 53a1db98edeecabb34752e36b6960987fc3d7e65d4ce7cd02735a3c1d979a843
MD5 8b72a2d2978529eaef90dbcab69a6274
BLAKE2b-256 878ebd84eb067d130ff03682ffc48019ed0c19efa54f2af087aadf5a29414fb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.54-cp313-cp313-macosx_13_0_arm64.macosx_15_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.54-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.54-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a4b27c9820324dec77c831cdf7855b3499466e62e175762b3e3e00aa60649a09
MD5 1084f2166092d3eb97ce33de44749468
BLAKE2b-256 d32830f64361da52f32af15153c6a2e5f4938764126f649d64a54a0b3fbbfc4d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.54-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 462baa600d37376229a40c1abffc8a2d77d26e1312a3b8f8249cc0852d3b864b
MD5 f4cd79502087a19934688774bb6191d8
BLAKE2b-256 a3fb7fdcf70158830101e4184ba5342969cab4333c6f3e567717ad7a520856af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.54-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d8eae34e87f482c8e2c07d628806350e2511e38466668474b462b59c9c6e802a
MD5 00a925662df0ef5b313b51dcd360607a
BLAKE2b-256 b0afd9fd4ba8ae87877c0a7d8b098aed5e59f6b311bb4580784df3e0386b2435

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.54-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 98512b3133185fbf783e6e72675bbc26ab2e1cb4499280a2a841b14551668126
MD5 4dc8ae30eaacb3032bee7a12e2cfa3e5
BLAKE2b-256 2ee50946e6037d91d8ac7476aae4c7d2589f5b643ec0ccc4dab860ca39be232f

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.54-cp312-cp312-macosx_13_0_arm64.macosx_15_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.54-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.54-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 37551b9d42a649d7907b728428c3485e2314ab2bbb9f3a3fe23a420bfb560a47
MD5 f255f3fa46d4119eb6dda311bd55cb57
BLAKE2b-256 4b2d3a032c3e3f3720d1fe0d459854bc70615ab1e9610e41f97bd76e775fdbb0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.54-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6c75dcc13d50b17c087bcfd617371d6f36bd85fbc8887c33b4dad8fc9330b1c9
MD5 c97326582d8e0182ac816091baacaf8f
BLAKE2b-256 5e5236421b437f7daa99dac2ccfd5dbaaf822ad6174ab1bcc319a5d164cdb015

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.54-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4c3d77b101fdce962324e1960dd01de2cf628c7147cb78dfc83455d770ee41cf
MD5 eea387fc91ebdc775655a51829e9911e
BLAKE2b-256 07afd810fc860edefd920c80dab7e3faf71ec49efea7982a32abee9872080f18

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.54-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 6cf248c15f98731d354f34cfb9729bcc0d0ca4f990e9ca04b610574b993af19f
MD5 4ab1c5ae45670922e219bdca27de22af
BLAKE2b-256 4cff336837a05341b3b094b0a421b23a39fe47b3c7e57ba26512e17ee9f46609

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.54-cp311-cp311-macosx_13_0_arm64.macosx_15_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