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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.63-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.63-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.63-cp313-cp313-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.63-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.63-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.63-cp312-cp312-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.63-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.63-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.63-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.63-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.63-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 688341649a3a6ad53d9c74fda299ec33dc35cfb768225fc9ccb8cc6c50950497
MD5 0885816b3b29546dd81fa5b1d9ad5d96
BLAKE2b-256 52df572f5acce55fca301ba715d166ac107e27a3e7d9dbaa2fe2865e64a97f37

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.63-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ad8e1a7d9c53873d157a007d3c08b1d57b7ffcf7945581fdd3405d1fa5bb452a
MD5 486649c83b7e994ac36e8ecfdeaca09f
BLAKE2b-256 87423583aa45611fe84afa3439747ce685c791cb55dcc92fb484a6094de7011e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.63-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 976f9f637dda2d023ce6d15bdf749d5a4db89de58d6fe80d3ce9bd2384649864
MD5 9087a187cc3d2e73c3a484f0ebba88a8
BLAKE2b-256 27fb67a91f67a756d2c96bedd95c5a33b9b96cf0b112bd3bbab8bdb08d21c21f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.63-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 dc3abe0be01ae2046b00c39b030d77f7e4e1eece44df553a24a93f5e5fd508fe
MD5 657de846efb70b2696466e0979193aba
BLAKE2b-256 18207715eb25bec327e42f8bd6becfb33bfc95fb56d4ecf47bfd3540976292a9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.63-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0b75263de6d3053785f267cba32e101632eeb5fc9208614f6c4f0deedc68c95c
MD5 d2b6852d7d6bfae1dda8bd00d765eafb
BLAKE2b-256 1d61d6b4b8d6b4bd2a35e348a4d254ee0daf56be83f4368a9b18fa4f630398a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.63-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0741bfaaf2c89a4613938ff1d275f24286ae0f350b983db98f495510edb821ba
MD5 ffc0e2c3561d84ce76b1e73888c69862
BLAKE2b-256 37559ea3ee77eaaee22c37f00df8adcb13034f534ebe12f4710b7d21e202880f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.63-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4071c062b8bbc9c2a1b709831e8af1b581ae09e47b7aae20bc97421e6ec68b8e
MD5 035c2b6a4c52e61c35d091c0ab92956b
BLAKE2b-256 aa7d9f3a76fd1a633342adc468b7ecf21abe143dbdb0018540622f6db63c4858

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.63-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ad9ed9588b35f19acbc984a9586fa228a6da5badcfe1ef87c32fea4029f0b254
MD5 50ebcf08ccd753cd9d436e647fffb6e2
BLAKE2b-256 3fceafbef1dd5df702798fadcc256190cd85ef811462677bcef895775a046f89

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.63-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1b0f44d4b3bf99092bf8d4c1554f33425ce8a3214263164bbd7f6dc5d90fe3c5
MD5 a0b6293dd206634bcda20553a0d54a96
BLAKE2b-256 a1cd0997e6783bd409bf2b6284658e0ae32c60f1b420d53fdc9a41e3c258e065

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.63-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 ef23f53fdd24a96baaa1a83a4e351c5b400e1eae0eb414bad96a12687ba4c88f
MD5 22d44772e99a661021801f12bc55040d
BLAKE2b-256 01b2c98ad80b3f17e8763250257026aca06af5b07e682639525f8793651ef725

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.63-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9bdda49649dc65079f6267b02ce5d52593008d9bd3449416c181756b68fd5124
MD5 6fc6b0c329502d22b6ea4c33ae03dcba
BLAKE2b-256 ab689666e7d0989259235da0ee94af35d70c8c11d222cc181836749669e2e33b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.63-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 406cf4ff7202321abaa6135a7097abecaa4b5a9b0527922447208796e873f569
MD5 9f4a04d92a6adec2484f5af2564f14d2
BLAKE2b-256 6d7957b7055543b66945f58ef6964fa2165384a73326c1e1e2a284965de84a7a

See more details on using hashes here.

Provenance

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