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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.44-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.44-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.44-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.44-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.44-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.44-cp312-cp312-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.44-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.44-cp311-cp311-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.44-cp311-cp311-manylinux_2_31_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.44-cp311-cp311-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.44-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64macOS 15.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.44-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 58d2acf3878729770d636e81b9603a530c34e67022654dfc9e0521fb92d84d36
MD5 c994d5f621dfda772b13584602a173f3
BLAKE2b-256 be259cd2c956c8093a84fdc260819779feee8f4f00df5d41b38f77f42e965e2f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.44-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 b21d5dbd5dbfb2496c03217f3608a4f6a3c59587de87e962331627d375230b79
MD5 7ae6be1565e4a810988c62ed5a0469ae
BLAKE2b-256 f38509c4f35a290d52872c0d400df798248360632940839b9ecbab7e678a5a25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.44-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 123fbb36fa682d6131af3fd9075633c9a837fb1377b3f98b873c8fe11991e00e
MD5 9fff7d8d432b3918c40e613e112d9ea0
BLAKE2b-256 6dc8e24fa216ae5558e04df9444231445c699b5dc707c2d15fddaf517c5f5d64

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.44-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 13c11cb8e28901a66c2696929d7b9d8bdebc07015cf5560b874fa1977fe464bb
MD5 6862a0d8a3231086fb6778db58a3139b
BLAKE2b-256 9a13b7f16c4a4c5da3a4b9067cca449cbaace0c4fddf7cab76529a4a7bbaeb29

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.44-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5fbafafbebddd13d5fcf70360041a63d3c61112254e35addaa90f963ba15eff5
MD5 6033f5c32dec0b6df990a6cf25105585
BLAKE2b-256 ff9b38fd9e7cbe2f01f2a1316d7dd17c430e4caf454074a95790b5714ed41de0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.44-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 43cbc367cd8975c40966fea384b941f9c43fa2f2eb0805fefd7742be1790d867
MD5 41d300b1f12f953883bbf8264a3c84ea
BLAKE2b-256 c1f3b0149db63588b58cf9fad388ee04b7e1b16d15271b55948d6539c95ee23c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.44-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ea8281a6835644c1343239e648ea640746d5f06d92d2e06b1221dc9fe4462dc1
MD5 0f4071872528fab07084c55bd993092f
BLAKE2b-256 0b4842377df2f88d457961da9206b1994c52502ef544dcd9d7e5baf4620c883e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.44-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 d1cf91cf6b899f76a1e5ed1d3c42d97b5a027376e365b701c23a5b98c733775a
MD5 d4959bb3e2efe9ed3c1658f163dd0506
BLAKE2b-256 3062b8af3ee64a1fb8935e61326540e00980af86636643e957e40858ce83f33b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.44-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4a5a27c0314b83b3256f0f9664e8e83f51c444f8a8285032248b926ba019cd01
MD5 e91eb5298b87d74900285059837e6135
BLAKE2b-256 c135d705ca9269d59beebea59ed4603a8dbe95d3b9b19489bfb21992966bc801

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.44-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 eb79a45fb2db0dcbfb0f863aa588cfc9efb492391d46201492ea286b51d494a1
MD5 2f78902c92f4204986624c29c40ca605
BLAKE2b-256 136bd92329000fb6236497a019f4966270da308ffcbd7a2aea80ebd9d83cd67b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.44-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4887b1d089d2d749e5f4d6dfeb7511f5c9178edc63b0eb7beacf8dcfa6c106f9
MD5 b495dcce46529a110a30b06acaf99a37
BLAKE2b-256 20970a53a43a6f96c73f09cba0c619437d76e3cb4708b1420893188dd602a033

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.44-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 0fea8b6098bcdacc13b6396494cbddb412a3f05d06104f777c03211a90b825c4
MD5 7ac4c0b559cb169f658fde125a7ba5d2
BLAKE2b-256 57e27e1e1a258ab99907c449b7fb90fda19a16635a146290a8d5a15bc0493286

See more details on using hashes here.

Provenance

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