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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.42-cp313-cp313-manylinux_2_31_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.42-cp313-cp313-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.42-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.42-cp312-cp312-manylinux_2_31_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.42-cp312-cp312-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.42-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.42-cp311-cp311-manylinux_2_31_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.42-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a39ede7dea5d1e3ea02e2d95c2209b94bf384179890f2962bf86f99d624932b9
MD5 5f1c392208e842b250dc817fb5abf617
BLAKE2b-256 6b91eea468546dc690455b2af503f167badd5a935f4856d2f20fc54d97685e09

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.42-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d5c0a5acc5b030cefe7307186b68d3240ad6d0fa5b6d121a40b9d10a7d1f3c80
MD5 d68bc5e517ca6e8496574964a33d26e6
BLAKE2b-256 6765159d26ad3ac509d8b2f9572b78c34434d5948d8f9ae3689e62d83c7f31c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.42-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 374a2be8643f5254bbc86f841a18adb27d32e07c4755bfa8891af299a8f56101
MD5 782b095aaa356aa3f0d28fd3865be0b9
BLAKE2b-256 02c5f72ebba5b556b2697150f36b01042522d92dd7e550650bd72fea93a967ad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.42-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 21511fecbe18d289209b4a65c3d37a92b3d18e6c2e02da88bead3edef0dbbabd
MD5 1734dc83304235f8359e1d6bb474e878
BLAKE2b-256 ad53453109fde7350d6d63b951fe88574c057d5a500b5097b47e7cf2d44dee87

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.42-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 461f08dd43f85314ece5364327f5364f97c0fa487a7b7ac86e18f701702e078c
MD5 4396bd53b46bf94429a004e291ca2369
BLAKE2b-256 4df1de16b884d48955d659a0a5f4ffdef1c0ee4108502169b8ac7a0f70cfe69d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.42-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d8c3cdbdfe34a970ea8dcfbc8047608ec689271b437f7e73706b76e30df1caa6
MD5 fdc91db6384208dab49879cac298e92c
BLAKE2b-256 49a207a8898a457ee128380f81453c81996e83cd049001728065c24b17a5ca4a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.42-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 975579e3698b76f23fbf9dd2fb44d79f7b09c7339fe0ae02a78895d9b0fccb8c
MD5 92ae2ddc5a7d2d491485bb2451da2311
BLAKE2b-256 3f4969db9172cffcf49cbfa799c30c44865fb3517d13509d525473ca8c909ccd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.42-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 76aa188c8e1ba75f03ef5ed405dd0d53535d5b5659a61d55f59180e0c6cd0d59
MD5 60bda7d9da599b0d718b105363c5c14b
BLAKE2b-256 3449f302a75359cdb9688cfadfc2c26bd424e191fc7d9b4ac865e614aef0e755

See more details on using hashes here.

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