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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.34-cp313-cp313-manylinux_2_31_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.34-cp313-cp313-macosx_13_0_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.34-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64macOS 15.0+ ARM64

gllm_inference_binary-0.5.34-cp312-cp312-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.34-cp312-cp312-manylinux_2_31_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.34-cp312-cp312-macosx_13_0_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.34-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64macOS 15.0+ ARM64

gllm_inference_binary-0.5.34-cp311-cp311-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.34-cp311-cp311-manylinux_2_31_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.34-cp311-cp311-macosx_13_0_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.34-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64macOS 15.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.34-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c1f2336c30191cccdda4f429029516264ac3ba3aab6fa3f1d18c93d4988d0912
MD5 8bcff0cc223978fb67406e384067523b
BLAKE2b-256 8783977abc0568a556a6cba63eccb29a007edebf3ce106a2ff4b5625d8edf5c0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.34-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 98b76e4a29ce462684205591bc6a21f42c99a5a1a5ddd79d7188d0a0173181ee
MD5 1cf9f0f50d43d4aaeb05776382ccd8cd
BLAKE2b-256 ff37594a50d656a21f6c62124e571e8bc957f0c9d6b093f1c49e9d2fc3033e1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.34-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d6be33745bdbf6ef7d3264690783c8e4f1a32c4b4650f7f3f62e376b2759d1be
MD5 c9161b6c5554dc47c319e65403d703f3
BLAKE2b-256 8ec53421f919352c9bb9b120434eebacc590a5406c7ef34c0dd1117bf2a1f272

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.34-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 fae236b7b1dcdab1c158cfd17bb946bb61ab354f378e482b136eb657dcc9fd29
MD5 c277e3ce74a537d45c5edd0ef4214d3a
BLAKE2b-256 24e991bb57b063dc5a01b06c8627ccb1f0fc52ab5710f81e7825d5501c99b1d6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.34-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1a65abfadeef3ef452a7f162ed08a85f2ae04e4826b082c49495d94572761a7b
MD5 09bec7525c67ada92021afe24b60144e
BLAKE2b-256 79933d2904b11400ce974c4035a446d60b79fe5480835a22f64af664822ef569

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.34-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b1570fd5a5021ad60837f29ba42d12e31b5b909a0c7898d9648f4200ba546a87
MD5 e416ce860c9c0e7e0773edf69c2b05af
BLAKE2b-256 4c2f0bc94f8c5de0913b12eb0f95832369e62b9242ac0a922021ddd95a8870c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.34-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2804a41a7011da3977b4c99174552a9aa1420e113daeae20eee6ea6f3034bb4d
MD5 c33df8ea9dbaa19262efa137afb923d3
BLAKE2b-256 429750348ebaebe3aed7d2c99918c64f4e59df89a9c7ca1c1c2cb09e58c368ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.34-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 bc66affc114b602fd9bbe40a251f7a5c1b108e5fedbf54962ca61267e6651922
MD5 f78bcd2d4ca7990327dcbdc9eca36aa6
BLAKE2b-256 6e9032c6c55ecc3718b10cda4049a65e9d93dc91e32b2d97ec3a2a1aa38407b0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.34-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0b8aa010f60be84f49f5f258dbeefda75ee90142fe8baa66f4c55934a38fb379
MD5 9914bd3a71b735fc1e1abf687238700d
BLAKE2b-256 59b8de492540fa1263b86dee1e7f81b17f7d9432c087bbc5c408dd748b867821

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.34-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 75b9590c8a755b144601f84f0fbfb0bab8f800048cbf72adf7b7abda7e318528
MD5 3b7a04902d3b4c71213ad18ec59bcd90
BLAKE2b-256 9572b415a592af4d2f69a42cd64c30d7dcf4159fa7e6a6eb72cda5c3b824eb02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.34-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4948bac41ec93e8f7e38e16429c3f0075ce06815ad8e4f388d1447b023322704
MD5 d66361fc0e69963499dcf9e92f056079
BLAKE2b-256 bd09ee01705be5a1233d0799fe1cb420ed925985e0bbb1de182d3a2951c113c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.34-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 8e24477850d249f03e31502873797871821f36b7cc0bd5e211e92fa5ca34c6ff
MD5 9270a8aa94b5d1f4804588d097e1d646
BLAKE2b-256 6e8eff31a98e78c8bb929972f832c9c9a57940d888eaee95b7e8ffb62bdd57d2

See more details on using hashes here.

Provenance

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