Skip to main content

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

Metadata

Release files for hyperassist 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hyperassist 0.0.3
File Size Uploaded
hyperassist-0.0.3.tar.gz 23.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hyperassist 0.0.3
File Interpreter ABI Platform
hyperassist-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 49.4 kB

Release files / hyperassist-0.0.3.tar.gz

Download URL hyperassist-0.0.3.tar.gz
Size 23.8 kB
Tags Source
SHA-256 checksum
How to use checksums
31b2b8658b9f51ef7b20076134eed04052fb48fd4c407a7a2f168d36062fe13d
BLAKE2b-256 checksum
How to use checksums
3a54d7c5011f21555b0affa7b1ab81fa6a5f998e00832bd9e34c3377f0b9d722
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release files / hyperassist-0.0.3-py3-none-any.whl

Download URL hyperassist-0.0.3-py3-none-any.whl
Size 25.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72a62d95c4ecc3b4d2cf03f14a3e0c82664823cea0ca332ee703e36630ad4891
BLAKE2b-256 checksum
How to use checksums
3f22b0b1adde4202e25e7d8c84da0229880c8bf48af0a5e1155f5943f922d476
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page