remove .pyc file and update readme

This commit is contained in:
laiyao1 2023-08-14 16:59:32 +08:00
parent 139b42a734
commit 20315a484a
7 changed files with 64 additions and 1 deletions

View File

@ -2,6 +2,69 @@
A new chip placement method based on visual representation learning. A new chip placement method based on visual representation learning.
### Publication
Lai, Yao, Yao Mu, and Ping Luo. "Maskplace: Fast chip placement via reinforced visual representation learning." Advances in Neural Information Processing Systems 35 (2022): 24019-24030. (NeurIPS 2022, **spotlight**)
[paper](https://arxiv.org/pdf/2211.13382.pdf)
### Usage
You can start easily by using the following script.
```
cd maskplace
python PPO2.py
```
### Parameter
- **gamma** Decay factor.
- **seed** Random seed.
- **disable_tqdm** Whether to disable the progress bar.
- **lr** Learning rate.
- **log-interval** Interval between training status logs.
- **pnm** Number of place modules for each placement trajectory.
- **benchmark** Circuit benchmark.
- **soft_coefficient** Whether to constriant the actions based on the wiremask.
- **batch_size** Batch size.
- **is_test** Testing mode based on the trained agent.
- **save_fig** Whether to save placement figures.
### Benchmark
The repo has provided the benchmark *adaptec1* and *ariane*. For other benchmarks, you can download them by the following the link:
http://www.cerc.utexas.edu/~zixuan/ispd2005dp.tar.xz
### Dependency
- [Python](https://www.python.org/) >= 3.9
- [Pytorch](https://pytorch.org/) >= 1.10
- Other versions may also work, but not tested
- [gym](https://www.gymlibrary.dev/index.html) >= 0.21.0
- [matplotlib](https://matplotlib.org/) >= 3.7.1
- [tqdm](https://tqdm.github.io/)
- [protobuf](https://pypi.org/project/protobuf/) (for benchmark *ariane*)
### Citation
If you find our paper/code useful in your research, please cite
```
@article{lai2022maskplace,
title={Maskplace: Fast chip placement via reinforced visual representation learning},
author={Lai, Yao and Mu, Yao and Luo, Ping},
journal={Advances in Neural Information Processing Systems},
volume={35},
pages={24019--24030},
year={2022}
}
```
### The placement process animation ### The placement process animation
Benchmark: Bigblue3 Benchmark: Bigblue3