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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.85-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.85-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.85-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.85-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.85-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7a45fe0d5958aec0242e4e55e3acbb23e73dfcee635402b6ae143f3ff3e374b4
MD5 cb4572b041f908d9db3e4f807d6f45c6
BLAKE2b-256 06765d4729c7c857f79eb9251757cd51621bf4e18e292691af185bf1bdb3a41a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.85-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 d974eb95e7538122b8194b22e3cbcb5573bf9b8def59dddd4f2d4945650e83b9
MD5 efbcb2ae8c70e7c1f458e0856f2f23df
BLAKE2b-256 e6d1e1fe76cf27e376a095f6404fb435abe7fa510e98a3cd150bdc13fc330f3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.85-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 78808a10a70273e43efcf768ac040f3f5e210bf5f5eeed487bbb20e63ea61dfe
MD5 f5a09db541c59502bda6a760b8aed960
BLAKE2b-256 44d6562601305e5c99d3197fe71a4e7c8e1be12ff73b3cd0a6da5d8cc176218a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.85-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 edebcecde5f6cc81cf21c07ab26f79b48df23fb2def0abbb2bf734dac54c8da8
MD5 5fd31a7edee8e564086b1fbbf4d615ba
BLAKE2b-256 fbce046e288d00c6aede98ad4e6fadd870a7aa3cacbf196fedeb628c4f133002

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.85-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 caf47c6649bce1be56f62be81dd6b4c0f26cd77afe3e34b7cdcc3662897a587d
MD5 735213b0e9b44e2553dc0d9c4d26b1b1
BLAKE2b-256 748a02df749c24d14183cb79cd7ab468288810874178109692d5a9f940a74311

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.85-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 3c0b066c78bfe1c10d8eab704a4850e366ddd7aac99b4c67cf66d71280d0b96c
MD5 646f85050f384fb31b7e6e5f667ecf3e
BLAKE2b-256 58b5ce255ee1d95d92d63d14251be1a426c708b7ef03dfe83dd181f973ef7f22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.85-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e1b20af237283587113c4665ee30bd80fa28727e3e5ed63bade4245ef5f4234d
MD5 4b4f66dce9fea8a348dde02a6dc2b64a
BLAKE2b-256 86d788973a55c8e484dedd3af74df4100c5a26ea5d7e3f6bcb190b1beefd08d2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.85-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9f91da629414c48411f3c06f73a2231e1bf689f27c717f73a42f61466107db71
MD5 2fc58cde2dd84c33dc837cf16d3da408
BLAKE2b-256 8a7539719d9fe64957f44756c865cbad811c175a2fd5acb04c4759c558776241

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.85-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b598564bad7f2e04b752074164e28f43af38ec74fb82a6a36ffad2d97111ef4c
MD5 fbb95f7e217a5b88ddc793c9367892c1
BLAKE2b-256 37fb5fd57629c4d78368e8327892775537bb212736285034de1a478b5da92e21

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.85-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 79bf69c89fbec780a6189d4456407b563359fe123aa2196860933628607f75e2
MD5 bcad1e9c7665bcf120b2b9ee1e529a36
BLAKE2b-256 b1ff2d990cdbacf720b32f6f9cb3ca75358bc962b96c016a65120604d70c10b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.85-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3eb616cdb2495bbc4cfce00d10054d20f6c2266f09262cbd85a57717d0c4b2e7
MD5 3a142e9cf9dba1fe2e3b7b54ef095561
BLAKE2b-256 5bae874f4fda95241e93af8c03f8f7a62432d2bede77bb05db4265947bde5893

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.85-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9ac9e5b86cb8e568687ae8b0f3ccf7719fd6ce3cc24288470cb46bef63d7f703
MD5 72addf51e2b58c7e117f4cfe22c5e400
BLAKE2b-256 b997d527979177bf28cd27f9d3342dc75aacafaad77251e47a44e500d57c0db9

See more details on using hashes here.

Provenance

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