transfer-learn

transfer-learn is a skill for Claude Code from pregHosh/Solitarius-mcp. It costs 46 tokens per session (1,093 once invoked), scanned A, original, Apache-2.0.

A workflow for fine-tuning a REINVENT4 molecule-generating model on a focused SMILES dataset. SMILES is a text format that represents chemical structures.

In plain words
What is it for?
Training or adapting REINVENT4, LibINVENT, LinkINVENT, or Mol2Mol models using SMILES data, with options for preprocessing, checkpoints, epochs, batch size, and CPU or GPU use.
Why use it?
It adapts an existing model to a particular chemical family instead of training a model from scratch. It also prepares the required configuration and runs the training command.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: positional $N argument.

Part of the solitarius-mcp plugin — 7 skills, 1 MCP server shipped together

Good fit Training or adapting REINVENT4, LibINVENT, LinkINVENT, or Mol2Mol models using SMILES data, with options for preprocessing, checkpoints, epochs, batch size, and CPU or GPU use.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/preghosh/solitarius-mcp/transfer-learn
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pregHosh/Solitarius-mcp --skill transfer-learn
Clone the repo
git clone --depth 1 https://github.com/pregHosh/Solitarius-mcp

Made for: Claude Code.

Or install solitarius-mcp, the plugin that ships this one along with the rest of its 7 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for transfer-learn

README.md
[![agentmods](https://agentmods.dev/badge/skills/preghosh/solitarius-mcp/transfer-learn.svg)](https://agentmods.dev/skills/preghosh/solitarius-mcp/transfer-learn)
Your own site
<a href="https://agentmods.dev/skills/preghosh/solitarius-mcp/transfer-learn"><img src="https://agentmods.dev/badge/skills/preghosh/solitarius-mcp/transfer-learn.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,093 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.01093
Opus 5 $0.00023 $0.00547
Sonnet 5 $0.00009 $0.00219
Haiku 4.5 $0.00005 $0.00109

Measured 7d ago against content hash a6288550973b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

transfer-learn scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/transfer-learn/SKILL.md · 132 lines

How it starts

The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.

REINVENT4 Transfer Learning

Fine-tune a prior model on a SMILES dataset by writing a TOML config and running the reinvent CLI directly. No MCP server needed — activate the reinvent4 conda env first.

Workflow

1. Resolve paths

readlink -f <relative_path>

All paths in the TOML must be absolute.

2. Determine parameters

  • input_model_file (required): absolute path to .prior or .model file. Use $0 if provided.
  • smiles_file (required): absolute path to SMILES/CSV training data. Use $1 if provided.
  • output_model_file: where to save the fine-tuned model (default: <workdir>/model.model)
  • num_epochs: training epochs (default 50)
  • batch_size: batch size (default 50)
  • save_every_n_epochs: checkpoint frequency (default 10)
  • generator: reinvent, libinvent, linkinvent, or mol2mol (default reinvent)
  • standardize_smiles: canonicalise and sanitise SMILES before training (default true; set false only if pre-cleaned)
  • mol2mol_pairs: for mol2mol generator — source→target SMILES pairs ({source_smi: target_smi, ...}); provide as a separate CSV with source and target columns if large
  • device: cpu (default) or cuda:0

3. Validate input SMILES

Run a quick sanity check with Python/RDKit before committing to a run:

from rdkit import Chem

errors = []
with open("/absolute/path/to/smiles_file.smi") as f:
    for i, line in enumerate(f, 1):
        smi = line.split()[0].strip()
        if not smi:
            continue
        mol = Chem.MolFromSmiles(smi)
        if mol is None:
            errors.append((i, smi))

print(f"Total lines: {i}, Invalid: {len(errors)}")
for idx, smi in errors[:10]:
    print(f"  Line {idx}: {smi}")

Report any invalid entries. Offer to write a cleaned file (skip invalid lines) if needed.

4. Create the output directory

mkdir -p <workdir>

Suggested: <model_parent>/reinvent_runs/tl_<YYYYMMDD_HHMMSS>/

5. Write the TOML config

Write <workdir>/config.toml with the Write tool:

Read the full file on GitHub · 132 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 132 lines · 0 tokens per session scan A a6288550973b

Subscribe to this mod's changes

transfer-learn is a skill published in the GitHub repository pregHosh/Solitarius-mcp (0 stars, last pushed 29d ago), licensed Apache-2.0. It adds 46 tokens to every session and 1,093 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

deepchem

Molecular ML with diverse featurizers and pre-built datasets. Use for property prediction (ADMET, toxicity) with traditional ML or GNNs when you want extensive featurization options and MoleculeNet benchmarks. Best for quick experiments with pre-trained models, diverse molecular representations. For graph-first…

synthetic-sciences/openscience · 78 tokens

binding-affinity

Hybrid ML + physics binding affinity prediction. Empirical scoring, MM/GBSA rescoring, multi-method consensus, and batch virtual screening for protein-ligand complexes.

synthetic-sciences/openscience · 38 tokens

molecular-rag

Retrieve structurally similar compounds with known properties from ChEMBL/ZINC to ground predictions and inform optimization. Based on MolRAG (Xian 2025, ACL).

synthetic-sciences/openscience · 40 tokens

text-based-molecule-editing

Modify molecules based on natural language descriptions using MolT5/BioT5 models. Use this skill when: (1) User wants to modify a molecule to improve specific properties (solubility, potency, etc.), (2) User provides a molecule and asks to "make it more X" or "improve Y", (3) User wants to generate molecule variants…

PharMolix/OpenBioMed · 128 tokens

chem-msms-predict

Predict LC-MS/MS (MS2, tandem mass spectra) from SMILES via ICEBERG, a two-stage deep neural network. Outputs predicted m/z vs intensity spectrum, fragment ion SMILES, and a spectrum plot.

learningmatter-mit/AtomisticSkills · 51 tokens

ml-foundation-potentials

Guide for selecting the most appropriate foundation MLIP model based on simulation requirements.

learningmatter-mit/AtomisticSkills · 21 tokens