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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.59-cp313-cp313-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.59-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.59-cp313-cp313-macosx_13_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gllm_inference_binary-0.5.59-cp312-cp312-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.59-cp312-cp312-manylinux_2_31_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.59-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.59-cp312-cp312-macosx_13_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.59-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.59-cp311-cp311-macosx_13_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.59-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.59-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.59-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e73d6ac5dd49e67b1b902b6853cf61b16ff63dde174c8ed439276f8742d0c23b
MD5 6d06022f3862c8e10665902190a57eb1
BLAKE2b-256 586886c67f8f17a5899fd8983a031c68a4510c0e18c6ac60a08f482a9ad45e1b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.59-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 a4c81c39019d0928fa92b9f5b5e64bda2a18fc0c84513ac87defacf73001869f
MD5 e91eeaa24cf566f247347aa4baa38e5a
BLAKE2b-256 1ccfed25c940769b2519c0365a06c2841a41dd1ced852d0e003ffa70656e1e0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.59-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 242e883027b86d0640cb3662b5d2c459fcc8374683ab0aebd640f31689dc436b
MD5 77385498d89f7456d5c8aae12e9151ff
BLAKE2b-256 ca65cf4b1d3cf7bc2bc0b609d0a7846eaac5278d34879c56c6fed2dc07b0ddd7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.59-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 445671b302de6fd4c176ffbc8f1c386f5e47e93a4e10224156c2d6fe3d2597ae
MD5 c2a2db62916b5eac26e0618e1a1b8470
BLAKE2b-256 af3dbcd627ce029418ccc17c8a6876e91901f6b2d5ce5f9670abd969058988ef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.59-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0562bd226c78efdff0f160c33ad47161544c9602feebfd0e4f1f727da3e8639f
MD5 04f9d9912ea7cb336de975d8b9b1f068
BLAKE2b-256 c56a583c4ee7dab57f03d8ae9a4371c1c30217105fcada068467cbcdfc59a0fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.59-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 2d9efc86d73a96c7c65e030c08a07f2f5afe83e60587f9c22e2bf19b93a5d98e
MD5 6fe94afc954e9148c9f6b595f28140c4
BLAKE2b-256 6a41bffe08a79c0991940291938c0bfc86944a94598f9962caddfd13f4e41814

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.59-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b4cd1abf3fbacc466f73641948efe0c9e83fc7cfe301eec8314e88d9fc317d61
MD5 406fea90105c450e324b9bd24b139a1f
BLAKE2b-256 3385af2fdfb0ca532cdb351366474532efa6f4fba40bccf9d16c9ba53c0a7c98

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.59-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f10483d9175abbe6caf255eefc0ed062816a539f74d6fedddc866f640831efe9
MD5 d52b4aea1552326b922089373b9b7c4d
BLAKE2b-256 41af00fc4bc5daf1e62f236a75f6402ceb97836a37c06dfe475ff089ffa5f212

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.59-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2875afdb86ae6387224f29f5404dd813fbde56d2822ee1e71621ccbc4441156e
MD5 999de5c7d1890aa35a6f9d6b98f2ee7e
BLAKE2b-256 c930d44c783ed927dc801e13130211a86593c45065eca3cac1b9cae41e0cc08b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.59-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 16fed419905f1b809ffef74e8a8db938a28dce67be0c9320afc5452ffcf92c3d
MD5 b0d7be107d5e88b058acf9b95e2fb0cd
BLAKE2b-256 bcf9aafb708e5639c4c234b0f10d8118d707619845726753fdaa1a6f6d3555c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.59-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 7db0c7da9d5ad94039f85fcc4b5eb929d8e0ae3949df7959e222c635b3fb7ef8
MD5 383a2328d620d755f7ed6967e3806eea
BLAKE2b-256 2cfdebfff6d87f9e04c4cb171139ae04c438de03d2a41e837ba89985979237b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.59-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 073855badc9979f88751bd2e1248060b8f46277a683ac5a014b9e98fcdd3ed21
MD5 d23a8edf3ba529d7d7be6f9d841af360
BLAKE2b-256 8df5c805072f71d8eb295f284693d3d79c709c3216d8fd5a854ef6b7db125713

See more details on using hashes here.

Provenance

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