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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.60-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.60-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.60-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.60-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.60-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2be8b6a1c974085a3b5399f51b3e2e8a04572c90e44665c50098808dd3002733
MD5 f24410641092acb900dec9319674202f
BLAKE2b-256 6f8c0624830fdd7a6596023e734cc7494345d42dca19cbd6d931d105781ab8b2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.60-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d1e744286385c682b56dba20b0ebd32bbf194f87f0a6c2c892320f5b7bb5fc62
MD5 e56424658deeaf7af891df73836c0828
BLAKE2b-256 a9f237393a196b0c782adb60384219cce67fafbc5ea4ec301f9854f504ec1c10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.60-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 f9da6025b42cde382c0eaa231b6afe9933c6bdcfca0bee5b306cc47b7ad91731
MD5 39aed894358c2041797615ed67e42de1
BLAKE2b-256 aee93af7bbd64505bfd39435d20e0e370b70e5b643853aeacbe772113e51949d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.60-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3eb6d88bfc3173bb6a87f4413aaaefd256ec6c89b2d04246a8dacf95ce0fe1ae
MD5 a1d87b25e616346e31d621064a2a5404
BLAKE2b-256 05d5b4cc3c226264ea09214bfe48ae63d0ee27362a3da73786fa1be3d5e41e2f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.60-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d05458d7facb03e0bb9621519a334de4076623716e66298ec19afba2baaf3ec6
MD5 df7d7b83b84f6497f91e79420d0cf627
BLAKE2b-256 dfd269fe6e204f591649ba573bb7214e098816acb45567f3e32841d6169e1395

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.60-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 32e8677d5b6e6c44f2385a9a13d3f89b36b215705549184612029da6e35af8b8
MD5 34a5770a5ffeb7dcdedfee00b19c5d6e
BLAKE2b-256 d46bd4a357b6d857cbd6fc1669d7441ff4422a5e57495a12473faafb0637da2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.60-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 acc83d2c95b983e19a302d62eb28cbb15159fabef79908c5c93c0242a0e83bae
MD5 2fd793690ed99d715e190ff721f7881a
BLAKE2b-256 f1661f40cbaec79e86154f9fcdaee423b07a1d31a04da89f524b0d95b861b260

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.60-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e52d0f03c6a182a3de7ddc4166295948fa2aea890edcef320fb3d14b404a38ba
MD5 deb1fcc532527dbbda4643dda2687fb3
BLAKE2b-256 c45d007493e5726bd3cf7754f4696384101d9ea22485c6b1c5258e1dbff7ebaf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.60-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e3db05657c12cb0d1785ba6ec8b92fdec7ddf6f9d6f0f7f666beb0729646dc4f
MD5 8b40b3fcfeebadc5681574f54765ca4b
BLAKE2b-256 138673ab752aa245acf098824258bd98b89c4404d2f5fdecabc51eae9c13553f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.60-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5e44fd46c4aaa4223737b83b2bdcbfb9940b1b5edfc8ad60496d6fc96b14d1f1
MD5 bdad4b75e0f75ae54c05ebc89aea5432
BLAKE2b-256 bd4aff9b17bd7dfe434c9e51416ab57af271ae5ab4bc34db58ea8aef630172c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.60-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 7bbee04d802889ebd4e0cf7fbcd196ff858019d96e9487346251ae92855f264d
MD5 b2e19f6a0ffb99709c18f6104f644321
BLAKE2b-256 dd033816f524f147b7b521b8c86238b43e0c2c4bd4f4c8c6bf9d0bf8d91a7fac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.60-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c7b0cf144b59b400e3c43f0413e0984277bebce522901d2de27129620269bdd1
MD5 8e6d417f9a4e4e0c436434461d897af9
BLAKE2b-256 e45785a1c264da9104f66782fb06ec4709ae19f2a6f727e8d866a0bd8c85d191

See more details on using hashes here.

Provenance

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