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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.76-cp313-cp313-manylinux_2_31_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.76-cp313-cp313-macosx_13_0_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.76-cp313-cp313-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.76-cp312-cp312-manylinux_2_31_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.76-cp312-cp312-macosx_13_0_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.76-cp312-cp312-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_inference_binary-0.5.76-cp311-cp311-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.76-cp311-cp311-manylinux_2_31_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.76-cp311-cp311-macosx_13_0_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.76-cp311-cp311-macosx_13_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.76-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 646f10e75e6eaf7485a022c5aac14462ceb1a2fe058ae015266432c64cdf9b0a
MD5 de1e17e848cc2b7728c589f1f8b85736
BLAKE2b-256 91ca78834d2dffb7f33c09555b80cf4dcede9b67880ba0c58a99026945116ab9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.76-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d58dfa2702a5033596e8b4beabbd858f06dddee90b10d3ed1425d89d53e2f789
MD5 8a5263c9af8d8915d5020dc04149935b
BLAKE2b-256 658e0488ac1c42e7d0934e0c5f9cb24a055a38354c241fcd5652f4979a127629

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.76-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5310deb03c393ff189aea7c9bfd728e5f7a0cba8e1d30d83debc004e08ad9039
MD5 03736d3afe4d4709e9e11d39f1088153
BLAKE2b-256 d81f82b6b28649beebd813a37386b20171b5280694536401ed5ab7a4c5d5d12b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.76-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6537f3c10a5d7ea05f500c662616b00466ee70ab69ab715ee29fde546087cbc9
MD5 c4d0f2c740e24dba95df60f68f5edb25
BLAKE2b-256 bdba631c209ccb7417c2f1c6ddb8157b3ba43680b4444825fc639f4390c139e7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.76-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6495e1b324d488e72ed67b112204e6ef28076191df7caf3cb1ba402f6076a478
MD5 f64dd53cd15fc502a72a6423099ff292
BLAKE2b-256 bb0c90d7b14acc79fc220046a210997dcfce0e870dfb87a4bfa32e38dc0d878d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.76-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bb55f045393b02c1146a63fd23f173ce03e8dc2d29777f2ec4f87a75ade6b848
MD5 fac2a7d90cbde9f1f4b627487d3ef732
BLAKE2b-256 2e26062a17be0645b6fbfab8d8d6fb5734853266b254b3b576ce6f6bebf12da6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.76-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d81e89fea3707b085ab7a6a13d5d53bb3762c735a9bfbcd68d04e5cc2fd885f4
MD5 4673335c06d50b8a91f3c9457b2a08ff
BLAKE2b-256 bf29adb00d504373de5221d24ee20358f545991f43b55ac87e4c2061047c6cc2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.76-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 32050016c52fc2a13dbcacd05e84fe2cf61b6c91f8466b055fe797bd430a2d09
MD5 4d30213e7d2db3dff255036c420e73cc
BLAKE2b-256 5ba687d2f87cbe53102f46826edd10ea06cf51137ab940877d0569470605ebb8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.76-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9eb2317102ed628c8c77d29c62ef6d3e5b0b95e432c2e584c9b35958b4db557c
MD5 2be6f8b5de356b00e4d089ec130610ec
BLAKE2b-256 e4730ba1dfbfba5a4353aa9cade847a3ef3714fc43170726cfe9486ea5922aba

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.76-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 0031046cd3dcba95a3dcd937091bfd6a1766249363506d46885fbc9499f4bcfc
MD5 c8246016750c71d0451019f13e6d145d
BLAKE2b-256 d77297340ee8ec6c8d8b89253e2fc74e9f1ef29f60639ea53bb688759baf5e9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.76-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a2043c44f614082963c04f43a35a5baecf494257964ac69007641b82b1ca8159
MD5 699eb4f44c8166fd94be687a31f9e7da
BLAKE2b-256 422b338431d1312f049f6c0a070191491afe99400a8149a6bb95c905476e7a51

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.76-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f5b76931b96198298f5d845e203826a363b80b7aa0e784e76968f4d7ead933be
MD5 46a0e622c2df1f06e6fa84b1c5ce0057
BLAKE2b-256 221c62e0e2f45b23d85cccb1c2c5618248b87ce8af11d5beb97aefa9edba21a9

See more details on using hashes here.

Provenance

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