# VeriCoder **Repository Path**: BugNotFoundX/VeriCoder ## Basic Information - **Project Name**: VeriCoder - **Description**: Verilog 生成模型 - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-16 - **Last Updated**: 2025-02-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # VeriCoder - Verilog 生成模型 - 开发环境见`Dockerfile` - python3.12 ## 文件结构 ```text . ├── fine_tuned_models/ ├── pretrained_models/ ├── processed_datasets/ ├── raw_datasets/ ├── .gitignore ├── config.py ├── dataset.py ├── Dockerfile ├── download.py ├── eval.py ├── README.md ├── requirements.txt ├── run.sh ├── train_lora.py ├── train_qlora.py └── utils.py ``` ## Usage ### 微调 依实际情况修改`config.py`中的参数,特别是`swanlab_api_key`,然后执行以下命令: ```bash pip3 install -r requirements.txt python3 download.py # 下载预训练模型和数据集 python3 dataset.py # 处理数据集 run.sh # ddp 训练 ``` docker 运行命令 ```bash docker run --gpus=all -it -d -v /mnt/d/projects/AI/VeriCoder:/app/VeriCoder -p 11434:11434 --name veri-coder veri-coder:latest ``` 运行 verilog-eval 测试 ```bash python3 eval.py --benchmark=verilog-eval --mode=Human ```