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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.84-cp313-cp313-manylinux_2_31_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.84-cp312-cp312-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.84-cp311-cp311-manylinux_2_31_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.84-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.84-cp311-cp311-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.84-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 07faade6aa3b53322bfcff12d9349af6be5eebfb39970bd354c8e8e96c99d9ca
MD5 3ea16faa9fd483b5cd9723ec2a2343b7
BLAKE2b-256 a6dccf604e5b1da5426d6d7a2823f58558a572567729612f338426eb66d75a7b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.84-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 50187c244f980349acdadffe82f2a50dda0161ac0626c8e7b78e78d507f442f2
MD5 fcdcd6d849919e968d432133ea1c55c5
BLAKE2b-256 777002b7d26a7d3854c047becc5faaa4201c583b1ef3db03d216188fc276df7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.84-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 bbe2294313aed2cf7664b657151614102efd6c15b9fa6873cce50ce3e43e2555
MD5 c96f787fe6907411cfb007c8d74caf31
BLAKE2b-256 adc8ff3c0e2e496bc7d3c53ae9bb9060bac275f206670980da7f54c24d132bc3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.84-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d4234be83d79f4c99ec8d5ee9cc3133a0a962c1d257ba3cd48dbdb3fdcc3110b
MD5 6687366407ca60fb1d69180cd6f6cf60
BLAKE2b-256 efb004e2c0c084490de58371f4caec2e9ff45b45a6295a9bb81c925cff71c93e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.84-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7b926f6165961aaf55536ee870ee2ed37b3ce430f0934cdf5ca67edf8e1c2519
MD5 89b0ba756a48d5d8df133638a4b67381
BLAKE2b-256 808be45d1a7cf6e1a80aa4bf04acc2689f6f9a66aef7b3d92389e8dcd42bbc5e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.84-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 292e7eff7bbc7dcddbf01464c350588aa24dfa7d22372101d8bd12a9ce7aa5cc
MD5 43eb6985dfbbe2c86794fecd2477f2a6
BLAKE2b-256 ca467e4a007948ce35c7f6c65976649a00195623f5fb38c407501781eced1a27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.84-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 56e130e98e111ebfb3541492ebfa431f8a72cc372d55c9b22f1724c4435cd548
MD5 1d0f2ac0301a64a270ccf6066e8c88a5
BLAKE2b-256 442a6342efacf1f655b02129547bec790d92d262fa1e1fdb40a964ae3c2f7cbd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.84-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e8077607ddf187e508bdb1c1fdfa7731469cdfd644ff37b830efbe561aeeb026
MD5 0ce0728c5e498286a48f9bbebb887d73
BLAKE2b-256 c874f5aa10e3370435d47bdbef9fb9585181d46f5009ff18158c5454d130f0f5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.84-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1b099194624352c3145aeb77b4f00d250dd5386677c4618937463a5a5c995f19
MD5 cdf4e822d7d4625421e4d89b21d24350
BLAKE2b-256 f664d0a25a064cd214863311df78023f6cc1dbb36f4d873873e0d6a1ad979b6a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.84-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 215817436396cf0698905b496e26fcd6adea7d64106b20e8fe31799da8dbed41
MD5 7a04fa8b4d5a04f84ca7de0a619ea22a
BLAKE2b-256 9572ce3087728e346234606870a0ed300ed35b379b63d4b68238bee87cfecfdc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.84-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 97bd9607de288a3308bf378cc13421d410824045da1f5b5f2505faafbaef6903
MD5 d1041d706ef4b9e1d88f0b3048da4432
BLAKE2b-256 4062d865aa9bf6f3b603bc8c516e045ab47b45d683556aa1a67479104b9d1e7a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.84-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0f9fc77e319f4e08bf08845a7558ce4f63f58940c879e6f27e4c6e02cf8d9d17
MD5 7fa8ae91d04f99c6db044aa9ba4a8346
BLAKE2b-256 b232b4b162b6fca703ef5abbbd3e5e845d670b2737a3e46a6f174c1e68ee753d

See more details on using hashes here.

Provenance

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