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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.78-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.78-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.78-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.78-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.78-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 984bc31da830f4a7fe44df2679e53c3fc6ebf9630b415218e4c5d82cfa355c97
MD5 a529299add8918d269d03ae2a1c9bbcd
BLAKE2b-256 9e10a109c13440a3496c05120a4eeb36e5ab5b422ceeb66d7f4b7d7c12aa0d89

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.78-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6b8fda5b4e2172b52547e19a02246f5db1ebd3aaf4d3dc1b102ae4f8ae3ab0a7
MD5 3e9829250fd392b391288a7c58658aba
BLAKE2b-256 cf5706a0fda25574baf1bc7cda49e8b1bbc03038d6275b8fb418210989a85dfc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.78-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 34bac47cf14c4f4ad9aab34088af0453b9020159ea0df826ca22cc77c76acc8e
MD5 c3eb746a3eb8b02d97ca927613878fee
BLAKE2b-256 7ec11d3805da216b8c909bf1b05223aec2eb94a747b1f9dbc09dc9e966228fea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.78-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 98c4c07a9f5d0d21435e9508fac100e314822940b67966badf9abb40a5c6aa5b
MD5 15983377684bc8818c02269089547cc8
BLAKE2b-256 7b3a8562e154a160d745cab14f45eb77a9c1e98c2bcd54d9575c039a5d283858

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.78-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b46042fe386e0415d3947bd49869d3622161ac03ac72d3fd3fdc0b6d035067d0
MD5 a62b1d5e3bbd96ed4d477b2a167f5141
BLAKE2b-256 c75f3583d14b5f7317c0b34fb9de5bd997962d07145501cab3949c9a33369a7b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.78-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bf5c9fbf45c03d280a21bcffe4619d57f49b9d89019768c69025c6741d2888f1
MD5 425c9d95fb018b4c0e3f760385f2cced
BLAKE2b-256 c0e84e339d3c12562fcc1490880b5edaef809eceded8dd20306e94acf2df662a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.78-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9a121cd72d8662a56090cf3d6a209ee6ff58f7493b755ed00082fd78ff5041c1
MD5 d0ac41762fb0052fcc0755a29008d52c
BLAKE2b-256 9236cc53b1d756a9f9063aeb45cd9b93084c8b5207d7b5ecc00d6bbf4938f5ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.78-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b1c274c0b0d286c8bdbfe069f039e710ed702be3fee6c4e1be75f705f4d14219
MD5 713107e4a66fa8e9454ac918c11133cd
BLAKE2b-256 e9f8c48543f52cda44314d0aec5d1684217853dbb3f8943ef3ddebfdda7fa512

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.78-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 600e7f2de83deb4ac3131dd59c4d6c626d3564d8e5ead3c633badf4e2b93cd54
MD5 f806fefe3c917f9047e8f919abf08612
BLAKE2b-256 0945a1f8794f1ad801d725bb8e591951d5f87d57064482c73cedbaf1c907936e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.78-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ca43414562469718693ce2b766fdd21795353320eaf732a1f9ff943bc6c9212f
MD5 417eb4fa71dc77584bdeb4ecdad6542d
BLAKE2b-256 cb742ce4657892464b45a05345e919d69a1999c25960a756d46279d91c132c1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.78-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 19150f86ab9f273108ada32c56de1284420a4ac3a949eede28254718910a3319
MD5 c332408ee754da7c45d24032c8f66401
BLAKE2b-256 2a121d2ac2e38fe983e06e754320f554fe9c928e0b5aa38e1db27f770c947234

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.78-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6861c7d89769da4409db08c9434066e1bdd9c4a940a35d2039dbc442fe0b4fc1
MD5 c04d2e85f9de64bfb19f20ccc9f4aff7
BLAKE2b-256 212d5dfa48de7f70d259ced020975fcd4148df61a90e4ced5e686b4dacb19090

See more details on using hashes here.

Provenance

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