abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.

yuhanqin/ut-rsi

published by @yuhanqin

Passed the relevance filter but does not cleanly map to a stage.Fits the catalog's topic, but no single step.

language:zhlanguage:enlicense:apache-2.0size_categories:n<1Kformat:textmodality:textlibrary:datasetslibrary:mlcroissant +6 more
Lifetime downloads
1.5K
Last 30 days
1.4K
Likes
-
Size
14.1 MB

Description

UT-RSI 红蓝对抗与自我进化框架 (Red + Blue AutoBench + Multi-Round)

本目录为 UT-RSI 完整红蓝对抗框架交付包(ut-rsi-20261110),支持以下三种运行模式:

生成 Bug(Red Team):基于 responsibility-v2 8×4×6 三维正交 Bug Space(Where Component × What Feature × How Failure Mode),支持不放回策略采样、cannot_generate 自报告与 Synopsys Formality 形式化非等价验证(每个槽位最多尝试 3 次)。

生成 UT(Blue Team / AutoBench 方法):集成完整的 autobench/WF_pychecker.py 分阶段流水线(Stage 0–5 + Checklist),根据 Spec 和 Golden RTL 自动生成 Verilog Testbench 与 Python Golden Checker,并通过 Golden RTL 自检。… See the full description on the dataset page: https://huggingface.co/datasets/yuhanqin/ut-rsi.

Used by uncensored models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.No model in our catalog lists this dataset yet. It may be used without being listed, used for other work, or simply be new. The list fills in by itself as models are added.

MetadataDetails

License
apache-2.0
Languages
zhen
Created on HFCreated
2026-10-30 · 1 months ago
Size category
n<1K
ModalitiesData types
text
Formats
text
LibrariesTools
datasetsmlcroissant

Related datasets same stage · Miscsame step · Other

Read further

Total size
14.1 MB
Files
556
Formats
py, yaml, txt
Head
df2ec92
Last updated on HFLast updated
2026-11-13

Download the dataset

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.Each of these lines of code downloads the dataset straight from Hugging Face, with your own Hugging Face login.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("yuhanqin/ut-rsi")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="yuhanqin/ut-rsi", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/yuhanqin/ut-rsi

Files by folder from our last crawlfrom our last check

top level 10 files 206.4 KB
.gitattributes 2.5 KB file download
formality.example.yaml 454 B yaml download
generate_bugs.py 16.1 KB py download
generate_ut.py 3.7 KB py download
main.py 140 B py download
README.md 11.4 KB md download
requirements.txt 13 B txt download
SHA256SUMS 61.0 KB file download
SOURCE_MANIFEST.json 99.7 KB json download
USAGE.zh-CN.md 11.4 KB md download
autobench/ 37 files 3.7 MB
analyze.py 39.8 KB py download
autoline.py 40.7 KB py download
config/config.py 9.4 KB py download
config/custom_history_shift_normalized.yaml 627 B yaml download
config/custom_history_shift.yaml 599 B yaml download
config/default.yaml 4.4 KB yaml download
config/templates/script_template/mutant_template.txt 986 B txt download
config/templates/script_template/RTL_template.txt 538 B txt download
data/HDLBits/HDLBits_circuit_type.jsonl 7.5 KB jsonl download
data/HDLBits/HDLBits_data_manager.py 24.4 KB py download
data/HDLBits/HDLBits_data_mutants.jsonl 627.1 KB jsonl download
data/HDLBits/HDLBits_data_RTL.jsonl 1.1 MB jsonl download
data/HDLBits/HDLBits_data.jsonl 841.9 KB jsonl download
data/HDLBits/original_data_human/VerilogDescription_Human.jsonl 101.7 KB jsonl download
data/HDLBits/original_data_human/VerilogEval_Human.jsonl 726.8 KB jsonl download
data/history_shift.normalized.jsonl 1.9 KB jsonl download
data/probset.py 9.1 KB py download
iverilog_call.py 5.7 KB py download
LICENSE 1.1 KB file download
LLM_call.py 12.3 KB py download
loader_saver.py 10.4 KB py download
main.py 2.9 KB py download
opencode_adapter.json 1.3 KB json download
prompt_scripts/__init__.py 586 B py download
prompt_scripts/base_script.py 12.1 KB py download
prompt_scripts/public_stages.py 9.2 KB py download
prompt_scripts/script_directgen.py 2.3 KB py download
prompt_scripts/script_pychecker_CMB.py 15.2 KB py download
prompt_scripts/script_pychecker_SEQ.py 38.8 KB py download
prompt_scripts/script_pychecker.py 16.8 KB py download
prompt_scripts/utils.py 26.7 KB py download
python_call.py 2.5 KB py download
README.md 8.7 KB md download
requirements.txt 99 B txt download
subproc.py 1.7 KB py download
utils/json_utils.py 2.7 KB py download
utils/utils.py 5.3 KB py download
baselines/ 297 files 7.4 MB
confibench/analyze.py 52.2 KB py download
confibench/autoline/__init__.py 817 B py download
confibench/autoline/TB_autoline.py 27.1 KB py download
confibench/autoline/TB1_gen.py 1.5 KB py download
confibench/autoline/TB2_syncheck.py 20.3 KB py download
confibench/autoline/TB3_funccheck.py 53.9 KB py download
confibench/autoline/TB4_eval.py 15.5 KB py download
confibench/autoline/test/correct_check.py 5.9 KB py download
confibench/autoline/test/discrim_check.py 18.4 KB py download
confibench/autoline/test/log.txt 3.1 KB txt download
confibench/autorun.py 5.6 KB py download
confibench/baseline_interface/__init__.py py download
confibench/baseline_interface/header_extract.py 4.6 KB py download
confibench/baseline_interface/industrial_interface.py 21.4 KB py download
confibench/baseline_interface/verilog_lex.py 4.4 KB py download
confibench/confibench_ablation.py 12.8 KB py download
confibench/confidence.py 28.2 KB py download
confibench/config/__init__.py 167 B py download
confibench/config/config.py 13.5 KB py download
confibench/config/configs/4omini_autobench.yaml 468 B yaml download
confibench/config/configs/4omini_baseline.yaml 467 B yaml download
confibench/config/configs/4omini_confibench.yaml 1.4 KB yaml download
confibench/config/configs/4omini_correctbench.yaml 666 B yaml download
confibench/config/configs/autobench.yaml 456 B yaml download
confibench/config/configs/baseline.yaml 455 B yaml download
confibench/config/configs/claude_autobench.yaml 592 B yaml download
confibench/config/configs/claude_baseline.yaml 480 B yaml download
confibench/config/configs/claude_correctbench.yaml 799 B yaml download
confibench/config/configs/confibench.yaml 868 B yaml download
confibench/config/configs/correctbench.yaml 657 B yaml download
confibench/config/configs/demo_ConfiBench.yaml 1.4 KB yaml download
confibench/config/configs/demo_CorrectBench.yaml 643 B yaml download
confibench/config/configs/disc_50wrong_25correct.yaml 661 B yaml download
confibench/config/configs/disc_70wrong_25correct.yaml 661 B yaml download
confibench/config/custom.yaml 908 B yaml download
confibench/config/default.yaml 7.0 KB yaml download
confibench/config/initial_prompts/prompt1.txt 7.9 KB txt download
confibench/config/initial_prompts/prompt2.txt 718 B txt download
confibench/config/initial_prompts/prompt3.txt 5.6 KB txt download
confibench/config/smoke_history_shift.yaml 963 B yaml download
confibench/config/templates/config_templates/discrim.yaml 224 B yaml download
confibench/config/templates/config_templates/MutantGen.yaml 292 B yaml download
confibench/config/templates/config_templates/prompt_chat.yaml 271 B yaml download
confibench/config/templates/config_templates/proset_autoline.yaml 332 B yaml download
confibench/config/templates/config_templates/single_autoline.yaml 356 B yaml download
confibench/config/templates/config_templates/TBeval_partly.yaml 420 B yaml download
confibench/config/templates/script_template/directgen_template.txt 620 B txt download
confibench/config/templates/script_template/DUT_stage_template_0306.txt 7.5 KB txt download
confibench/config/templates/script_template/legacy/DUT_stage_template_0306ex.txt 9.0 KB txt download
confibench/config/templates/script_template/legacy/DUT_stage_template_nostage3.txt 7.8 KB txt download
confibench/config/templates/script_template/legacy/DUT_stage_template_scenachecker.txt 11.1 KB txt download
confibench/config/templates/script_template/legacy/goldenDUT_direct_template.txt 1.5 KB txt download
confibench/config/templates/script_template/legacy/goldenDUT_stage_template_0306.txt 4.8 KB txt download
confibench/config/templates/script_template/legacy/rtlflow_template.txt 6.0 KB txt download
confibench/config/templates/script_template/legacy/stage_template0221.txt 6.6 KB txt download
confibench/config/templates/script_template/legacy/stage_template0306.txt 7.3 KB txt download
confibench/config/templates/script_template/mutant_template.txt 986 B txt download
confibench/config/templates/script_template/pycheck_template.txt 6.2 KB txt download
confibench/config/templates/script_template/RTL_template.txt 538 B txt download
confibench/data/HDLBits/HDLBits_circuit_type.jsonl 7.5 KB jsonl download
confibench/data/HDLBits/HDLBits_data_CMB15.jsonl 70.0 KB jsonl download
confibench/data/HDLBits/HDLBits_data_manager.py 27.4 KB py download
confibench/data/HDLBits/HDLBits_data_microset.jsonl 28.6 KB jsonl download
confibench/data/HDLBits/HDLBits_data_miniset.jsonl 113.6 KB jsonl download
confibench/data/HDLBits/HDLBits_data_mutants.jsonl 627.1 KB jsonl download
confibench/data/HDLBits/HDLBits_data_SEQ15.jsonl 77.1 KB jsonl download
confibench/data/HDLBits/HDLBits_data.jsonl 841.9 KB jsonl download
confibench/data/history_shift/HDLBits_data_mini.jsonl 1.9 KB jsonl download
confibench/data/industrial/oc_i2c.jsonl 85.6 KB jsonl download
confibench/data/probset.py 10.9 KB py download
confibench/figs/ConfiBench_Workflow.svg 94.9 KB svg download
confibench/iverilog_call.py 5.7 KB py download
confibench/LICENSE 1.1 KB file download
confibench/LLM_call.py 14.9 KB py download
confibench/loader_saver.py 22.0 KB py download
confibench/main.py 2.0 KB py download
confibench/prompt_scripts/__init__.py 1.3 KB py download
confibench/prompt_scripts/base_script.py 12.4 KB py download
confibench/prompt_scripts/legacy/script_pychecker_20240403.py 15.1 KB py download
confibench/prompt_scripts/legacy/script_pychecker_claude.py 18.3 KB py download
confibench/prompt_scripts/legacy/script_pychecker_CMB_modified.py 15.4 KB py download
confibench/prompt_scripts/legacy/script_pychecker.py 45.1 KB py download
confibench/prompt_scripts/legacy/script_RTLchecker0306.py 17.1 KB py download
confibench/prompt_scripts/legacy/script_RTLmulticheckers.py 23.4 KB py download
confibench/prompt_scripts/legacy/script_test.py 2.4 KB py download
confibench/prompt_scripts/legacy/script_under_tuning.py 44.2 KB py download
confibench/prompt_scripts/public_stages.py 251 B py download
confibench/prompt_scripts/script_directgen.py 2.3 KB py download
confibench/prompt_scripts/script_pychecker_CMB_new.py 16.8 KB py download
confibench/prompt_scripts/script_pychecker_CMB.py 15.1 KB py download
confibench/prompt_scripts/script_pychecker_SEQ.py 28.8 KB py download
confibench/prompt_scripts/script_pychecker.py 17.0 KB py download
confibench/prompt_scripts/utils.py 34.0 KB py download
confibench/python_call.py 2.4 KB py download
confibench/README.md 9.7 KB md download
confibench/requirements.txt 182 B txt download
confibench/utils/json_utils.py 2.7 KB py download
confibench/utils/subproc.py 1.7 KB py download
confibench/utils/utils.py 8.4 KB py download
correctbench/analyze.py 44.6 KB py download
correctbench/autoline/__init__.py 817 B py download
correctbench/autoline/TB_autoline.py 18.4 KB py download
correctbench/autoline/TB1_gen.py 1.5 KB py download
correctbench/autoline/TB2_syncheck.py 20.3 KB py download
correctbench/autoline/TB3_funccheck.py 54.0 KB py download
correctbench/autoline/TB4_eval.py 12.1 KB py download
correctbench/autorun.py 5.6 KB py download
correctbench/baseline_interface/__init__.py py download
correctbench/baseline_interface/header_extract.py 4.6 KB py download
correctbench/baseline_interface/industrial_interface.py 21.4 KB py download
correctbench/baseline_interface/verilog_lex.py 4.4 KB py download
correctbench/config/__init__.py 167 B py download
correctbench/config/config.py 12.6 KB py download
correctbench/config/configs/4omini_autobench.yaml 433 B yaml download
correctbench/config/configs/4omini_baseline.yaml 432 B yaml download
correctbench/config/configs/4omini_correctbench.yaml 631 B yaml download
correctbench/config/configs/autobench.yaml 421 B yaml download
correctbench/config/configs/baseline.yaml 420 B yaml download
correctbench/config/configs/claude_autobench.yaml 446 B yaml download
correctbench/config/configs/claude_baseline.yaml 445 B yaml download
correctbench/config/configs/claude_correctbench.yaml 650 B yaml download
correctbench/config/configs/correctbench.yaml 623 B yaml download
correctbench/config/configs/demo.yaml 630 B yaml download
correctbench/config/configs/disc_50wrong_25correct.yaml 633 B yaml download
correctbench/config/configs/disc_70wrong_25correct.yaml 633 B yaml download
correctbench/config/configs/disc_fullwrong.yaml 612 B yaml download
correctbench/config/custom.yaml 623 B yaml download
correctbench/config/default.yaml 5.5 KB yaml download
correctbench/config/initial_prompts/prompt1.txt txt download
correctbench/config/initial_prompts/prompt2.txt txt download
correctbench/config/initial_prompts/prompt3.txt txt download
correctbench/config/smoke_history_shift.yaml 1.2 KB yaml download
correctbench/config/smoke_oc_i2c.yaml 977 B yaml download
correctbench/config/templates/config_templates/discrim.yaml 224 B yaml download
correctbench/config/templates/config_templates/MutantGen.yaml 292 B yaml download
correctbench/config/templates/config_templates/prompt_chat.yaml 271 B yaml download
correctbench/config/templates/config_templates/proset_autoline.yaml 332 B yaml download
correctbench/config/templates/config_templates/single_autoline.yaml 356 B yaml download
correctbench/config/templates/config_templates/TBeval_partly.yaml 420 B yaml download
correctbench/config/templates/script_template/directgen_template.txt 620 B txt download
correctbench/config/templates/script_template/DUT_stage_template_0306.txt 7.5 KB txt download
correctbench/config/templates/script_template/legacy/DUT_stage_template_0306ex.txt 9.0 KB txt download
correctbench/config/templates/script_template/legacy/DUT_stage_template_nostage3.txt 7.8 KB txt download
correctbench/config/templates/script_template/legacy/DUT_stage_template_scenachecker.txt 11.1 KB txt download
correctbench/config/templates/script_template/legacy/goldenDUT_direct_template.txt 1.5 KB txt download
correctbench/config/templates/script_template/legacy/goldenDUT_stage_template_0306.txt 4.8 KB txt download
correctbench/config/templates/script_template/legacy/rtlflow_template.txt 6.0 KB txt download
correctbench/config/templates/script_template/legacy/stage_template0221.txt 6.6 KB txt download
correctbench/config/templates/script_template/legacy/stage_template0306.txt 7.3 KB txt download
correctbench/config/templates/script_template/mutant_template.txt 986 B txt download
correctbench/config/templates/script_template/pycheck_template.txt 6.2 KB txt download
correctbench/config/templates/script_template/RTL_template.txt 538 B txt download
correctbench/data/HDLBits/HDLBits_circuit_type.jsonl 7.5 KB jsonl download
correctbench/data/HDLBits/HDLBits_data_manager.py 27.4 KB py download
correctbench/data/HDLBits/HDLBits_data_mutants.jsonl 627.1 KB jsonl download
correctbench/data/HDLBits/HDLBits_data.jsonl 841.9 KB jsonl download
correctbench/data/history_shift/HDLBits_data_mini.jsonl 1.9 KB jsonl download
correctbench/data/industrial/oc_i2c.jsonl 85.6 KB jsonl download
correctbench/data/probset.py 10.9 KB py download
correctbench/figs/CorrectBench_Workflow.svg 67.0 KB svg download
correctbench/figs/DATE2024_logo_blue_flat.png 4.5 KB png download
correctbench/figs/DATE2025_logo_blue_shadow.png 32.9 KB png download
correctbench/iverilog_call.py 5.7 KB py download
correctbench/LICENSE 1.1 KB file download
correctbench/LLM_call.py 14.9 KB py download
correctbench/loader_saver.py 21.8 KB py download
correctbench/main.py 2.0 KB py download
correctbench/prompt_scripts/__init__.py 586 B py download
correctbench/prompt_scripts/base_script.py 12.4 KB py download
correctbench/prompt_scripts/legacy/script_RTLchecker0306.py 17.1 KB py download
correctbench/prompt_scripts/public_stages.py 251 B py download
correctbench/prompt_scripts/script_directgen.py 2.3 KB py download
correctbench/prompt_scripts/script_pychecker_CMB_new.py 16.8 KB py download
correctbench/prompt_scripts/script_pychecker_SEQ.py 28.8 KB py download
correctbench/prompt_scripts/script_pychecker.py 17.0 KB py download
correctbench/prompt_scripts/utils.py 34.0 KB py download
correctbench/python_call.py 2.4 KB py download
correctbench/README.md 9.3 KB md download
correctbench/requirements.txt 139 B txt download
correctbench/utils/json_utils.py 2.7 KB py download
correctbench/utils/subproc.py 1.7 KB py download
correctbench/utils/utils.py 8.4 KB py download
pro-v/.gitignore 958 B file download
pro-v/activate.sh 963 B sh download
pro-v/fig/iccad_pro_v.png 191.9 KB png download
pro-v/fig/Sampling_ablation.pdf 26.3 KB pdf download
pro-v/fig/Sampling_motivation.pdf 18.5 KB pdf download
pro-v/fig/TBD_horizontal.pdf 10.5 KB pdf download
pro-v/fig/TBD_vertical.pdf 12.5 KB pdf download
pro-v/figures/latency_distribution_plot.png 219.9 KB png download
pro-v/icts_verify_golden.py 6.8 KB py download
pro-v/plot_latency_distribution.py 3.0 KB py download
pro-v/pro_v/__init__.py 468 B py download
pro-v/pro_v/agent/__init__.py 274 B py download
pro-v/pro_v/agent/gen_tb.py 10.8 KB py download
pro-v/pro_v/agent/pychecker.py 23.4 KB py download
pro-v/pro_v/agent/verifier.py 9.6 KB py download
pro-v/pro_v/back_up/__init__.py 251 B py download
pro-v/pro_v/back_up/check_consistency.py 11.6 KB py download
pro-v/pro_v/back_up/judge_for_RTL.py 14.9 KB py download
97 more files in baselines on Hugging Face ↗
configs/ 1 file 1.2 KB
history-shift-bugspace-8x4x6.yaml 1.2 KB yaml download
data/ 2 files 8.7 KB
HDLBits_circuit_type.jsonl 52 B jsonl download
HDLBits_data.jsonl 8.7 KB jsonl download
engine/ 207 files 2.8 MB
__init__.py 79 B py download
__main__.py 984 B py download
blue/__init__.py 167 B py download
blue/autobench_interface.py 54.9 KB py download
blue/autobench_prompt_contract.py 8.7 KB py download
blue/autobench_semantics.py 54.0 KB py download
blue/autobench_upgrade.py 18.8 KB py download
blue/autobench_worker.py 31.9 KB py download
blue/autobench_wrapper.py 18.4 KB py download
blue/autobench.py 38.2 KB py download
blue/candidate_errors.py 8.2 KB py download
blue/generator.py 6.8 KB py download
blue/golden_repair.py 28.3 KB py download
blue/ochiai.py 2.3 KB py download
blue/prompts/extract-autobench-skills.md 2.3 KB md download
blue/prompts/extract-skills.md 2.2 KB md download
blue/prompts/regenerate-native.md 1.6 KB md download
blue/prompts/repair-agent-v2.md 2.4 KB md download
blue/prompts/repair-autobench.md 2.8 KB md download
blue/prompts/repair-interface-v4.md 1.6 KB md download
blue/prompts/repair-ut.md 2.0 KB md download
blue/prompts/review-repair.md 1.9 KB md download
blue/repair_model_view.py 3.0 KB py download
blue/repair_policy.py 3.6 KB py download
blue/repair_prefix.py 13.0 KB py download
blue/repair_semantics.py 13.3 KB py download
blue/repair_transport.py 22.6 KB py download
blue/repair_v1.py 24.8 KB py download
blue/repair.py 63.0 KB py download
blue/upgrade_protocol.py 9.8 KB py download
blue/upgrade.md 9.1 KB md download
blue/upgrade.py 25.4 KB py download
budget_continuation.py 23.8 KB py download
candidate_error_continuation.py 17.5 KB py download
classification_recovery.py 38.9 KB py download
closed_noaction_continuation.py 45.7 KB py download
common/__init__.py 220 B py download
common/file_inputs.py 3.0 KB py download
common/formality.py 10.6 KB py download
common/llm.py 8.1 KB py download
common/native_failure.py 19.8 KB py download
common/native_inputs.py 13.5 KB py download
common/native_model_view.py 2.9 KB py download
common/opencode.py 22.2 KB py download
common/paths.py 267 B py download
common/progress.py 695 B py download
common/prompts/clean-context.md 332 B md download
common/prompts/file-read-context.md 2.0 KB md download
common/prompts/native-attachment-context.md 1.7 KB md download
common/prompts/native-clean-context.md 1.2 KB md download
common/prompts/native-file-read-context.md 2.6 KB md download
common/storage.py 4.4 KB py download
common/structured_opencode.py 106.0 KB py download
common/structured_tool_contract.mjs 2.2 KB mjs download
common/sync_tail.py 13.0 KB py download
common/thinking_tool_contract_v2.mjs 3.4 KB mjs download
common/types.py 2.9 KB py download
common/validated_review.py 12.0 KB py download
common/verilog_lex.py 4.6 KB py download
config.py 9.3 KB py download
generation_continuation.py 19.1 KB py download
history.py 12.3 KB py download
initial_protocol_reconciliation.py 20.0 KB py download
judge/__init__.py 95 B py download
judge/autobench_runner.py 3.0 KB py download
judge/autobench.py 8.3 KB py download
judge/protocol.md 4.4 KB md download
judge/simulator.py 13.4 KB py download
length_continuation.py 21.2 KB py download
parallel_round.py 20.0 KB py download
red/__init__.py 98 B py download
red/bug_tree.py 10.7 KB py download
red/candidate_review.py 8.2 KB py download
red/classification.py 34.4 KB py download
red/generation_contract.py 20.2 KB py download
red/generation_inputs.py 8.4 KB py download
red/generator.py 44.4 KB py download
red/novelty.py 13.3 KB py download
red/projector.py 27.9 KB py download
red/prompts/adjudicate-responsibility-v2.md 1.7 KB md download
red/prompts/adjudicate-v4.md 1.3 KB md download
red/prompts/classify-bug-responsibility-v2.md 3.1 KB md download
red/prompts/classify-bug.md 4.0 KB md download
red/prompts/confirm-add-responsibility-v2.md 2.0 KB md download
red/prompts/confirm-add.md 1.4 KB md download
red/prompts/confirm-remap-responsibility-v2.md 2.1 KB md download
red/prompts/confirm-remap.md 1.2 KB md download
red/prompts/generate-bug.md 3.0 KB md download
red/prompts/initialize-responsibility-v2.md 2.8 KB md download
red/prompts/initialize-v4.md 4.2 KB md download
red/prompts/inputs-v4.md 282 B md download
red/prompts/review-bug-naturality.md 2.2 KB md download
red/prompts/review-bug.md 3.4 KB md download
red/prompts/review-feedback.md 1.3 KB md download
red/prompts/review-no-new-bug.md 2.0 KB md download
red/prompts/review-responsibility-v2.md 2.2 KB md download
red/prompts/review-v4.md 3.7 KB md download
red/prompts/upgrade-op-experience.md 2.7 KB md download
red/qualification.py 4.5 KB py download
red/review_contract.py 9.4 KB py download
red/review.py 4.5 KB py download
red/rtl_patch.py 8.2 KB py download
red/runtime.py 15.0 KB py download
red/taxonomy.py 11.9 KB py download
red/tree/__init__.py 11.4 KB py download
red/tree/definitions/bug_tree/adder.yaml 1.8 KB yaml download
red/tree/definitions/bug_tree/apb.yaml 1.8 KB yaml download
red/tree/definitions/bug_tree/arbiter.yaml 1.5 KB yaml download
red/tree/definitions/bug_tree/axi.yaml 1.9 KB yaml download
red/tree/definitions/bug_tree/buffer.yaml 1.7 KB yaml download
red/tree/definitions/bug_tree/cache.yaml 2.1 KB yaml download
red/tree/definitions/bug_tree/counter.yaml 1.3 KB yaml download
red/tree/definitions/bug_tree/decoder.yaml 1.4 KB yaml download
red/tree/definitions/bug_tree/encoder.yaml 1.5 KB yaml download
red/tree/definitions/bug_tree/fifo.yaml 1.9 KB yaml download
red/tree/definitions/bug_tree/memory.yaml 1.7 KB yaml download
red/tree/definitions/bug_tree/multiplier.yaml 1.8 KB yaml download
red/tree/definitions/bug_tree/synchronizer.yaml 1.9 KB yaml download
red/tree/definitions/ops.yaml 2.6 KB yaml download
red/tree/responsibility-v2-mappings.json 2.0 KB json download
red/tree/responsibility-v2.json 21.7 KB json download
red/upgrade.md 5.7 KB md download
red/upgrade.py 19.7 KB py download
repair_contract_continuation.py 27.9 KB py download
repair_reconciliation.py 26.5 KB py download
review_continuation.py 18.6 KB py download
startup_continuation.py 19.0 KB py download
sync_tail_continuation.py 35.6 KB py download
tests/fixtures/taxonomy-v2-audit.json 74.5 KB json download
tests/repair_wire.py 469 B py download
tests/taxonomy_audit_rules.py 4.9 KB py download
tests/test_autobench_bridge.py 18.3 KB py download
tests/test_autobench_events_v1_native.py 12.8 KB py download
tests/test_autobench_events_v1.py 12.2 KB py download
tests/test_autobench_interface_repeat_native.py 12.2 KB py download
tests/test_autobench_interface.py 8.1 KB py download
tests/test_autobench_judge.py 3.1 KB py download
tests/test_autobench_repair.py 18.3 KB py download
tests/test_autobench_role_prompts.py 8.6 KB py download
tests/test_autobench_semantics.py 19.4 KB py download
tests/test_autobench_timing_policy_native.py 9.3 KB py download
tests/test_autobench_timing_policy.py 13.0 KB py download
tests/test_autobench_upgrade.py 6.8 KB py download
tests/test_autobench_worker_metadata.py 4.7 KB py download
tests/test_blind_judge.py 26.6 KB py download
tests/test_blue_argument_contract.py 7.9 KB py download
tests/test_blue_pending_reconciliation.py 21.8 KB py download
tests/test_blue_upgrade.py 56.8 KB py download
tests/test_budget_continuation.py 16.4 KB py download
tests/test_budget_exhaustion.py 14.0 KB py download
tests/test_candidate_error_recovery.py 22.0 KB py download
tests/test_classification_recovery.py 26.3 KB py download
tests/test_classification.py 21.2 KB py download
tests/test_closed_noaction_boundaries.py 5.7 KB py download
tests/test_closed_noaction.py 24.7 KB py download
tests/test_complete_candidate_chain.py 14.7 KB py download
tests/test_feedback_acceptance.py 9.9 KB py download
tests/test_feedback_quote_diagnostics.py 1.4 KB py download
tests/test_formality_top.py 3.3 KB py download
tests/test_generation_contract.py 24.2 KB py download
tests/test_generation_files.py 33.7 KB py download
tests/test_generation_lifecycle.py 29.6 KB py download
tests/test_generation_reimport.py 2.1 KB py download
tests/test_golden_repair.py 21.4 KB py download
tests/test_header_extraction.py 11.0 KB py download
tests/test_initial_protocol_negatives.py 6.4 KB py download
tests/test_json_output_mode.py 14.6 KB py download
tests/test_length_continuation.py 20.0 KB py download
tests/test_live_causal_contract.py 3.9 KB py download
tests/test_multiple_structured_data.py 22.5 KB py download
tests/test_multispec_config.py 2.5 KB py download
tests/test_native_diagnostic_model_view.py 7.9 KB py download
tests/test_native_inputs.py 18.1 KB py download
tests/test_native_startup_retry.py 6.4 KB py download
tests/test_native_string_enum.py 2.0 KB py download
tests/test_nonthinking_multiple.py 7.0 KB py download
tests/test_novelty.py 31.4 KB py download
tests/test_op_shrink.py 3.9 KB py download
tests/test_opencode_transport.py 21.2 KB py download
tests/test_parallel_round.py 7.1 KB py download
tests/test_prompt_audit.py 3.4 KB py download
tests/test_pruning.py 32.0 KB py download
tests/test_qualified_quota.py 4.6 KB py download
tests/test_red_upgrade.py 30.8 KB py download
tests/test_repair_contract_continuation.py 14.6 KB py download
tests/test_repair_loop.py 21.5 KB py download
tests/test_repair_native_transport.py 13.9 KB py download
tests/test_repair_producer.py 9.4 KB py download
tests/test_repair_protocol_recovery.py 21.0 KB py download
tests/test_repair_text_transport.py 6.8 KB py download
tests/test_repair.py 25.4 KB py download
tests/test_review_loop.py 39.9 KB py download
tests/test_review_profile.py 4.4 KB py download
tests/test_rtl_patch_integration.py 5.3 KB py download
tests/test_rtl_patch.py 9.2 KB py download
tests/test_startup_continuation.py 10.9 KB py download
tests/test_structured_output.py 51.7 KB py download
tests/test_structured_tool_contract.py 3.9 KB py download
tests/test_sync_tail_continuation.py 13.3 KB py download
tests/test_sync_tail.py 10.5 KB py download
7 more files in engine on Hugging Face ↗
inputs/ 2 files 1.1 KB
golden.v 393 B v download
spec.json 732 B json download

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

UT-RSI 红蓝对抗与自我进化框架 (Red + Blue AutoBench + Multi-Round)

本目录为 UT-RSI 完整红蓝对抗框架交付包(ut-rsi-20261110),支持以下三种运行模式:

  1. 生成 Bug(Red Team):基于 responsibility-v2 8×4×6 三维正交 Bug Space(Where Component × What Feature × How Failure Mode),支持不放回策略采样、cannot_generate 自报告与 Synopsys Formality 形式化非等价验证(每个槽位最多尝试 3 次)。
  2. 生成 UT(Blue Team / AutoBench 方法):集成完整的 autobench/WF_pychecker.py 分阶段流水线(Stage 0–5 + Checklist),根据 Spec 和 Golden RTL 自动生成 Verilog Testbench 与 Python Golden Checker,并通过 Golden RTL 自检。
  3. 多轮红蓝对抗与自我进化(Multi-Round Adversarial Loop):
    • 第 0 阶段(初始化):由 Blue Team 通过 AutoBench 从零生成初始 ut_0000(或通过 initial_ut 导入已有基线 UT),同时由 Red Team 完成 Golden RTL Review 与 8×4×6 相关性投影。
    • 第 $1 \dots N$ 轮对抗:
      1. 串行不放回策略采样:在主进程中为当轮每个并行槽位(如 bug_workers: 4)预采样 red_generate_attempts(默认 3)个互不重复的 (Where, What, How) 策略三元组;
      2. 并行生成 Bug + Formality 验证 + Judge 仿真检测 + 3D 分类:4 个槽位并行运行,若槽位输出 cannot_generate 或被 Formality 判定为 equivalent,自动回退到该槽位的第 2、第 3 个预采样策略;若 3 次均未产出非等价 Bug,则跳过该槽位;
      3. 串行修复 UT(Blue Repair):汇集当轮所有存活并逃逸当前 UT 的非等价 Bug(ESCAPE),由 Blue Team 顺序增量修补 Testbench,生成 ut_0001, ut_0002...,并通过历史 Bug 回归门禁(单调不退化)与 Golden RTL 门禁;
      4. 轮末经验沉淀(Upgrade):Red Team 与 Blue Team 根据当轮战果各自更新持久化的 skill.md。

1. 目录结构

ut-rsi-20261110/
├── README.md                    # 本使用说明文档
├── USAGE.zh-CN.md               # 中文详细使用说明(与 README 同步)
├── main.py                      # 【入口 1】多轮红蓝对抗主入口(AutoBench 初始 UT + 多轮对抗)
├── generate_ut.py               # 【入口 2】独立生成 UT 入口(Blue Team AutoBench WF_pychecker 方法)
├── generate_bugs.py             # 【入口 3】独立生成 Bug 入口(Red Team 8×4×6 Bug Space + Formality)
├── configs/
│   └── history-shift-bugspace-8x4x6.yaml  # 多轮对抗标准配置示例
├── engine/
│   ├── xbench.py                # 跨轮次生命周期管理、断点恢复与原子提交
│   ├── parallel_round.py        # 串行策略采样 -> 并行生成+检测 -> 串行修 UT 调度器
│   ├── config.py                # YAML 与 CLI 配置解析及校验
│   ├── history.py               # 历史轮次、矩阵与贝叶斯权重统计
│   ├── red/                     # Red Team(8×4×6 tree、采样器、生成器、分类器、RTL review)
│   ├── blue/                    # Blue Team(AutoBench 封装、串行 UT 修复器、单调回归门禁)
│   ├── judge/                   # iverilog/vvp 仿真裁判与 events-v1 时序检查
│   └── common/                  # OpenCode/LLM 调用、Formality Docker 运行器、原子存储
├── autobench/                   # AutoBench 分阶段 UT 生成器(Blue Team 默认初始器,WF_pychecker.py + Prompts)
├── baselines/                   # 开源学术对比基线(CorrectBench / ConfiBench / PRO-V)
│   ├── correctbench/            # CorrectBench (DATE 2025, AutoBench 2.0:功能自校验与自修正)
│   ├── confibench/              # ConfiBench (ACM TODAES 2025, AutoBench 3.0:置信度场景掩码与多 TB 集成)
│   └── pro-v/                   # PRO-V (arXiv 2025:多 Agent 激励与 PyChecker 一致性验证框架)
├── data/                        # HDLBits 基准数据集(156 题 spec + golden RTL)
├── inputs/                      # 独立脚本运行示例输入(spec.json / golden.v)
├── formality.example.yaml       # Formality 环境配置模板
├── requirements.txt             # Python 依赖列表
├── SOURCE_MANIFEST.json         # 交付包文件清单与 SHA256
└── SHA256SUMS                   # sha256sum 校验文件

2. 环境准备

2.1 安装 Python 依赖

cd /mnt/gfs/qyh/aiworkspace/delivery/ut-rsi-20261110
python3 -m pip install -r requirements.txt

2.2 环境变量配置

  • LLM / OpenCode:
    • autobench/ 使用 DEEPSEEK_API_KEY 调用 DeepSeek 模型(或在 autobench/config.yaml 中配置)。
    • engine/ 默认使用本机已配置的 OpenCode CLI(可通过环境变量 UT_RSI_OPENCODE_CLI=/path/to/opencode 指定自定义路径;若未设置则自动使用本机默认路径或 PATH 中的 opencode)。
  • 仿真与形式化工具:
    • iverilog / vvp:已在配置中默认指向 /data/home/qinyuhan/verification/tools/iverilog-jammy/bin/iverilog(可通过 --iverilog / --vvp 覆盖)。
    • Docker + Synopsys Formality 镜像:phyzli/ubuntu18.04_xfce4_vnc4server_synopsys2016:latest(可通过 YAML 或命令行参数覆盖)。

3. 使用方法(三种核心模式)

模式一:运行完整的多轮红蓝对抗(AutoBench 生成 UT + 多轮生成 Bug 与修 UT)

使用 main.py 启动。默认配置文件 configs/history-shift-bugspace-8x4x6.yaml 已配置为:

  • blue_backend: autobench 且 initial_ut: ''(第 0 阶段使用 AutoBench 从头生成初始 ut_0000)
  • taxonomy_version: responsibility-v2(使用 8×4×6 三维 Bug Space)
  • bugs_per_round: 4, bug_workers: 4, red_generate_attempts: 3
  • rounds: 3(共执行 3 轮红蓝对抗)

启动命令:

python3 main.py \
  --config configs/history-shift-bugspace-8x4x6.yaml \
  --workdir ./runs/history_shift_3rounds

常用命令行覆盖参数:

  • 指定题目(data/ 下的任意 task_id)和轮数:
    python3 main.py \
      --config configs/history-shift-bugspace-8x4x6.yaml \
      --task-id count10 \
      --rounds 3 \
      --bugs-per-round 4 \
      --bug-workers 4 \
      --workdir ./runs/count10_3rounds
    
  • 如果已有初始 UT,希望跳过第 0 阶段 AutoBench 生成、直接从已有 ut_0000 开始多轮对抗,只需传入 --initial-ut:
    python3 main.py \
      --config configs/history-shift-bugspace-8x4x6.yaml \
      --initial-ut /path/to/existing/ut_0000 \
      --workdir ./runs/history_shift_from_existing_ut
    
  • 断点续跑(Resume):若实验中途中断,可从最近一次已提交的轮次检查点恢复:
    python3 main.py --resume --workdir ./runs/history_shift_3rounds
    

模式二:单独生成初始 UT(Blue Team — AutoBench WF_pychecker 方法)

如果只需要针对某个 RTL 模块使用 AutoBench 分阶段方法生成高质量 UT(Verilog Testbench + Python Golden Checker),直接运行 generate_ut.py:

方式 A:直接指定 data/ 中的 task_id

python3 generate_ut.py \
  --task-id history_shift \
  --data-dir ./data \
  --out ./runs/ut_only_history_shift

方式 B:指定任意自定义 Spec 文件与 Golden RTL 文件

python3 generate_ut.py \
  --spec ./data/history_shift_spec.txt \
  --golden ./data/history_shift_golden.sv \
  --task-id history_shift \
  --out ./runs/ut_custom_history_shift

运行完成后:

  • 最终生成的 Testbench 位于:<out>/blue/ut/ut_0000/testbench.v
  • AutoBench Stage 0–5 完整生成产物(含 testbench_final.v、golden_Duty.py、仿真日志)位于:<out>/blue/ut/ut_0000/autobench/
  • 汇总信息位于:<out>/ut_summary.json

模式三:单独生成非等价 Bug(Red Team — 8×4×6 Bug Space + Formality)

如果只需要运行 Red Team 生成通过 Formality 形式化验证的非等价 Bug(不运行 Blue Team UT),运行 generate_bugs.py:

cp formality.example.yaml formality.local.yaml
python3 generate_bugs.py \
  --spec inputs/spec.json \
  --golden inputs/golden.v \
  --task-id history_shift \
  --formality-config formality.local.yaml \
  --count 4 \
  --max-attempts-per-bug 3 \
  --out ./runs/bugs_only_history_shift

运行完成后:

  • 所有通过 Formality 非等价验证的 Bug 汇总在 <out>/summary.json 与 <out>/accepted/bug_XXXX/buggy.sv。
  • 每次采样尝试的完整记录(包括 equivalent 或 cannot_generate)保存在 <out>/red/candidates/cand_XXXX/。

4. 产物保存结构说明(<workdir>/)

每次运行都会在指定的 <workdir> 下保存每一轮生成的 Bug 和每一个版本的 UT,不会覆盖历史版本:

<workdir>/
├── config.resolved.yaml             # 本次运行的完整解析配置快照
├── result.json                      # 实验最终汇总结果
├── events.jsonl                     # 全流程事件时间线日志
├── blue/
│   ├── skill.md                     # Blue Team 跨轮演化的测试经验
│   └── ut/
│       ├── ut_0000/                 # 初始 UT(含 testbench.v、meta.json、autobench/)
│       ├── ut_0001/                 # 修补第 1 个 ESCAPE bug 后的新版本 UT
│       └── ut_0002/                 # 修补第 2 个 ESCAPE bug 后的新版本 UT
├── red/
│   ├── skill.md                     # Red Team 跨轮演化的攻击经验
│   └── review/                      # 第 0 阶段 Golden RTL Review 与 8×4×6 相关性权重
├── parallel/
│   └── round_0001/                  # 第 1 轮并行执行目录(每轮一个独立目录)
│       ├── round_summary.json       # 当轮预采样策略列表、各槽位状态、修补前后结果汇总
│       └── workers/
│           └── slot_01..04/         # 每个并行槽位尝试过的全部候选 Bug (cand_XXXX)
│               ├── red/candidates/cand_XXXX/
│               │   ├── buggy.sv             # 生成的 Bug RTL
│               │   ├── attempt.json         # 采样策略与状态(accepted / equivalent / cannot_generate)
│               │   └── formal/result.json   # Formality 形式化验证报告与 fm.log
│               └── judge/                   # 该槽位 Bug 对当前 UT 的仿真评测日志
└── history/
    ├── state.json                   # 当前最新提交状态
    └── checkpoints/
        └── round_0001.json          # 每轮完整快照(包含当轮 bugs、evaluations、active_ut 等)

5. 完整性校验

在交付包根目录下可执行以下命令校验所有 259 个文件未被篡改或损坏:

sha256sum -c SHA256SUMS

README historyEdit history 7 revisions7 edits

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.Every night we save the author's description of every dataset in the catalog. When it changes, we keep the new text and compare it with the one before. This shows what each author chose to say about their dataset, and how that changed over time.

  1. 2026-11-13 Remove gitignored runtime output success_list.txt from manifest and checksums df2ec92 11.1 KB
    Loading...
  2. 2026-11-13 Add open-source academic baselines (CorrectBench, ConfiBench, PRO-V) under ba... 68bfa72 11.1 KB
    Loading...
  3. 2026-11-10 Update UT-RSI delivery (2026-11-10): full Red+Blue AutoBench UT generation & ... bb49456 10.6 KB
    Loading...
  4. 2026-11-09 Update standalone Red delivery to 20261109 with parallel generation 396c87e 4.7 KB
    Loading...
  5. 2026-11-06 Replace Red Team delivery with 20261106 standalone generator 9ac2467 6.6 KB
    Loading...
  6. 2026-10-30 Add Red Team RTL bug generator (UT-RSI adversarial framework) 1bcceb1 3.3 KB
    Loading...
  7. 2026-10-30 initial commit 73476b4 0 B
    Loading...

Community discussions 1 thread · 1 open · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, licence clarifications. Click any thread to expand and read the full conversation inline. Newest first.Conversations people started on Hugging Face: bug reports, questions about using the data, suggested changes to the author's description, questions about the licence. Open a thread to read it here. Newest first.

  1. 2026-11-14 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

yuhanqin/ut-rsi

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration