Skip to main content

A Multimodal LLM from scratch for analyzing test failures.

Project description

Multimodal Test Analysis LLM (From Scratch)

This project implements a Multimodal Large Language Model completely from scratch using PyTorch.

Features

  • Custom Neural Network: Uses a CNN for vision and a Transformer for text.
  • Smart Analysis: Combines Neural Network predictions with Expert Heuristics for reliable debugging.
  • CLI Tool: Easy to integrate into CI/CD pipelines.

Installation

You can install this package locally:

pip install .

Or for development (editable mode):

pip install -e .

Usage

1. Analyze a Failure

After installation, the analyze-failure command is available system-wide:

analyze-failure --error "NoSuchElement: //div[text()='Workforce']" --source "path/to/source.html" --screenshot "path/to/screenshot.png"

2. Train the Model

To improve the neural network's accuracy (requires large dataset):

train-llm

Project Structure

  • test_failure_llm/: The source code package.
    • model.py: The Neural Network architecture.
    • analyzer.py: Inference logic and CLI entry point.
    • train.py: Training loop.
  • setup.py: Packaging configuration.

Requirements

  • Python 3.8+
  • PyTorch
  • Torchvision
  • Pillow

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

test_failure_llm-0.1.7.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

test_failure_llm-0.1.7-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file test_failure_llm-0.1.7.tar.gz.

File metadata

  • Download URL: test_failure_llm-0.1.7.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for test_failure_llm-0.1.7.tar.gz
Algorithm Hash digest
SHA256 66012ba21906d7599bbc4fd542f195ccdc42f5e02edeed417da17a24828b9818
MD5 e236dcafd3dd6f3d7e0fa209739e11b9
BLAKE2b-256 8416a400b9cdd83366f477ddf35145de7c4d8a893a07aa3b1b7f9127edbe87ef

See more details on using hashes here.

File details

Details for the file test_failure_llm-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for test_failure_llm-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9b78f9509e479d09ef775d63aefac7f11002b0e5f2c1af62d188c997156f62d5
MD5 9bde2111cb381f2bba8929799096570b
BLAKE2b-256 8eadc361238888250e3cdc5cd0e24a37c967a66b6ea9146b091d358bcdecefdc

See more details on using hashes here.

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