This document gives the shortest practical path through the repository.
Complete setup first:
This is the best first command for a new user because it checks the config structure before creating any designs.
From the repository root:
python .\parallel_version\batch_processor.py validate-config --config .\parallel_version\config_examples\batch_config_pdk.jsonBefore running it, edit:
parallel_version/config_examples/batch_config_pdk.json
At minimum, set:
pdk_config.pdk_dirpdk_config.pdk_tech_dirsubstrate
If the config validates, you have the repository and environment wired together correctly.
From the repository root:
python .\parallel_version\batch_processor.py process-config --config .\parallel_version\config_examples\batch_config_pdk.jsonWhen prompted with Proceed with execution? [Y/n]:, answer Y.
This will:
- create or open the target workspace
- create the target library
- create designs from JSON files in
config_examples/json_layout/ - run EM simulations
- export results to the configured output directory
Recommended first-time behavior:
- keep
max_workerssmall - keep
batch_sizesmall - use the sample
json_layout/directory first
After the ADS flow produces .sNp files, switch to the ML environment and create an HDF5 dataset.
From the repository root:
python .\Data_process\HDF5_create\create_hdf5.py --json_dir .\parallel_version\config_examples\json_layout --snp_dir .\parallel_version\batch_results --output_dir .\Data_process\HDF5_create\datasetsThis groups compatible layouts and S-parameter files into HDF5 datasets. Only valid Touchstone files with readable frequency data are included.
After you have an HDF5 dataset, stay in the ML environment and train a checkpoint.
From Pytorch_Model/src/:
python train.py --hdf5_path "<path-to-your-dataset.h5>" --epochs 5 --batch_size 16 --checkpoint_name best_model_2ch_2port_16x16.pthIf you prefer to keep datasets under Pytorch_Model/data/, point --hdf5_path there explicitly.
Stay in the ML environment.
From Pytorch_Model/src/:
python tools\verify_model.py --hdf5_path "<path-to-your-dataset.h5>" --model_path ..\models\best_model_2ch_2port_16x16.pth --sample_index 0The repository does not ship large runtime assets in Git history:
- ADS workspaces
- batch results
- HDF5 datasets
- trained model checkpoints
So a new user should expect to either:
- generate data locally, or
- add externally stored datasets/checkpoints later