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.91.post1-cp313-cp313-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.91.post1-cp313-cp313-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.91.post1-cp313-cp313-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.91.post1-cp312-cp312-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.91.post1-cp312-cp312-manylinux_2_31_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.91.post1-cp312-cp312-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.91.post1-cp311-cp311-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.91.post1-cp311-cp311-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_inference_binary-0.5.91.post1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c16da01f3dc703b834af0b1f874f654e2b49a0487e7ae37a2b502fcc8198f9db
MD5 3db137a511349fc0bb03afa11f907e3c
BLAKE2b-256 115f8507ce9335f44edd1637d40da12647f3cb3ffe996ab05c2728e2b2dd3199

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 45a8a4bdb8996dad2d032b769c20d64d1f63d83128c699be1ebab6383cb690b3
MD5 2b6a10ed6ba5554b4879d905cd96c517
BLAKE2b-256 41628b75f969500e3e724793f56da0bfbf4c1de5e411fb3bcea141ee11e3631d

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.91.post1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91.post1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4e3a7da42bc3a6994fdffea336db28f4aa3c929c6bcf4130562516615c6e1469
MD5 a885114339d6c6f85e8b3f5c7dcf8666
BLAKE2b-256 62c9e2d559187f359d029b3a7c426c4004017c1247194f38b3997168b6836df8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2f3e3cbabc83e28203eb571b04a1c31ebc236208f43a17edd8238a2b0912cf1b
MD5 c39b37fc0a06880550eed978dcfab85d
BLAKE2b-256 b02aaba2ed811098e50575822e622cdf9576703c5f7ae7750040e50a11d901e7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6717af638efdc65e86a044b11d959766691bce64943a8d5ae19105a1a9d0f6d7
MD5 f6d78d48e5fb48733954cf729efbee95
BLAKE2b-256 4f9e9d9c3b410190146c3d178b9d26c7946df8f0458a4ff5335255594c6eab72

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.91.post1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91.post1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 32e35ba609b7733c35b5d88d9b35c4e746985520e912c2c9723d0a8288168135
MD5 1e875a44b420b15644640643ae9122cf
BLAKE2b-256 27041b23ab1becce4486caffa34255b185c0d937919739a940f2d263daf68318

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 699272d2a32edfb4ed8a96526ab76f7b4b76d009e66ec349bf3c4e9fc1011afe
MD5 a75603e65fa848e4fe4a2e5d5a9819a9
BLAKE2b-256 d91c5572619770e0bf93776e8b46d10d04cd56239a8b4e5e28aadea0c16a7d34

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6d025c1cf25e6fa0a61212168a2eb3f94866173515d83b9b670bc8b3ed8d21fc
MD5 7b75bcd5446abf7b344ce10506e221eb
BLAKE2b-256 2d2c99b670d41e7f97af1c8a03c32c244dec6dbc2451f1c94ebe899330b65f84

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.91.post1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.91.post1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 13741a30a018174ea4f16b847603ab622a7ba5d97d7370e3e5e8328220eddddb
MD5 28c5b6a827c847cace330f014a11fdb9
BLAKE2b-256 b1aa662da28c435dfce51554415d4b61ce81af1d4e63f69219b5be13d97d830e

See more details on using hashes here.

Provenance

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