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.5.tar.gz (11.6 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.5-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: test_failure_llm-0.1.5.tar.gz
  • Upload date:
  • Size: 11.6 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.5.tar.gz
Algorithm Hash digest
SHA256 483182c7a8a3ad31723399b8859e3fc4c7d2ad69ce659dbcd38c87bf7f34fa34
MD5 c9c0e86e840f27c6cbef8a2e62e7f67a
BLAKE2b-256 c8dfca4668cb446391d8f35fa7efb9dcc4f030cbd1a9a89b986492dcd365e878

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_failure_llm-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5aafc80ca28bd0620995ece3abe96d1804319149ec0787fdd026e1f293b2340e
MD5 bd0e5a32f88dd53094434939db3c65cd
BLAKE2b-256 559e3b295a8ff0d8aea3459601a1d4a6128aca53ce762e93017c709938d96036

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