Views
No views yet
gtn-base-v6.0 reward-calibrated GTN surrogate checkpoint for shared-energy power-converter topology evaluation.gtn-base-v5, which predicts only physical simulator targets,
gtn-base-v6.0 keeps the v5 GTN surrogate backbone and adds a target-gamma-conditioned reward calibration head:1f_theta(T, d) -> (efficiency, Vout)
2g_phi(embedding(T, d), target_gamma, f_theta(T, d)) -> calibrated_rewardT is the power-converter topology graph.d is the duty cycle.target_gamma is the target normalized output-voltage ratio.calibrated_reward is the reward-calibrated fan reward used for topology/duty scoring.shared_energy.gtn_surrogate.GTNRewardCalibratedSurrogateModelshared_energy codebase must be importable.1from huggingface_hub import hf_hub_download
2import torch
3from shared_energy.gtn_surrogate import GTNRewardCalibratedSurrogateModel
4
5repo_id = "DanielJeongsooLee/gtn-base-v6.0"
6checkpoint_path = hf_hub_download(
7 repo_id=repo_id,
8 filename="gtn_reward_calibrated_surrogate_model.pt",
9)
10
11payload = torch.load(checkpoint_path, map_location="cpu")
12model = GTNRewardCalibratedSurrogateModel(**payload["model_config"])
13model.load_state_dict(payload["model_state_dict"])
14model.eval()model.predict_with_reward(...) with graph tensors and a target_gamma tensor. The returned dictionary contains:1prediction # [efficiency, Vout]
2analytic_reward # eta * fan_delta(Vout, target_gamma)
3reward # calibrated reward, clamped to [0, 1]
4reward_residual # learned residual added to analytic_reward
5reward_features # reward-head input features derived from prediction and target_gammagtn_base_v6_0_reward_calibrateddataset/gtn_dataset_5comp_v2_corrected_5000c_cleaned.jsonl57024741312564, validation 70, test 70593892, validation 73710, test 737100, train/test 0, val/test 08078Trueartifacts/gtn_base_v5_toposplit_cleaned/gtn_surrogate_model.pt[-3.0, -2.5, -2.0, -1.5, -1.0, -0.5, 0.25, 0.5, 0.75, 1.5, 2.0, 2.5, 3.0]gtn-base-v5 and trained with the surrogate base frozen. The newly added reward calibration head predicts a residual on top of the analytic fan reward:calibrated_reward = clamp(analytic_reward + residual, 0, 1)loss = lambda_reward * reward_loss + lambda_residual * residual_regularization + lambda_phys * physical_prediction_loss1{
2 "lambda_phys": 0.0,
3 "lambda_residual": 0.01,
4 "lambda_reward": 1.0,
5 "warmup_epochs": 0
6}1{
2 "val_analytic_reward_mae": 0.006970888003706932,
3 "val_analytic_reward_mae_ge_0p1": 0.09695614129304886,
4 "val_analytic_reward_mae_ge_0p5": 0.11839184165000916,
5 "val_analytic_reward_rmse": 0.03858204558491707,
6 "val_mse": 70.92378234863281,
7 "val_reward_mae": 0.004141189623624086,
8 "val_reward_mae_ge_0p1": 0.04318135604262352,
9 "val_reward_mae_ge_0p5": 0.05086888372898102,
10 "val_reward_rmse": 0.026247916743159294,
11 "val_rse_efficiency": 0.05786222591996193,
12 "val_rse_mean": 0.034220974426716566,
13 "val_rse_vout": 0.010579722933471203
14}1{
2 "test_analytic_reward_mae": 0.008163928054273129,
3 "test_analytic_reward_mae_ge_0p1": 0.11714919656515121,
4 "test_analytic_reward_mae_ge_0p5": 0.12885914742946625,
5 "test_analytic_reward_rmse": 0.04117625579237938,
6 "test_mse": 36.0149040222168,
7 "test_reward_mae": 0.004424168728291988,
8 "test_reward_mae_ge_0p1": 0.05401118844747543,
9 "test_reward_mae_ge_0p5": 0.061262767761945724,
10 "test_reward_rmse": 0.021638687700033188,
11 "test_rse_efficiency": 0.05090036243200302,
12 "test_rse_mean": 0.027539070695638657,
13 "test_rse_vout": 0.004177778959274292
14}0.041176255792379380.0216386877000331880.0081639280542731290.004424168728291988gtn_reward_calibrated_surrogate_model.pt: PyTorch checkpoint with model config, state dict, target names, target gammas, and training metadata.manifest.json: Training summary and final validation/test metrics.training_history.jsonl: Per-epoch training and validation history.README.md: This model card.1{
2 "manifest": "artifacts/gtn_base_v6_0_reward_calibrated/manifest.json",
3 "model": "artifacts/gtn_base_v6_0_reward_calibrated/gtn_reward_calibrated_surrogate_model.pt",
4 "test_predictions": "artifacts/gtn_base_v6_0_reward_calibrated/test_predictions.jsonl",
5 "training_history": "artifacts/gtn_base_v6_0_reward_calibrated/training_history.jsonl",
6 "validation_predictions": "artifacts/gtn_base_v6_0_reward_calibrated/validation_predictions.jsonl"
7}