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

Uploaded CPython 3.13Windows x86-64

gllm_inference_binary-0.5.53-cp313-cp313-manylinux_2_31_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.53-cp313-cp313-macosx_13_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gllm_inference_binary-0.5.53-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64macOS 15.0+ ARM64

gllm_inference_binary-0.5.53-cp312-cp312-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_inference_binary-0.5.53-cp312-cp312-manylinux_2_31_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_inference_binary-0.5.53-cp312-cp312-macosx_13_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gllm_inference_binary-0.5.53-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64macOS 15.0+ ARM64

gllm_inference_binary-0.5.53-cp311-cp311-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_inference_binary-0.5.53-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.53-cp311-cp311-macosx_13_0_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gllm_inference_binary-0.5.53-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64macOS 15.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.53-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a26f3081d0369484a3f150754295b39278518fdfae497c72d8159145359b6c85
MD5 bf44c0127963270880af0c1650b34461
BLAKE2b-256 55f635b224956ca204112c25ab0fdc905669d9f679ce27d6a8d6cc0cc8d46ecd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.53-cp313-cp313-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 32f6bb76ad07913ce63dec9fe6182b68c7caa314cb24f69d63f761829297319a
MD5 20d2b4d67b3fe1397fc89847d500801f
BLAKE2b-256 4b05c9ba57ee79600b3ccf9aebb45d3e57c78b86cbe6770a8a180ca2bc6f6dc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.53-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 511fd104e6aecc97568ca11949873af073577ccc211225680bd53e4fcfa25010
MD5 a333146925a11d88932ac1382d4bd4ec
BLAKE2b-256 075177a351b97f5e17980d69423ea469a3d09cc204dea22e8e5b60c688295699

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.53-cp313-cp313-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 632958f1236156b58bfbde621f0cdf8efc149c0925a75a74acdb5c63efacf63a
MD5 2004324d6f2fbd7ffa92077ab9a5b509
BLAKE2b-256 4dfd56795b1904d123b6b1b4932abbbb49e1381818fe79ad75e23bd48be71e4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.53-cp313-cp313-macosx_13_0_arm64.macosx_15_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.53-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.53-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b0c271333c16720db63a6fe7cf35b39f8af9e584a29dd26384de4f72ea7e072d
MD5 d39ca465277d66398d10c22ad2f04087
BLAKE2b-256 61b55d3f65c5aee51e6bc5272c4cb6b1f1fe7aa930440aa848660f9e75e50cea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.53-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c4314142f7adda101a97998cc925b18932d343dc5a3cfde368559a776fdd5f79
MD5 5114e6ade04a35b0848a3149d998e766
BLAKE2b-256 6b067788d4be89cd22ffed0dbef0be72d51385be6ff1b8233ccda15a2f424ec9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.53-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 750d6a245fcc05609d7f870790e860f56062afe95c69a191d1316787fafda8ea
MD5 0699f585c1db0c8660209646052c648d
BLAKE2b-256 bdba88b8afb50e28c4bd84238e63b85bb942749606d58084423e6df8fc5e5d20

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.53-cp312-cp312-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 5094ba4e68784771bdfaf855865097b16633b86ab496241e26bdb799333ab8ba
MD5 50ce7760715a02898afa59e97ff56e1f
BLAKE2b-256 8f4a24321bd48685ec4251b104085c57df7767104cc98e29b74cc42530a2446e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.53-cp312-cp312-macosx_13_0_arm64.macosx_15_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.53-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.53-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0b0fa667bfb90ffcb99305631d4875a8664ab7b1e64c9fbed98a64beeceb3d71
MD5 bb5b0c537bbf36540dd26d903b400e89
BLAKE2b-256 517d5cb98430e8fca48d3dc940fa4b875acd6d08ff54a8cd52d745c6dbac2d09

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.53-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 cd056ee4e3e85e2b1104addae1c94db3af09a65db0d3b6f0a1fc8ce060cfa22e
MD5 5270c77ba71ff6bd025feebc0bfb82f4
BLAKE2b-256 3b7dce0966038d891f4ff05920037db78798f0767ecaaa8fd09fbc4988253d85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.53-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a800b7b9ed26e783a10ab35f39d6a2e70b2f3414413765b32590072447b07a8d
MD5 8912568fbc698ac3c51f2400453e058b
BLAKE2b-256 f62d88264d0e68d6c01b8ce848575e75b45b3e4305bb318dee73594e4f330a86

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_inference_binary-0.5.53-cp311-cp311-macosx_13_0_arm64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 f87ed5b083eb1e40d78163ef472a419bc5e0d28a2e2d6ddc11eb8c18dce0d615
MD5 44b3c8c69fec858734df0a3dd9fb4874
BLAKE2b-256 845a33544eb6694d77605e261ac5c023ef54588e0f2ac704a428ab9aa1f7e517

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_inference_binary-0.5.53-cp311-cp311-macosx_13_0_arm64.macosx_15_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