Downloads · 30 days
0
tjwjdgns011119/seal-tasknet-v0
seal-tasknet-v0 is a machine learning model from tjwjdgns011119. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as other.
This repository contains a custom PyTorch checkpoint for the Shared Energy SEAL-style task-net:
Downloads · 30 days
0
Access
Public
Updated Jun 4, 2026
Repo size
845 KB
Likes
0
Public
Click a slice to open those files.
.pt422 KB · 76%
From the Hugging Face model README
This repository contains a custom PyTorch checkpoint for the Shared Energy SEAL-style task-net:
g_psi(T, c) -> d0
The model maps a power-converter topology graph T and target specification
c to an initial continuous duty-cycle prediction d0.
This is not a Transformers checkpoint. Load it with this project's
shared_energy.seal_models.GTNTaskNet class and the checkpoint's
model_state_dict.
seal_tasknet_model.pt: PyTorch checkpoint with model_state_dict,
model_config, training config, and best validation metadata.manifest.json: Training and evaluation summary.training_history.jsonl: Per-epoch training and validation metrics, included
when uploaded with --include-eval-artifacts.The task-net was trained to predict the GTN dense-search best duty while also being guided by a frozen SEAL loss-net energy term:
L_task = lambda_sup * L_sup(d0, d_best) + lambda_energy * E_omega(T, d0, c)
For this run, lambda_sup=1.0 and lambda_energy=0.2.
9200Sample counts:
{
"test": 148,
"train": 689,
"val": 148
}
Final validation metrics:
{
"count": 148.0,
"duty_mae": 0.212996697103655,
"energy_loss": 0.995880257438969,
"sup_loss": 0.032279046554420446,
"total_loss": 0.23145510296563845
}
Final test metrics:
{
"count": 148.0,
"duty_mae": 0.23800100829150225,
"energy_loss": 0.9947394277598407,
"sup_loss": 0.039557718344636866,
"total_loss": 0.2385056047020732
}
from huggingface_hub import hf_hub_download
import torch
from shared_energy.seal_models import GTNTaskNet
repo_id = "tjwjdgns011119/seal-tasknet-v0"
checkpoint_path = hf_hub_download(repo_id=repo_id, filename="seal_tasknet_model.pt")
payload = torch.load(checkpoint_path, map_location="cpu")
model = GTNTaskNet(**payload["model_config"])
model.load_state_dict(payload["model_state_dict"])
model.eval()
# duty = model(
# node_features=node_features,
# neighbor_mask=neighbor_mask,
# loop_membership=loop_membership,
# node_mask=node_mask,
# spec=spec,
# )
The project code must be available in the Python environment, for example with
pip install -e . from the repository root.
The checkpoint is intended for research workflows in this repository. The predicted duty is an initialization or proposal, not a direct SPICE-verified optimum.