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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.74-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.74-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.74-cp313-cp313-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.74-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.74-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.74-cp312-cp312-macosx_13_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.74-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.74-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.74-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.74-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.74-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6180221aeb8b727a60310c54847a5f6080944edcf51ab025029652157cd6da85
MD5 ef5696953b42dfe1f8eefd908d89c0cc
BLAKE2b-256 6774ad145decfce322edd7e761a59ed6738af56c02d89647d186c2c2a89fe05a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.74-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 048330e87594735790f3317bc4f9c402e282e7b9d15e45d5f335de41fa48d5df
MD5 4278f01ff5fc7bf05c03f6959ff472c5
BLAKE2b-256 f9e9f79966b89a25e422f6a39d303b496427c68344290193870f664d51c378f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.74-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 35d4d14a50d8b883b8773e5fc2b1430031165d2116a4c5a2cd1ab63d1f6748cd
MD5 1f49b8399e93d072845711d0f63f7310
BLAKE2b-256 af663971b264b975901f4cd2a18f16d0bea74dd2b8270ea4f088009898c94ab8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.74-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e5fd046acb6bd72d904568e93e643293e446d2fbc655476ec7bcc13b504a9ac9
MD5 9cc7038824871caf021f9c42a5183360
BLAKE2b-256 19de21a5ad2754bc4ceb07166f3cf4a0c5c6666e95ce828f35e429df7a396d56

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.74-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e3265ee6f0d9a93ce5b96c3af0d465ef6f5d68cef83b3dabd988f0b7452d589f
MD5 e56944efaf7c9c5e65ec1b7397a63f02
BLAKE2b-256 5ddaef8b9b27503baf415cc349f916cf4eb392dd449a960d8f4dd97c75ab943c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.74-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 846dc466013cd8d42a12f3d330f6871d9aeed735d3d01e7b1125e688a43da424
MD5 c1f43463d27455313bf18490db902737
BLAKE2b-256 cd52e7478c2067b46be34b0c96ee70a5eb222e9edb15b5260da005d5b3044886

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.74-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 619f00b5a7e995ae3748236cecb04dc412fd3b4c0abd5ce380026496f362a65b
MD5 aed50d28ebe214e1bf6892ecf31e9255
BLAKE2b-256 62b6b82c7373e3bcd2cba54deb63ed4062292038fba79663f136a7774cffaca8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.74-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 64246b30252f6a8db07c6672b35ba20b234f887f1c15e184883f72258d7f8e60
MD5 e52f72fb20db2ffb7652310cf8510b7e
BLAKE2b-256 71e61907d82b10d06585b259db32509ff1e44be10df2637f717b0258ca5cf328

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.74-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 11766022ed8f3f18d9d767a0274822511654d3cc7871285ebee7a8d453079074
MD5 63c7827e34df68e3aacf047a5a80e007
BLAKE2b-256 ac884edb2377fe7a915b5ac60232b82c8286deb940d7e6173a5c8713963af758

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.74-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 7986f1be54ec22e3ec759984a80e1aab0bf76138530b28c4f72cb520e7d17258
MD5 b3167e1bd3c59f01b0ad7d1061e6765b
BLAKE2b-256 826e9dea560d8b69ba1724fd2770c2dc51e17001375721de238ac180926f7867

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.74-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 387c3b95be29130427905d67f897433d95b0e3e41efe823b39c5a46735a6a92d
MD5 a6d82213874088437281d0400508f8cf
BLAKE2b-256 097b9034506b928775f737989916b3af22d461eb1ce9e6edeff1a48d05cdac50

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.74-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 50dc6c37ccf5fbc4930a845e2666342f33c3fe65981522a770730f6346b3e805
MD5 6754824b2b39b3218f0f0a9a5b95a4f6
BLAKE2b-256 ea3810812ee2486014002cb97cf4171b2985d8d1a5f3e90ba6c1a66ba9186d3f

See more details on using hashes here.

Provenance

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