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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.79-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.79-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.79-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.79-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.79-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 aa8be6a61ebf56afb7a38486c361a10972557f1f2d2cae6cd2bc1e9afdae9108
MD5 c30be9492a90e15f608f7cc656a69f15
BLAKE2b-256 e062f53cd26494647004f65986c399214a901907e2f56c2248ba9e0b802b7d13

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.79-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 236189e104394a1726559708f84fa2feaaffd602e92e5d0831c7488709fa56c0
MD5 9f7c0701ab9422770992eee70b5149a7
BLAKE2b-256 bb5865dc78c1a7920f9a680f6f3ce6097cf982736e7f8875b63b03646e7458a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.79-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 1cf3d8c49796709bfc88bec2d2d8ba17fe3f9b2974ef696b20ae52bffbef1ab7
MD5 04b9e8d7d47bcce34596dc9d445b5021
BLAKE2b-256 befedc2182ba1f56e10d003b01cad5ef0bbef020c74bb5bbd1f884a55631c5ed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.79-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4871f1ec4d6d59dd41f24260f025a179f5c338fee2325681b28e7f22964d7437
MD5 124658657c07311ecf525cb4e48aaf16
BLAKE2b-256 f0aab38365040fe4cfc16bf838f264584d8e3747815c711d1ca66078609b768e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.79-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5bfa6950389ae7d28b104475dab49e173160213e549a8431d9d89c65a3de2f89
MD5 69feacf2cade15d7d70244f72e2cd749
BLAKE2b-256 74b7d51a3a9de51c0cc225cb530fe481c9c761964f35438786c41f10a4bcd38d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.79-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 782ac0fd0b58a5efc59359a3b9337fe2d1d62c6e054743a8efb1c9a1d16af422
MD5 4f7bd59b52c4c9a0c5b967388f7abfc7
BLAKE2b-256 6c503981b177a6fbc10f50a29e60b6a78d913d2a0d4ba7e561bb18de1e2d4a28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.79-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2e7779bde691f9cfdcf29e29a828559a32ed02a81631aa120ddd9b8f50be76cf
MD5 f0ec334b238d1ad6b2aada78d865222a
BLAKE2b-256 4c4085fa4fa5e4af1b40131dcca4b9fc2ef357153d78eaa844d8c7bff4400817

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.79-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 16f7cbea85354847f40881afc3ecede7e411d09cdd3b59a76f5f81e5514d67ac
MD5 6a6f254097fa9b4bda10cac741d598ba
BLAKE2b-256 c7b80ef29b7bccde7baeef48a2010e93d240f1b8e7900b85eef7ff6ffcbedee3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.79-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6e0b75ff6913923c4fd7d32713db08d7dc7f341840bbcc0abf9a2aab93edd133
MD5 522d0ece30ac3364a6e69cf1d6578a8e
BLAKE2b-256 a3a013f89cd04cdc02b67dd9b771701fbfd27624947256e98fca5f1733c86d2c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.79-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0b6f20925e0d1ef8897c60103e0e9c0f41902b675c379871631c9ced972bed87
MD5 e8f01e017697d699583c755a7c7f9979
BLAKE2b-256 55ded5810c98c497d1a0fc17bf4645de2996775c931aac4da7599e1f88383a6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.79-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d62604897770e78f78591fa2fb8f1e8761dbb19755b19988e90c54ff4edfdcdc
MD5 c3fc5c7efda4753100a6a5d0b34c7f9f
BLAKE2b-256 f4fc42c5bb90e66dcd039b238fd591b80f3bc03db4b12955f3e26528d12cb73e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.79-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c47a62263d4fa0f52d8333afd0716aaf4a1b011593a18c033ea5e0d7f59f0915
MD5 0724f22593555ae2244bdb5ae8c1fbfb
BLAKE2b-256 4543beee876dd6f4127d0e4a8ea0b38cbdd1cb9d22abe193d5a539626bb5d42a

See more details on using hashes here.

Provenance

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