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.6.tar.gz (12.1 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.6-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: test_failure_llm-0.1.6.tar.gz
  • Upload date:
  • Size: 12.1 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.6.tar.gz
Algorithm Hash digest
SHA256 fe378f5a5aea8ea531a85141d4652a14da404eaea17000d05f80001d94ae3c27
MD5 d532a3b986c5df97befb07885ba8d1dd
BLAKE2b-256 7d4826854057afadb2f4f0e0ca5417d126ea8c7221c3259f4db76da94bb9db30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for test_failure_llm-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 090a42eb0dae377d672d286a280145a4e4cca8efb544b81d51d5e44f2a4ae118
MD5 7fa79dcaa8333d703fed9c7431de0e97
BLAKE2b-256 8fe7ed7d9a0677675bae9a035ff63d90e390b3e4a9eee5cf3c49e07b4e23b0ca

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