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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.37-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.37-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.37-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64macOS 15.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.37-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.37-cp312-cp312-macosx_13_0_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.37-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64macOS 15.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.37-cp311-cp311-macosx_13_0_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.37-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64macOS 15.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.37-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 29823d361d04b57190f0208b977fd1a310315cb7629702fdb7baa2a60ce44280
MD5 594ba29f1b5ff048d68e4de4f160f141
BLAKE2b-256 384419b4b45c37f9f70024b51ac5c21eba5ddb7b8a5ea52bfe18360ad41cec60

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.37-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 1306da08e088faecd5155787b72173e9566fb0688498573cee59eb91e0adac3a
MD5 565234685d19cb6e3b06fda9973517d2
BLAKE2b-256 5bc1c1028ac58a3d22911b7a48a95c1aa3da6d7067c04862499f4b00d5809d77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.37-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a940199ba908952da1bbd51a7e35c0ddc52150695cb223d709a70f443082c5e6
MD5 ac4b2fad22cda2c773c7156b25837377
BLAKE2b-256 83ba6055697609b51431a4a0fabe1178df287606de2b9ba1e923f56761317c79

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.37-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 bba2c14aae45623bd982bf29993b4eb4ef5e32e9f433fa0e6b26a05e2cae5752
MD5 fdf0fc1c248dcfa4f8b968ff927f31b2
BLAKE2b-256 a63da12dfaddc83e815a320234fe8b30c2b7f4bd31f4d2ddb5a55d8fa5c6c6f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.37-cp313-cp313-macosx_13_0_arm64.macosx_15_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.37-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.37-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a5c5d36ad5fb4c1b7c3f0a89b6bb31270ad4c6dd703ca885a0e3540851a3d6ee
MD5 a8df6f551aff0eed767c9f05f9e32c4a
BLAKE2b-256 e3e1e5ad5bc0fd85c1242b23d3cde6c426bc4cbf98490032737f78c4d73d98b7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.37-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 05a73c803bebebf34261ab76c26327d018828a9c1b627c339922bb6473a35fd1
MD5 f76d7c5309593001c25710974e3fc374
BLAKE2b-256 e5de01bcb6803934309bc51b71057a6033deccc642993e8530b4666ec3ed3546

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.37-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 92cf20b681b9beaaf902f70fd195dd7881c251e0373485aa95e90c89fc2e67da
MD5 ce674fe042a1ded78de796d8c56a77b7
BLAKE2b-256 6ff410427df6149548e65e924df76070db8ca49fe4ceaa50dc2b540f7ee4b16e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.37-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e7cbc2beaa7df80b4f1d1c50281c79d506de58b4419365be4e422fffafce302c
MD5 73ef95265b985b06f8fc737b7535b0c7
BLAKE2b-256 71053bcc5f65bfcac3c819b48b424d32b7fec407e0793737659b49ba96733906

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.37-cp312-cp312-macosx_13_0_arm64.macosx_15_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.37-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.37-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3fcae91b64b3d9cdb22a26432eabc77f3e5850dc5288ecfa17be26b09e00aed2
MD5 61b94bfbbaef41ff59e36c0795b5c74f
BLAKE2b-256 d941aa4ed55fd8aa1bd0a2e5a2cf023c75875cfe0c112cc20e636e526d899b6f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.37-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e02302809d8dd9924ed1a70cb3aa9103e7a6a5bbb4b7f9b34682ade1e233c771
MD5 0fe75fdda4ecd5ad7ceecc4567c76f74
BLAKE2b-256 4939117991fe9d8ebc2ddf90223703b13b156c55ba5eab70cb9e1f52cabfee82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.37-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d964326bcf21c96f7f5a35d364597696bb5e9bb3fa1546ebd99ef20007e83af1
MD5 d8bb5e66613b17d5ff032dd1e54fa2d2
BLAKE2b-256 cbffc8a78f575e99520a35af4dabd85a7826f1557d094ae68c8176ec211843b6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.37-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 8986a78c0a9e240c78b6cbf73897b93c0994ca2f18c50296bde039f867176fe9
MD5 d2695fc729a3cbb4abc73c9e0d04372e
BLAKE2b-256 9100622bc460e7da37ade12da8761a4d34fba8eec4c574e6a243f8116d7c22a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.37-cp311-cp311-macosx_13_0_arm64.macosx_15_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