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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.62-cp313-cp313-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.62-cp313-cp313-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.62-cp312-cp312-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.62-cp312-cp312-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.62-cp311-cp311-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.62-cp311-cp311-manylinux_2_31_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.62-cp311-cp311-macosx_13_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.62-cp311-cp311-macosx_13_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.62-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 661053d1b77c7d2564307a0d728f96dfdaa36129d91e3fa9f45c8623c6a49607
MD5 f35bc40a48a56d991d0581f2c1b79842
BLAKE2b-256 8e9f9ba852e38cd9c0671618fecc3dacbf825894698c5ed226037d162ec34b14

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.62-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.62-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.62-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 292e73052b6b7cd80fd79bad2d6c27008c2c9d1e2eb203091a0e4fe0ca9ced87
MD5 8061cb7ba5f77301a0338e118bd855e2
BLAKE2b-256 37a5d13705962ef6b49eecf044cb26ad029a8287c213afe12e3eed8b07353217

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.62-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d446643f6867b1250fb56c75b9b0ba3189f6bbba126404cd483e06c8b895ad64
MD5 76abf90d804588b811369ce4c2369451
BLAKE2b-256 8260539a0b4b44d89907c83832b9ae3df9b5e8e3287f2bd83be70a6957d687f5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.62-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 188f5d2db327f271bea8dad029ea0ee0e3425b4ef291006eec62be2e66d19132
MD5 49269c4d543f5a1403b08ee514ac419a
BLAKE2b-256 5eab137e63262f74a692c8a44133045b7bc38f0905b7742d1bc7d48191f0fd3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.62-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.62-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.62-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e54fe3b4a8e03932929ecfdaeb5bfb38c9011665251e330378072e3339fc67ea
MD5 375c9b3d473955bb8e87ce0c1ac11da3
BLAKE2b-256 fabd233f98ae46a4e5b430dc220c12c1c880a7539f5036a53bd95f2e49e12621

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.62-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6a005477cca4cb6fdf5c03c06ee7190e9787727286977011bec5c5b1c0ebf011
MD5 2d5771540de1512e36af1d6bb7f5f8aa
BLAKE2b-256 55b56f08255f18398bbd094cb64de5024e776f6f373b3740bdcb06aee7efddab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.62-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6867b1cef97f333b1cbf1bc5fc0eeea1c4451461d3bc76318bea799f35fce6ce
MD5 e6edc9843ad5424a24fdebbfe7a9afd8
BLAKE2b-256 ce129b183acd9a1b49509828a0eed366d9b82b032e0d2e66c52901a31c6d3dbd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.62-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 fc2eb1a5400f4ef0517e22a3f46cc886e9e33b8d2b715c3f80618f283db5a805
MD5 6a75383c6819e9e77e0d4600e17549e4
BLAKE2b-256 589a69dd42625dd223060039a7c425e6a94464c58c61da3ca569023fc902d1f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.62-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5a82a7fb58ed4ac544d01f5af6754c3cfbdeb2bbcb084f7045c879d1e8a7a817
MD5 a1a7127573962cbb3c3e16de3e485b04
BLAKE2b-256 73a02a075d158adfc5c72ab354bb2643a581d21f81a5cb5bee469d15f26db360

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.62-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b27eff39e0206e030f8ec615740b8127a5bfb1e26cfced2ea8ff4a1a839cb43c
MD5 87f38b29aa1c694732fd82ece185db9d
BLAKE2b-256 f44f9f5b4e8e4f869eb69d92364ef537ba4e742e8217a4d453ad38765c99b5fd

See more details on using hashes here.

Provenance

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