Skip to content

jeremylongshore/tons-of-skills-marketplace / plugins/ai-ml/transfer-learning-adapter/skills/adapting-transfer-learning-models

adapting-transfer-learning-models

Verified

Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques. it is triggered when the user requests assistance with fine-tuning a model, adapting a pre-trained model to a new dataset, or performing... Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

assets/example_config.json

View on GitHub
{
  "_comment": "Example configuration for transfer learning adaptation.",
  "model_name": "bert-base-uncased",
  "_comment": "Pre-trained model to adapt.  Choose from Hugging Face model hub.",
  "dataset_name": "glue",
  "_comment": "Dataset to fine-tune on.  Choose from Hugging Face datasets or specify a local path.",
  "dataset_subset": "mrpc",
  "_comment": "Specific subset of the dataset to use (if applicable).",
  "train_file": null,
  "_comment": "Optional path to a custom training data file.  Overrides dataset_name and dataset_subset if provided.",
  "validation_file": null,
  "_comment": "Optional path to a custom validation data file.  Overrides dataset_name and dataset_subset if provided.",
  "output_dir": "./adapted_model",
  "_comment": "Directory to save the adapted model and training logs.",
  "num_epochs": 3,
  "_comment": "Number of training epochs.",
  "learning_rate": 2e-5,
  "_comment": "Learning rate for the AdamW optimizer.",
  "batch_size": 32,
  "_comment": "Batch size for training and evaluation.",
  "weight_decay": 0.01,
  "_comment": "Weight decay for regularization.",
  "seed": 42,
  "_comment": "Random seed for reproducibility.",
  "max_length": 128,
  "_comment": "Maximum sequence length for input tokens.  Truncate or pad sequences as needed.",
  "task_name": "text_classification",
  "_comment": "Type of task for which the model is being adapted. Options: text_classification, token_classification, question_answering, sequence_to_sequence.",
  "metric": "accuracy",
  "_comment": "Primary metric to evaluate performance. Options depend on the task. Common examples: accuracy, f1, rouge, bleu.",
  "gradient_accumulation_steps": 1,
  "_comment": "Number of steps to accumulate gradients before performing a backward/update pass.",
  "fp16": true,
  "_comment": "Whether to use 16-bit floating point precision (Mixed Precision Training).",
  "evaluation_strategy": "epoch",
  "_comment": "Evaluation strategy to adopt during training. Options: steps, epoch",
  "save_strategy": "epoch",
  "_comment": "Save strategy to adopt during training. Options: steps, epoch",
  "logging_steps": 100,
  "_comment": "Log every X updates steps.",
  "push_to_hub": false,
  "_comment": "Whether to push the adapted model to the Hugging Face Hub.",
  "hub_model_id": null,
  "_comment": "The name of the repository to keep in sync with the local adapted model. It can be a path to an existing repository on the Hub or a new one. Overrides the repository id in the Trainer's config.",
  "hub_token": null,
  "_comment": "The token to use when pushing the adapted model to the Hub.",
  "device": "cuda",
  "_comment": "Device (cpu, cuda) on which the code should be run.",
  "tokenizer_name": null,
  "_comment": "Optional tokenizer name to use. If not provided, the tokenizer associated with the model_name will be used.",
  "do_train": true,
  "_comment": "Whether to perform training.",
  "do_eval": true,
  "_comment": "Whether to perform evaluation."
}
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 323kUpdated Claude CodeCodexVerifiedInstall