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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.47-cp313-cp313-manylinux_2_31_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.47-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.47-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.47-cp312-cp312-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.47-cp312-cp312-manylinux_2_31_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.47-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.47-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.47-cp311-cp311-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.47-cp311-cp311-manylinux_2_31_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.47-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.47-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.47-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.47-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 84af12038b7428da86cfb94d9722bcac1d4ad3e186db772664547a1ab719366e
MD5 7af035a422051bc4869b4bd4d3897bc6
BLAKE2b-256 e1c9ceffb77aedf731e3082914a05b7f8e6b7a8e88c5a53d5e80a90c87e15542

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.47-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 97b138b3491c05c9c97087fd7f5d1e09a99dcf88ed2d22d8b399969553cddfa6
MD5 5913123ed69e1ee882512b9c31174bd6
BLAKE2b-256 13afc060da035dfefd4d43395b0add07580c93134c47ba76410daf127b57d42a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.47-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 f3c17747636f5a6914545946195625b69c5addf5b6ce6948e2308c4032f1ed54
MD5 9ec8c8bc7066316e6c053ab34a5c7ee3
BLAKE2b-256 efc884766934f726f12198a5b131d81a0e425ee0853141eec535dbb09c5f5c9d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.47-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 98df4893867043104e8d40395b99c9f2d3b6ebe337ef6979248f48df86b79dc9
MD5 d4554fca2c8f9bd5558cfe028f94c65f
BLAKE2b-256 e162db687142e1b2348add5255e43ada6423082e39e0d57640dcec8ed281e06a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.47-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7efef9c18b49fa768887ced75f26baa8178f9d293df8fbb193f1ecab69df013b
MD5 65c7d910f1ec50eb2ee2704678da7ebf
BLAKE2b-256 d67843d7936ebc13e168f85f55f5ebc21a978c7350e80a829dd0e60e0442491d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.47-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6c7768618260b6aa09eb4435fe4c3380b29f6c6b871a2f55230f16510ddf21c2
MD5 4db0f82ac67ef49117e77eea3fd193db
BLAKE2b-256 07a34f70a84ae9a04aa3b4106181349df55391820a86693d753bfada63dcbd20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.47-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ad19ad46a79b7d509f769f5adf827ce775c462bc7522b328b590bc4807e1f855
MD5 0853b940ef251da6eedd8e7ff8049eea
BLAKE2b-256 756f88e22cf88a28bd2a47bd9bc5438562b94351fe797fdee62eb04e7a72dc4a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.47-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 28cf39ded7485eecf795702a928aae83ecbf08e4123411647d1be2bf355f15d8
MD5 d0cf5d1d63516beb0c88de48302454cc
BLAKE2b-256 01e43312abe360f000525eab45cf40a1d828cb9d33bef3003e0bf80b5d63ab04

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.47-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f92cfbacb5369f73b21936382f9200e20e6c4033e4cb1fe2f74efba2928178d5
MD5 6ece6691abe9a0d17e4f7d091415d7d8
BLAKE2b-256 187d5eefde7c12e1381b3de3b6d98553427fb6313b4623e5c346e66bee25fdaf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.47-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8711878d794baa61d7fea6454fdcaf4716f42b942cea598d7632152ed3fb0c25
MD5 6cf168f368eaef926b9b434f5d5088ce
BLAKE2b-256 9539066d0acd484a9424b23463b10f09a20c70374038993acecd9963419bf960

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.47-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 7fe94b962e674876f03f65e07ab022aa22df3c7cd7de4fe29effbc62ec7750e7
MD5 c5101dd2f372ea18ff3290e5682811c1
BLAKE2b-256 e21097e5a056fd145b0ed3bfbde3b828e950eb3f8dc169c52633234bceb658ea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.47-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 45aa292f21907eff6565169e651ef5e7935feef0d766b313e7e3c1a7596f025c
MD5 c60072ef614e4ea9fe2da157dd0bd8f7
BLAKE2b-256 8845255fe11966ed6b2f0f48d6348f4a7475cc9538840de494c398bb753d080c

See more details on using hashes here.

Provenance

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