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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.83-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.83-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.83-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.83-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.83-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8b0df9710bd048ae3921529fe35d573e12104f4fead60876e209dd12f536f165
MD5 f4dfa822ffd60d2602df147c5d027d8a
BLAKE2b-256 c8c1b4f4b220042348aca9adc1befd4b003e6c7925cb9b8c3be39082a3e449bb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.83-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f6a3b61db2365b4d243a66f6741722cb8dd8b7bb0e3c3c7936382d9afbce63ec
MD5 9c651fc131514e4bd96235ba52e57099
BLAKE2b-256 eafbb1fa1ab7fa8e46f4c02d1bc186795b66426067c4c736853cdd9492a852ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.83-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 110091757307bed13ee741408757b90133cce33fcea2407ef87139f591a922d1
MD5 9c6f08f6161039e05392b4db9807aa06
BLAKE2b-256 9bb628907678c6d788a92b77e204012cff5a0b9cf1c1927a142aef130a661ebe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.83-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c265e33ba4e0b0781d8834c0896f1a8cd48db0334d49d803f106dc54d59282c7
MD5 04f9015eb45886294e00bbd37710a732
BLAKE2b-256 2720db31f23777bfaae6353d7111fd83220ea98b915a99e546c569938e35255d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.83-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e5864edf23094e55b78018d1f228d25ee00b1b0d4103cfe18895cb0f7d968df0
MD5 b374584c7d0bdc21c5c4d2bb83f36e5d
BLAKE2b-256 06dc0dec480d9602156fe92ae5fd644f995832fdfb428479f4e7356698ab103b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.83-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 6ced6d178fc89ecb7416e916c9f1dc800929a18f147a7f7b996e4a09358c07f4
MD5 8c911520b70f4b5eb63b6cf9c2ade82d
BLAKE2b-256 564ba1d46d641ac644a2249c17181444fbfb214b05bb15b1d5abfa1a0e2ebc13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.83-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5f9b9da84eda65d1fb4a5a92b7ecac46d02961fdf2313704c9cbbb9447c2b29d
MD5 75c795c0eb8458079202e54482a3d3da
BLAKE2b-256 b00ea63b435611d0947e63d8dcd2133f16e8ada2b5bcfb51ff70a6c198ce4f37

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.83-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 824a04ae2a1b14a7e6436b52063fdda08a991f4525f8ca75899cc7b6b5840517
MD5 e7eecd62e2d68795bea0fa210b5e6780
BLAKE2b-256 d51fe3642aae0bcc7f3703b7b7abcdbf127378fa9a3bb663d35a856b21577395

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.83-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 64aed5b90f887fc69235064277052944871ae37a5815d548fe71e91e4ac52fb8
MD5 2020808ddfc22422b951e6b9d085dcfb
BLAKE2b-256 8fc5999dc9fa8b97c4bfce617d8f5c6b3d9ec4ba9326e3bde513045353c4fbbb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.83-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f3a5a8d8ecde6a52508b968d0cae1f7f7b74e5c12ac8e459f35162283cb44039
MD5 7bb92daf6b08d39e1d5a6b49ced882ad
BLAKE2b-256 ef949c631ed2cc55c95b34372153b8c2cda7b84438a95f2099d3853e41bcc4cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.83-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 57219ccdc2b8fe98739fe1ab6e15ff0efd59669c897ae2ee555f650856086f71
MD5 28594f5be0fe0b8fc0d7d165f8693434
BLAKE2b-256 f850ccd85b698ee5b9c5144466304fa0cae1297a771867fbba1ebfe4216d8e6e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.83-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e21b79e82c6706d019694a91d227f57bc922dd9ea77b385b0c1bd208e2cf3acc
MD5 e9fe6953de8ca97538a79339ebe89118
BLAKE2b-256 3e3fe88a2ad070ecb8e47a4dd5a6a4684f391403b71ebb1ee74d4bf485f0ffd9

See more details on using hashes here.

Provenance

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