ai-for-science-tf-to-pytorch

ai-for-science-tf-to-pytorch is a skill for Claude Code, Codex from ascend-ai-coding/awesome-ascend-skills. It costs 92 tokens per session (3,968 once invoked), scanned A, original, no licence file.

A general guide for rewriting TensorFlow or Keras machine-learning models in PyTorch. It covers matching layers, converting weights, checking values step by step, and comparing complete model results, including for Ascend NPU environments.

In plain words
What is it for?
It is for converting models such as ProteinBERT and DeepFRI, mapping their parameters, and validating both intermediate values and final accuracy.
Why use it?
It reduces the risk of silent differences when a model is moved between frameworks or to a platform that depends on PyTorch.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Part of the ascend-ai-for-science plugin — 14 skills shipped together , and of ai-for-science

Good fit It is for converting models such as ProteinBERT and DeepFRI, mapping their parameters, and validating both intermediate values and final accuracy.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ascend-ai-coding/awesome-ascend-skills/tf-to-pytorch
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 ascend-ai-coding/awesome-ascend-skills --skill tf-to-pytorch
Clone the repo
git clone --depth 1 https://github.com/ascend-ai-coding/awesome-ascend-skills

Made for: Claude Code, Codex.

Or install ascend-ai-for-science, the plugin that ships this one along with the rest of its 14 skills.

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 ai-for-science-tf-to-pytorch

README.md
[![agentmods](https://agentmods.dev/badge/skills/ascend-ai-coding/awesome-ascend-skills/tf-to-pytorch/github.svg)](https://agentmods.dev/skills/ascend-ai-coding/awesome-ascend-skills/tf-to-pytorch)
Your own site
<a href="https://agentmods.dev/skills/ascend-ai-coding/awesome-ascend-skills/tf-to-pytorch"><img src="https://agentmods.dev/badge/skills/ascend-ai-coding/awesome-ascend-skills/tf-to-pytorch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-for-science-tf-to-pytorch

Your own site · 80×15
<a href="https://agentmods.dev/skills/ascend-ai-coding/awesome-ascend-skills/tf-to-pytorch"><img src="https://agentmods.dev/badge/skills/ascend-ai-coding/awesome-ascend-skills/tf-to-pytorch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,968 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 unknown 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.00092 $0.03968
Opus 5 $0.00046 $0.01984
Sonnet 5 $0.00018 $0.00794
Haiku 4.5 $0.00009 $0.00397

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

Security

Grade A, and why

ai-for-science-tf-to-pytorch 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 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/compare_arrays.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/ai-for-science/tf-framework/tf-to-pytorch/SKILL.md · 379 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 379 lines · 92 tokens per session scan A d0730b43326b

Subscribe to this mod's changes

ai-for-science-tf-to-pytorch is a skill published in the GitHub repository ascend-ai-coding/awesome-ascend-skills (168 stars, last pushed yesterday), with no licence file. It adds 92 tokens to every session and 3,968 once invoked, about $0.0005 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-09-05.

Related

Other skills, from other repositories

fine-tuning-serving-openpi

Fine-tune and serve Physical Intelligence OpenPI models (pi0, pi0-fast, pi0.5) using JAX or PyTorch backends for robot policy inference across ALOHA, DROID, and LIBERO environments. Use when adapting pi0 models to custom datasets, converting JAX checkpoints to PyTorch, running policy inference servers, or debugging…

Orchestra-Research/AI-Research-SKILLs · 87 tokens

tensorboard

Visualize training metrics, debug models with histograms, compare experiments, visualize model graphs, and profile performance with TensorBoard - Google's ML visualization toolkit.

OpenLAIR/dr-claw · 32 tokens

autoprotocol-experiment-plan-starter

Use this skill to generate a deterministic Autoprotocol JSON plan for a small liquid-handling experiment and inspect a concise execution summary.

ma-compbio-lab/SkillFoundry · 0 tokens

opentrons-liquid-handling-protocol-starter

Use this skill to generate a minimal Opentrons Protocol API transfer script and verify it through the local simulator.

ma-compbio-lab/SkillFoundry · 0 tokens

ray-train

Distributed training orchestration across clusters. Scales PyTorch/TensorFlow/HuggingFace from laptop to 1000s of nodes. Built-in hyperparameter tuning with Ray Tune, fault tolerance, elastic scaling. Use when training massive models across multiple machines or running distributed hyperparameter sweeps.

OpenLAIR/dr-claw-plugin-cc · 63 tokens

automated-microscopy-acquisition-starter

Use this starter when a task lands in the Automated microscopy acquisition frontier leaf and the repository has curated resources but no dedicated runtime implementation yet.

ma-compbio-lab/SkillFoundry · 0 tokens