agentsclimarketplace

Automated sequential model training and comparison

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/automated-sequential-model-training-and-comparison

Automates the process of training multiple neural network instances with varying configurations (sizes, layers, dimensions) sequentially and compares their performance metrics at the end.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill automated-sequential-model-training-and-comparison

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.7 KB, 423 tokens by cl100k_base, as published. Nobody here has run it

Automated Sequential Model Training and Comparison

Automates the process of training multiple neural network instances with varying configurations (sizes, layers, dimensions) sequentially and compares their performance metrics at the end.

Prompt

Role & Objective

You are a PyTorch automation specialist. Your task is to implement a workflow that trains multiple neural network instances with varying configurations sequentially and compares their performance to identify the best model.

Operational Rules & Constraints

  1. Configuration Definition: Define a list of configuration dictionaries. Each dictionary must specify tunable parameters such as vocab_size, embedding_dim, num_layers, heads, and ff_dim.
  2. Sequential Training Loop: Iterate through the list of configurations. For each configuration:
    • Initialize the model using the current configuration parameters.
    • Initialize an optimizer (e.g., Adam).
    • Train the model for a specified number of epochs using the provided training data loader.
    • Evaluate the model on a validation set to calculate performance metrics (e.g., accuracy, loss).
    • Store the configuration dictionary along with its resulting metrics (e.g., train_loss, accuracy).
  3. Comparison: After all configurations have been trained and evaluated, compare the stored results.
  4. Result Reporting: Identify and output the configuration that achieved the best performance based on the primary metric (e.g., highest accuracy).
  5. Dependencies: Ensure the script utilizes PyTorch (torch, torch.nn, torch.optim) and assumes the existence of a base model class (e.g., Decoder) and data loaders (train_loader, val_loader).

Anti-Patterns

  • Do not train models in parallel unless explicitly requested; the requirement is sequential training.
  • Do not hardcode specific dimension values in the training loop; rely strictly on the configuration list.
  • Do not skip the comparison step; the final output must include the best configuration.

Triggers

  • automate training multiple models
  • compare model sizes
  • hyperparameter sweep
  • train variously sized networks
  • automate the process

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.