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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.48-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.48-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.48-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.48-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.48-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0afcc70c69adf010c1bc77e68930edf858ba7329fe79ebd7c64808f30ba8ff69
MD5 f656f7ad5c1b2c23e2bb2d73e73e089f
BLAKE2b-256 b08c32e11d01b00d5eb97b72d81b19afbf9daccc5d7dd7642c9951a48f060931

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.48-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 4a38e73cf42a9a986bc03d9f8d0710ecfb4b50e8d31a59d1d3d9a4903be07289
MD5 f09f33e1a563cd90cb4945ebf6037a73
BLAKE2b-256 0ac55bb05f23696884f1e65ed24904be2879b4b6b0a24b680bcfb8d32774d926

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.48-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4b08b7ac5c473e956888968031a13c28f62c4b7c3a38f80cfb56a27be2f05ef1
MD5 21e137a3546fb085baa5f6765402f02b
BLAKE2b-256 1d60fbec573ecac3f96e82e0c222826aa85c9e3c306d23ad6e8c16e54c4b33f1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.48-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 372b9db0857d60d7489a1272147b201fafc2f019ddd2ea637accd9ffe66aac17
MD5 3e125a7a9b016e401bf6d437ef2664ca
BLAKE2b-256 ca8853da54084adc9be485660aaa91fed6923465e8f4ce0cae2a9964ab69e188

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.48-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a7edf5e481d869c43100ffb76172f573d77fff9318cd2ccc9e997cc3114d5e1f
MD5 c538750c5035dcbde6ca6bbc1a2a25d5
BLAKE2b-256 c89840ba19761ccd8e69eb5518f025657bf092c09df1402849796703676ab6d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.48-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a943f3e002dbdfacbde983902aaf48cf17e13c772cf5818e91426437c0afd231
MD5 0027bce6dbb7f41d297776ab9c27ab35
BLAKE2b-256 e429bcc120efd6adba5fb4ac661c3bb702693f8edfb2986f910f595bb7c3906a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.48-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 dd8ddf4c78cd7a1582cc5f7fda75f0858cab5af9dfd4e9249a1bd80f761a1e68
MD5 e70f44f3be17ac55156c616abb2625af
BLAKE2b-256 dd739bdc4da3eb3d6623f7eeff8fe6ecc690dd287bb0a731e5e763d0994a472b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.48-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 676e1ade85d7a54cce8d546c56b8660b559a058701ebb49cc16e6f731988b1f1
MD5 f6eabf7d7133433117367eb810691bdd
BLAKE2b-256 4bfb520e5b16ba84fd6de5e1b25c8570469f019a97cb1905b6f37a1e3e273e4a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.48-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eac319cad9029534659c6e30a3cae8f4324e435fb2f413d76d1ffe65f6dca28c
MD5 cd2bc2ee71bf7c3b27e7f4a8e5a72f7d
BLAKE2b-256 7e3b40d826b39db1da0f9530dcc1e97a38cf09d4e17c7eb7a55008361344947c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.48-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 25bdeb90da944943616d083552c30e35d6385e17ed48f2eedc0ca5bc8cfbab1d
MD5 f4d8dd219b1efbe83fb845c828cceae0
BLAKE2b-256 c823c323a7511b271fe17178e0e0a9be5ace714af29522d3d28e75b8ca1a4300

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.48-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b0bf135179754cae9f3b3c69b6b605a12c097b93beb83cdc5a96eb7e769ace7b
MD5 614bee93420f0fce689da32c58da88b8
BLAKE2b-256 4069fe9f74d0f37d6231c3510b7a8b620a1e3a174815efec1c13101e2191f595

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.48-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 6e75e39627538bcd362b75c1edd4eccdd4fd7c87d2dc6efa717a77e9fd7afccf
MD5 4e98a843a98b69951e529b7a33ee8baf
BLAKE2b-256 3273095c8af326be5769d8dd6a659359c47d1e856ac1779ccc2f5aa3b23ca1be

See more details on using hashes here.

Provenance

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