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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.51-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.51-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.51-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.51-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b747a8e865f735a27f38dd6aef790438cfc3df09033a3a98e7c1f42dbd883e27
MD5 58906888f7659d56378d96f38cc83b5b
BLAKE2b-256 118adc01605c40f730fc6cb8f565a904eb02c4abcc274112b6dc984128dc3bfb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f1332b7b61a852553592284aebbb5be204ec6b483967e1fdaae96201951eb6b1
MD5 247d20b33ec3eb9ac095827d1300ed30
BLAKE2b-256 4e698bef9b8b03732c16a36e2b7da11ef4d0e7d1e5f922301052a517b4bf7e53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 758acd2bb6cda8c3406dd196edd68a70010d0b20062d996bff266f41f6447f48
MD5 e0953522cd41b986912efa71f6e9e9b0
BLAKE2b-256 9daa23de25528935857a2a97a51d43db6884f0d5a2bff1f2fd97dece806f4bc7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 5d67c61e50e26555da9ecc3b03e59c7fe592708152fb59339ab2ab5fd3e251ce
MD5 e630d687a4ef6efa7a179daa903d4062
BLAKE2b-256 0328eab52a2a771852eb47101c1e5069398f7e70a7c324d01d639a3c1ce13b48

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8dd5735f89ddfb839407d721bcbdfdfacdf8c96812a28c90e9ef8c218f1f23e3
MD5 9699fc063d9067e43aa3bce6f4545002
BLAKE2b-256 d3a2496d7a62b205b70b0dcf10e944513e97974967537c9109471a6b50e1bcea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ea9237a029ec3bc98041690915c5b66a6c86836d373e6530da9f2ac1ceaea828
MD5 6650b5e73aa3f8bb3434cc4a9bf0bdb3
BLAKE2b-256 bc86dca5c45209c29524cadc320bfe3a8104ffcf14ec0b4c734b8226e59f4742

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 013dc8c48a812ce6f61637959a56021f9a23f1c122352c02ed4af4dfb74dd419
MD5 dfb2681c5da7c8b6d0c71128b46a10a6
BLAKE2b-256 34b18163915629302fc32c0364c4f8667f29bcb81a9f91b8b9e8962cb0e84061

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 10d2a082661589537402319ed14af83e27e3e9041efc82184b00f16000ae5d1a
MD5 a6e83d2ef19ae30fdfee2b423ca3591e
BLAKE2b-256 769529e320113bee63d719a5a03b4e14ff786c51ccc67812c2b060af9838e5b3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 036a1aa0f38cec9e4d04bcea70404ef86736074014c06d6702c611ff09101a39
MD5 f031e8bac2e6d48bee1de4492c316750
BLAKE2b-256 9fba7e25a52cf664b03742567aa3a5ea23b9fe2964a2fbe81347355811cd0229

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3ea0a5d50bd15586472fba1433cd825a3ba0cd2ef35516a7b04935888c38a378
MD5 ba877f4d62262488f3d79cee54341768
BLAKE2b-256 5ef2f00d157af12634e45bfefc7dc4ab0888a71a47b417fefd3e419f219e5e56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 defde41275ef951543ceb856278d3e74c7c849f1e79dda1ed6495b189f5a3040
MD5 487d8c64cd61ac93876b4f3528ee25fc
BLAKE2b-256 88d71bc601fa2986399c3dc09b832489917750948b8e928fa0540800ddfb2549

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 f380e8bdf2e5921b83c6201cd47d98066cb6d78641576d50b446bf2425c52641
MD5 4025872fc073f8f6a4d8b61f0d6be846
BLAKE2b-256 96a1e707edb7ecf35a9ae04a4ef9ff40ad53e5ae0b11b45e4ecf63d4e5e4649e

See more details on using hashes here.

Provenance

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