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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.51.post1-cp313-cp313-manylinux_2_31_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.51.post1-cp313-cp313-macosx_11_0_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ x86-64

gllm_inference_binary-0.5.51.post1-cp313-cp313-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.51.post1-cp312-cp312-manylinux_2_31_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.51.post1-cp312-cp312-macosx_11_0_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ x86-64

gllm_inference_binary-0.5.51.post1-cp312-cp312-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

gllm_inference_binary-0.5.51.post1-cp311-cp311-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.51.post1-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.51.post1-cp311-cp311-macosx_11_0_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ x86-64

gllm_inference_binary-0.5.51.post1-cp311-cp311-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51.post1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4d9364755bfe8a4988df6eccbcdf6a5080133874af3e2f855596866017176aa2
MD5 c625478314ddfa1c0e1b97acd1e6cee1
BLAKE2b-256 1042941ddb3a0d4a284077c505404b9d16ddd7ae23c344a2eb0b37fceb8f9808

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51.post1-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 cd8f29ee073240da0388aa0cc475afd9549207e9e7b83f3362ded220e27e176e
MD5 59d03de6eacc8f400011374b4276ffc6
BLAKE2b-256 8769f90f7c18f7f6fd2d86004738a5c00df2f19e698b511ef23555a8f7246f23

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.51.post1-cp313-cp313-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51.post1-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 7ce2f4d027332244ea85ac223456f42db105608938508b15ca3472c981d4780c
MD5 f06f1f813c9f6481878ddfa6d3ab969d
BLAKE2b-256 d031b4ccf6b2a39c33434a3fdeab68543657ea118319b7a670572e7341cf040d

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.51.post1-cp313-cp313-macosx_11_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.51.post1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51.post1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1dfdaca960da3b06abdb0c9650fa61f38314beb7caa325356f6bd2da777f61e
MD5 b8ba3bc48050dfd0d92cc23fcab2d24e
BLAKE2b-256 a993e2d26cbb34431682bcc9211ef9675bc421b942f5b8aa26825a531f313c44

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.51.post1-cp313-cp313-macosx_11_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.51.post1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51.post1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f8803003233d053e966776531d2a8a551ac62dcf08a529f099cea2a94d307bc3
MD5 1697e9db7f594a3079f8651e8b1cc2be
BLAKE2b-256 481dab29412aeeecbd772e7bb6cd4834434f655ee430f15a7eff9c6f0178e31c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51.post1-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 aeef794b0a03aecd4356615437afc54290f6288fae5845a0e62d50dc9c798ab2
MD5 7bc22c33a5603edfa1cb1475499bb0c1
BLAKE2b-256 7840bbde9d0ed3988818fea3b4a069db3a3b2c724bff9cbe15bd520184b66e08

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.51.post1-cp312-cp312-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51.post1-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 74d06f2c846fc2c8892c6eba9eb496f9979058248147244c08d9d80dc983b199
MD5 86ca1460a09a21e11509a317c781a11e
BLAKE2b-256 0a5e86fb3a7834b299845004389cced47adae0772dd28b8c7564f93cfb971e3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.51.post1-cp312-cp312-macosx_11_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.51.post1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51.post1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 585facd6bc74d5ca3c09bb4ccd966bfa8e2ebdc35faaa7f8c80f8c6e0710668b
MD5 754ddbcaed2a31e5311c9156f39ded72
BLAKE2b-256 37f589c566e73573b33e995357305a283c07a8716d652c860217b160dd682f2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.51.post1-cp312-cp312-macosx_11_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.51.post1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bd111a8e88630d4b0c11d4b0d0fab386a1f01c408cd9b659e34b44efef44e058
MD5 15d96da2ca57e1de08a3583ef40ef568
BLAKE2b-256 b0a6c33ff80ced54f24f9db9cdbafb7965eca3f414caac5c8009697b5d3308b7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51.post1-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 dfff6f657f9063617590be63c664a968765d5e3643f23cf6ff313551e92f34ed
MD5 50c4652ce8a439d4a59628818cb7ea3f
BLAKE2b-256 8924b45537c7161021b3c352189e3c4f621488a840d390a0c8ab7947eb56aae5

See more details on using hashes here.

File details

Details for the file gllm_inference_binary-0.5.51.post1-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51.post1-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 48dad8138c09f2cbc4d39752f7770e6226bba88afd943e3096a881bfcf22f393
MD5 c5fb9d621bfbe9aacbe4a840d19bbe5c
BLAKE2b-256 9df97fb0bc312cc1217147dc6566c72d53781592c53602bd2faaeffa65a334a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.51.post1-cp311-cp311-macosx_11_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.51.post1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.51.post1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5c71ba09fa3abb4ca03418f30e908686f9c33e032e98566ec668a76b8377597
MD5 8e29499286254b2589f683b0a389a63b
BLAKE2b-256 5e665fb3b5947782fc3eb4fa0958186b13cd7205a24af342f8d91fb88a03409c

See more details on using hashes here.

Provenance

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