Skip to main content

AI training diagnostics and hyperparameter assistant.

Project description

HyperAssist

Transparent Hyperparameter Guidance and Log Analysis for Deep Learning

HyperAssist is a free, open source tool that helps you configure, debug, and understand your deep learning experiments no cloud, no paywalls, and no hidden magic numbers.

It analyzes your training logs for common problems, recommends research-backed hyperparameters with clear formulas, and explains every suggestion so you can learn and improve your workflow.


Features

  • Actionable Log Analysis: Instantly flags unstable training, exploding gradients, and suspicious accuracy plateaus from your training logs.
  • Transparent Parameter Recommendations: Suggests learning rate, batch size, dropout, and weight decay using formulas sourced from real research and best practices.
  • Explanations for Everything: Every recommendation comes with a formula and reasoning. No more “try 0.001 because everyone does.”
  • Privacy First: All analysis is fully local no data leaves your machine, no signups required.
  • Flexible API: Use as a Python module or (coming soon) as a CLI tool.
  • Free and Open Source: No paywalls, no quotas, no cloud dependencies.

Quick Start

pip install hyperassist

Analyze a training log (from a file):

from hyperassist import log_assist

log_assist.process("my_training_log.txt")

Analyze hyperparameters and get recommendations:

from hyperassist import parameter_assist

params = {
    "learning_rate": 0.01,
    "per_device_train_batch_size": 16,
    "dropout": 0.5,
    "weight_decay": 1e-4
}

parameter_assist.check(
    params,
    model_type="cnn",
    dataset_size=10000,
    input_shape="3x32x32"
)

For more examples, see the examples directory.


Why HyperAssist?

Most deep learning tools only visualize metrics or perform black box tuning. HyperAssist goes further it explains why a value is suggested, and helps you learn good practices as you work.

All formulas and heuristics are documented and referenced so you’re never left guessing.


Supported Parameters and Formulas

  • Learning Rate:
    • CNNs: Linear scaling rule
    • Transformers: Inverse square root schedule
    • Generic: Dataset-size scaling rule
  • Batch Size:
    • RAM- and compute-aware recommendation
  • Dropout:
    • Adaptive to model complexity
  • Weight Decay:
    • Scaled for compute resources

See docs/formulas/ for full details and explanations.


Documentation


Contributing

Contributions, suggestions, and corrections are welcome. Please open issues or pull requests, or share feedback and new formulas from research and practice.


License

Apache-2.0


Acknowledgments

HyperAssist is built on lessons learned from real research papers, blog posts, and the deep learning community.
For full formula references, see docs/formulas.md.

hyperassist/
├── docs/
│   ├── api/                          # Human-readable API docs
│   │   └── api.md
│   └── formulas/                     # Markdown formula docs (version-controlled)
│       ├── Batch_Size_Calculation_Formula.md
│       ├── CNN_Learning_Rate_Formula.md
│       ├── Dropout_Rate_Calculation_Formula.md
│       ├── Generic_Learning_Rate_Formula.md
│       ├── Transformer_Learning_Rate_Formula.md
│       ├── Weight_Decay_Calculation_Formula.md
│       └── PACBayes_Dropout_Theory.md          # (L4-level)
├── hyperassist/
│   ├── __init__.py
│
│   ├── log_assist/                   # Log parsing and live analysis
│   │   ├── __init__.py
│   │   ├── analyzer.py               # Log chunking, metric tracking
│   │   └── utils.py                  # Helpers: regexes, metrics, OOM detection
│
│   ├── parameter_assist/            # Main suggestion engine
│   │   ├── __init__.py
│   │   ├── suggestor.py             # Public API: check_params, get_formula_explanation
│   │   ├── validators.py            # Input validation, sanity checks
│   │   ├── utils.py                 # Shape parsing, RAM detection, compute guessing
│   │   ├── formula_registry.py      # Registry of available formulas & metadata
│   │   └── formulas/                # Computable formula implementations
│   │       ├── __init__.py
│   │       ├── base.py              # Shared logic/utilities (e.g., clamp, safe_eval)
│   │       ├── l1_heuristics.py     # Empirical constants and scaling laws
│   │       ├── l2_param_heuristics.py   # Memory/compute/dataset-driven rules
│   │       ├── l3_semi_theoretical.py   # Transformer LR, dropout vs complexity
│   │       └── l4_theoretical.py        # PAC-Bayes, Fisher, curvature-aware
│
├── test/
│   ├── test.py                      # Unit tests and integration tests
│   ├── test_logs/                   # Training logs for log_assist tests
│   │   └── example.log
│   ├── test_profiles/               # YAML/JSON profile configs
│   │   └── transformer_profile.json
│
├── examples/                        # Example scripts or notebooks
│   └── usage_demo.ipynb
│
├── .gitignore
├── README.md
├── LICENSE
└── pyproject.toml

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

hyperassist-0.0.3.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

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

hyperassist-0.0.3-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file hyperassist-0.0.3.tar.gz.

File metadata

  • Download URL: hyperassist-0.0.3.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for hyperassist-0.0.3.tar.gz
Algorithm Hash digest
SHA256 31b2b8658b9f51ef7b20076134eed04052fb48fd4c407a7a2f168d36062fe13d
MD5 3452bc69c99f15089f4561aaae7b0c0d
BLAKE2b-256 3a54d7c5011f21555b0affa7b1ab81fa6a5f998e00832bd9e34c3377f0b9d722

See more details on using hashes here.

File details

Details for the file hyperassist-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: hyperassist-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for hyperassist-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 72a62d95c4ecc3b4d2cf03f14a3e0c82664823cea0ca332ee703e36630ad4891
MD5 dd8d6f04c4cf8838b4a71eabd38a22bb
BLAKE2b-256 3f22b0b1adde4202e25e7d8c84da0229880c8bf48af0a5e1155f5943f922d476

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