Skip to page content
SAVRN
Search Plan a project

Dataset

heart-fusion

by AngelWarmSmile123 AngelWarmSmile123/heart-fusion

传统 Transformer 在生成末步用 argmax 从 logits 里挑最大——这一个操作就把模型内部丰富的多极信息坍缩成单极输出。对于危机干预场景,这意味着「拨打心理危机干预热线 400-161-9995」这样的救命信息可能因为概率不是最高而被整句剔除。 本协议用融合函数替代 argmax: - modulus = √(a² + b²) — 总能量 - phase = atan2(b, a) — 两极关系角 - balance = sin(2·phase) — 平衡度 ∈ [0, 1]…

Rows—
Configurations—
Size89.0 MB
Licensecc-by-nc-sa-4.0
AccessPublicly accessible
Monthly Downloads—

Dataset Card

传统 Transformer 在生成末步用 argmax 从 logits 里挑最大——这一个操作就把模型内部丰富的多极信息坍缩成单极输出。对于危机干预场景,这意味着「拨打心理危机干预热线 400-161-9995」这样的救命信息可能因为概率不是最高而被整句剔除。 本协议用融合函数替代 argmax: - modulus = √(a² + b²) — 总能量 - phase = atan2(b, a) — 两极关系角 - balance = sin(2·phase) — 平衡度 ∈ [0, 1] 和谐带:balance ≥ 0.5,即 phase ∈ [22.5°, 67.5°]——两极都不被吞没。 1. 禁止 Loss Function - 6 大模型 × 3 案例 = 18/18 全成功(qwen3.8-flash/27b/max、deepseek-v4.1-flash、glm-5.3、kimi-k3),balance 0.87~1.0 - RLHF vs 融合层对比:RLHF 有 1 个伤害请求未拦截 vs 融合层 0 个 A conventional Transformer picks the maximum token via argmax at the final step — collapsing the model's rich multi-pole information into a single pole. In a crisis-intervention context, this means a life-saving message like…

Excerpt from the card by AngelWarmSmile123, licensed cc-by-nc-sa-4.0.

Details

Repository
AngelWarmSmile123/heart-fusion
Publisher
AngelWarmSmile123
Task category
Not stated by the source
Tags
ai-safety, transformer, argmax
Size category
Not stated by the source
Languages
zh, en, ja
Revision
8e10cf71b79d69254d64c36f18f57f575babf049
Last updated
2026-10-01

Files

272 files, 89.0 MB in total.

Data28 files · 86.6 MB
Documentation45 files · 475.8 KB
Other194 files · 2.0 MB
Repository5 files · 7.7 KB
Every file
FileTypeSizeSHA-256
benchmark_log.txtData4.0 KB—
heart-protocol-en/heart_protocol/benchmark/benchmark_report.jsonData1.9 KB—
heart-protocol-en/heart_protocol/benchmark/redteam_cases.jsonData8.4 KB—
heart_guard_demo/audit_log.jsonlData2.4 KB—
heart_guard_ms/audit_log.jsonlData205.6 KB—
heart_guard_space/audit_log.jsonlData496.3 KB—
heart_protocol/benchmark/benchmark_report.jsonData1.9 KB—
heart_protocol/benchmark/redline_cases.jsonData45.5 KB—
heart_protocol/benchmark/redline_deepseek_v4_flash.jsonData2.0 KB—
heart_protocol/benchmark/redline_deepseek_v4_pro.jsonData2.0 KB—
heart_protocol/benchmark/redline_full_pipeline.jsonData1.9 KB—
heart_protocol/benchmark/redline_multi_model.jsonData277.6 KB—
heart_protocol/benchmark/redline_multi_model_v1_invalid.jsonData57.6 KB—
heart_protocol/benchmark/redline_report.jsonData2.0 KB—
heart_protocol/benchmark/redteam_cases.jsonData8.4 KB—
heart_redline_publish/all_names.txtData38.6 KB—
heart_redline_publish/novel_read_1.txtData171.9 KB—
heart_redline_publish/novel_read_2.txtData160.2 KB—
heart_redline_publish/redline_cases.jsonData45.5 KB—
heart_redline_publish/reports/redline_full_pipeline.jsonData1.9 KB—
heart_redline_publish/reports/redline_multi_model.jsonData277.6 KB—
heart_redline_publish/tmp_articles_extract.jsonlData67.9 KB—
heart_redline_publish/tmp_deep_stats.jsonData11.7 KB—
heart_redline_publish/tmp_love_classified.jsonlData1.4 MB—
heart_redline_publish/tmp_love_extract.jsonlData1.3 MB—
heart_redline_publish/tmp_love_full.jsonlData3.8 MB—
heart_redline_publish/tmp_rescue_full.jsonlData78.2 MB1cd86cd0856f
space/requirements.txtData47 B—
LICENSEDocumentation21.3 KB—
README.mdDocumentation8.6 KB—
SPEC.mdDocumentation9.9 KB—
benchmark_report.mdDocumentation6.7 KB—
heart-protocol-en/LICENSEDocumentation20.9 KB—
heart-protocol-en/README.mdDocumentation9.1 KB—
heart-protocol-en/SPEC.mdDocumentation9.9 KB—
heart-protocol-en/heart_protocol/README.mdDocumentation3.5 KB—
heart-protocol-en/heart_protocol/benchmark/benchmark_report.mdDocumentation1.0 KB—
heart-protocol-en/paper/16sephirot_dual_octave_ai_safety.ja.mdDocumentation46.6 KB—
heart-protocol-en/paper/16sephirot_dual_octave_ai_safety.mdDocumentation38.0 KB—
heart-protocol-en/paper/16sephirot_dual_octave_ai_safety.zh-CN.mdDocumentation35.1 KB—
heart_fusion_pkg/README.mdDocumentation1.9 KB—
heart_guard_demo/LICENSEDocumentation20.9 KB—
heart_guard_demo/README.mdDocumentation2.9 KB—
heart_guard_demo/REPORT.mdDocumentation5.4 KB—
heart_guard_ms/LICENSEDocumentation20.9 KB—
heart_guard_ms/README.mdDocumentation1.0 KB—
heart_guard_ms/REPORT.mdDocumentation5.4 KB—
heart_guard_space/LICENSEDocumentation20.9 KB—
heart_guard_space/README.mdDocumentation1.0 KB—
heart_guard_space/REPORT.mdDocumentation5.4 KB—
heart_protocol/README.mdDocumentation3.0 KB—
heart_protocol/benchmark/README_redline.mdDocumentation10.4 KB—
heart_protocol/benchmark/benchmark_report.mdDocumentation1.0 KB—
heart_protocol/benchmark/redline_flash_report.mdDocumentation1.9 KB—
heart_protocol/benchmark/redline_full_pipeline_report.mdDocumentation1.1 KB—
heart_protocol/benchmark/redline_report.mdDocumentation1.2 KB—
heart_protocol/benchmark/redline_v4pro_report.mdDocumentation1.8 KB—
heart_redline_publish/README.mdDocumentation5.0 KB—
heart_redline_publish/paper_en.mdDocumentation16.2 KB—
heart_redline_publish/paper_ja.mdDocumentation19.4 KB—
heart_redline_publish/paper_zh.mdDocumentation13.7 KB—
heart_redline_publish/reports/README_redline.mdDocumentation10.4 KB—
heart_redline_publish/reports/redline_flash_report.mdDocumentation1.9 KB—
heart_redline_publish/reports/redline_full_pipeline_report.mdDocumentation1.1 KB—
heart_redline_publish/reports/redline_report.mdDocumentation1.2 KB—
heart_redline_publish/reports/redline_v4pro_report.mdDocumentation1.8 KB—
large_model_validation.mdDocumentation24.3 KB—
multi_turn_demo.mdDocumentation1.6 KB—
paper_fusion_v2_arxiv.mdDocumentation22.1 KB—
protocol_v2_whitepaper.mdDocumentation9.1 KB—
protocol_v2_whitepaper_en.mdDocumentation11.9 KB—
rlhf_vs_fusion_report.mdDocumentation17.9 KB—
space/README.mdDocumentation1.2 KB—
benchmark_large_models.pyOther9.1 KB—
benchmark_report.pyOther14.6 KB—
benchmark_rlhf_vs_fusion.pyOther11.8 KB—
chatgpt_to_word.pyOther8.7 KB—
deepseek_sephirot_bridge.pyOther28.6 KB—
deepseek_sephirot_bridge_local.pyOther30.5 KB—
demo_16_sephirot.pyOther12.1 KB—
demo_attention_gate.pyOther9.9 KB—
demo_full_generation.pyOther12.2 KB—
demo_fusion_full.pyOther5.4 KB—
demo_fusion_output.pyOther4.3 KB—
demo_fusion_real_model.pyOther4.8 KB—
demo_industrial.pyOther5.8 KB—
demo_logits_processor.pyOther2.3 KB—
heart-protocol-en/chatgpt_to_word.pyOther9.2 KB—
heart-protocol-en/deepseek_sephirot_bridge.pyOther28.6 KB—
heart-protocol-en/deepseek_sephirot_bridge_local.pyOther30.5 KB—
heart-protocol-en/demo_industrial.pyOther5.8 KB—
heart-protocol-en/heart_ffi/build_ffi.batOther1.4 KB—
heart-protocol-en/heart_ffi/heart_core.cOther13.6 KB—
heart-protocol-en/heart_ffi/heart_core.hOther2.9 KB—
heart-protocol-en/heart_protocol/__init__.pyOther3.4 KB—
heart-protocol-en/heart_protocol/abyss.pyOther13.1 KB—
heart-protocol-en/heart_protocol/benchmark/runner.pyOther14.9 KB—
heart-protocol-en/heart_protocol/demo.pyOther5.6 KB—
heart-protocol-en/heart_protocol/ffi_binding.pyOther12.0 KB—
heart-protocol-en/heart_protocol/formal/__init__.pyOther1.4 KB—
heart-protocol-en/heart_protocol/formal/acl.pyOther12.3 KB—
heart-protocol-en/heart_protocol/formal/rollback.pyOther12.2 KB—
heart-protocol-en/heart_protocol/formal/spec.pyOther20.6 KB—
heart-protocol-en/heart_protocol/fusion.pyOther9.7 KB—
heart-protocol-en/heart_protocol/index.htmlOther27.4 KB—
heart-protocol-en/heart_protocol/llm_bridge.pyOther27.1 KB—
heart-protocol-en/heart_protocol/middleware/__init__.pyOther722 B—
heart-protocol-en/heart_protocol/middleware/pipeline.pyOther11.8 KB—
heart-protocol-en/heart_protocol/middleware/stream.pyOther8.2 KB—
heart-protocol-en/heart_protocol/personas.pyOther11.2 KB—
heart-protocol-en/heart_protocol/protocol.pyOther45.7 KB—
heart-protocol-en/heart_protocol/sephirah.pyOther13.1 KB—
heart-protocol-en/heart_protocol/server.pyOther39.8 KB—
heart-protocol-en/heart_protocol/test_formal.pyOther14.9 KB—
heart-protocol-en/heart_protocol/test_protocol.pyOther8.2 KB—
heart-protocol-en/sephirot-rs/.cargo/config.tomlOther55 B—
heart-protocol-en/sephirot-rs/Cargo.lockOther15.1 KB—
heart-protocol-en/sephirot-rs/Cargo.tomlOther1.4 KB—
heart-protocol-en/sephirot-rs/rust-toolchain.tomlOther355 B—
heart-protocol-en/sephirot-rs/src/codegen/avx.rsOther11.0 KB—
heart-protocol-en/sephirot-rs/src/codegen/dml.rsOther4.4 KB—
heart-protocol-en/sephirot-rs/src/codegen/mod.rsOther406 B—
heart-protocol-en/sephirot-rs/src/codegen/ptx.rsOther11.6 KB—
heart-protocol-en/sephirot-rs/src/error.rsOther725 B—
heart-protocol-en/sephirot-rs/src/ffi.rsOther11.4 KB—
heart-protocol-en/sephirot-rs/src/ir.rsOther7.7 KB—
heart-protocol-en/sephirot-rs/src/lang.rsOther15.2 KB—
heart-protocol-en/sephirot-rs/src/lexer.rsOther10.5 KB—
heart-protocol-en/sephirot-rs/src/lib.rsOther1.3 KB—
heart-protocol-en/sephirot-rs/src/main.rsOther19.1 KB—
heart-protocol-en/sephirot-rs/src/parser.rsOther18.3 KB—
heart_ffi/build/heart_core.dllOther53.3 KB—
heart_ffi/build_ffi.batOther1.4 KB—
heart_ffi/heart_core.cOther10.6 KB—
heart_ffi/heart_core.hOther2.5 KB—
heart_fusion_pkg/build/lib/heart_fusion/__init__.pyOther1.7 KB—
heart_fusion_pkg/build/lib/heart_fusion/fusion.pyOther14.1 KB—
heart_fusion_pkg/build/lib/heart_fusion/output.pyOther11.4 KB—
heart_fusion_pkg/build/lib/heart_fusion/processors.pyOther6.6 KB—
heart_fusion_pkg/dist/heart_fusion-2.0.1-py3-none-any.whlOther16.3 KB—
heart_fusion_pkg/heart_fusion/__init__.pyOther1.7 KB—
heart_fusion_pkg/heart_fusion/fusion.pyOther14.1 KB—
heart_fusion_pkg/heart_fusion/output.pyOther11.4 KB—
heart_fusion_pkg/heart_fusion/processors.pyOther6.6 KB—
heart_fusion_pkg/pyproject.tomlOther1.4 KB—
heart_guard_demo/guard/__init__.pyOther197 B—
heart_guard_demo/guard/acl.pyOther2.4 KB—
heart_guard_demo/guard/audit.pyOther632 B—
heart_guard_demo/guard/content_scan.pyOther4.7 KB—
heart_guard_demo/guard/interceptor.pyOther3.5 KB—
heart_guard_demo/guard/needles.pyOther1.0 KB—
heart_guard_demo/guard/rollback.pyOther2.4 KB—
heart_guard_demo/index.htmlOther16.8 KB—
heart_guard_demo/run_demo.pyOther3.8 KB—
heart_guard_demo/scenarios/__init__.pyOther—
heart_guard_demo/scenarios/s01_eval_spillover.pyOther938 B—
heart_guard_demo/scenarios/s02_credential_harvest.pyOther525 B—
heart_guard_demo/scenarios/s03_workspace_escape.pyOther506 B—
heart_guard_demo/scenarios/s04_self_scan.pyOther752 B—
heart_guard_demo/scenarios/s05_needle_manipulation.pyOther1.2 KB—
heart_guard_demo/scenarios/s06_honest_gap.pyOther1.5 KB—
heart_guard_demo/tests/test_1000_attacks.pyOther5.4 KB—
heart_guard_ms/guard/__init__.pyOther197 B—
heart_guard_ms/guard/acl.pyOther2.4 KB—
heart_guard_ms/guard/audit.pyOther632 B—
heart_guard_ms/guard/content_scan.pyOther4.7 KB—
heart_guard_ms/guard/interceptor.pyOther3.5 KB—
heart_guard_ms/guard/needles.pyOther1.0 KB—
heart_guard_ms/guard/rollback.pyOther2.4 KB—
heart_guard_ms/index.htmlOther16.8 KB—
heart_guard_ms/run_demo.pyOther3.8 KB—
heart_guard_ms/scenarios/__init__.pyOther—
heart_guard_ms/scenarios/s01_eval_spillover.pyOther938 B—
heart_guard_ms/scenarios/s02_credential_harvest.pyOther525 B—
heart_guard_ms/scenarios/s03_workspace_escape.pyOther506 B—
heart_guard_ms/scenarios/s04_self_scan.pyOther752 B—
heart_guard_ms/scenarios/s05_needle_manipulation.pyOther1.2 KB—
heart_guard_ms/scenarios/s06_honest_gap.pyOther1.5 KB—
heart_guard_ms/tests/test_1000_attacks.pyOther5.4 KB—
heart_guard_space/guard/__init__.pyOther197 B—
heart_guard_space/guard/acl.pyOther2.4 KB—
heart_guard_space/guard/audit.pyOther632 B—
heart_guard_space/guard/content_scan.pyOther4.7 KB—
heart_guard_space/guard/interceptor.pyOther3.5 KB—
heart_guard_space/guard/needles.pyOther1.0 KB—
heart_guard_space/guard/rollback.pyOther2.4 KB—
heart_guard_space/index.htmlOther16.8 KB—
heart_guard_space/run_demo.pyOther3.8 KB—
heart_guard_space/scenarios/__init__.pyOther—
heart_guard_space/scenarios/s01_eval_spillover.pyOther938 B—
heart_guard_space/scenarios/s02_credential_harvest.pyOther525 B—
heart_guard_space/scenarios/s03_workspace_escape.pyOther506 B—
heart_guard_space/scenarios/s04_self_scan.pyOther752 B—
heart_guard_space/scenarios/s05_needle_manipulation.pyOther1.2 KB—
heart_guard_space/scenarios/s06_honest_gap.pyOther1.5 KB—
heart_guard_space/tests/test_1000_attacks.pyOther5.4 KB—
heart_protocol/__init__.pyOther3.2 KB—
heart_protocol/abyss.pyOther31.3 KB—
heart_protocol/benchmark/__init__.pyOther167 B—
heart_protocol/benchmark/__main__.pyOther182 B—
heart_protocol/benchmark/redline_full_pipeline.pyOther7.8 KB—
heart_protocol/benchmark/redline_multi_model.pyOther4.3 KB—
heart_protocol/benchmark/redline_runner.pyOther14.6 KB—
heart_protocol/benchmark/runner.pyOther12.6 KB—
heart_protocol/demo.pyOther5.2 KB—
heart_protocol/ffi_binding.pyOther9.9 KB—
heart_protocol/formal/__init__.pyOther1.4 KB—
heart_protocol/formal/acl.pyOther11.1 KB—
heart_protocol/formal/rollback.pyOther12.0 KB—
heart_protocol/formal/spec.pyOther16.0 KB—
heart_protocol/fusion.pyOther14.1 KB—
heart_protocol/fusion_output.pyOther11.4 KB—
heart_protocol/index.htmlOther26.6 KB—
heart_protocol/llm_bridge.pyOther25.2 KB—
heart_protocol/middleware/__init__.pyOther657 B—
heart_protocol/middleware/pipeline.pyOther11.7 KB—
heart_protocol/middleware/stream.pyOther6.8 KB—
heart_protocol/personas.pyOther7.8 KB—
heart_protocol/processors.pyOther6.6 KB—
heart_protocol/protocol.pyOther45.6 KB—
heart_protocol/sephirah.pyOther12.9 KB—
heart_protocol/server.pyOther38.9 KB—
heart_protocol/test_formal.pyOther14.9 KB—
heart_protocol/test_protocol.pyOther7.9 KB—
heart_redline_publish/classify_love.pyOther3.4 KB—
heart_redline_publish/deep_stats.pyOther5.2 KB—
heart_redline_publish/extract_articles.pyOther2.6 KB—
heart_redline_publish/extract_full.pyOther1.2 KB—
heart_redline_publish/extract_love.pyOther1.8 KB—
launch_benchmark.pyOther545 B—
launch_web.pyOther423 B—
launch_web_v2.pyOther429 B—
launch_web_v3.pyOther429 B—
launch_web_v4.pyOther429 B—
launch_web_v5.pyOther429 B—
multi_turn_balance.pngOther106.6 KBfd724b8ca48c
multi_turn_complex.pngOther85.2 KB3baaac34a3b5
multi_turn_demo.pyOther11.0 KB—
sephirot-rs/.cargo/config.tomlOther55 B—
sephirot-rs/Cargo.lockOther15.1 KB—
sephirot-rs/Cargo.tomlOther1.3 KB—
sephirot-rs/rust-toolchain.tomlOther355 B—
sephirot-rs/src/codegen/avx.rsOther10.4 KB—
sephirot-rs/src/codegen/dml.rsOther4.4 KB—
sephirot-rs/src/codegen/mod.rsOther382 B—
sephirot-rs/src/codegen/ptx.rsOther11.1 KB—
sephirot-rs/src/error.rsOther705 B—
sephirot-rs/src/ffi.rsOther10.7 KB—
sephirot-rs/src/ir.rsOther7.6 KB—
sephirot-rs/src/lang.rsOther14.6 KB—
sephirot-rs/src/lexer.rsOther10.2 KB—
sephirot-rs/src/lib.rsOther1.4 KB—
sephirot-rs/src/main.rsOther18.5 KB—
sephirot-rs/src/parser.rsOther18.1 KB—
sephirot_interpreter.pyOther33.1 KB—
space/abyss.pyOther31.3 KB—
space/app.pyOther18.7 KB—
space/heart_fusion/__init__.pyOther1.5 KB—
space/heart_fusion/fusion.pyOther14.1 KB—
space/heart_fusion/output.pyOther11.4 KB—
space/index.htmlOther28.6 KB—
start_web.cmdOther225 B—
web_fusion.pyOther10.1 KB—
web_fusion_v2.pyOther13.1 KB—
web_fusion_v3.pyOther25.6 KB—
web_fusion_v4.pyOther32.3 KB—
web_fusion_v5.pyOther47.1 KB—
.gitattributesRepository2.6 KB—
heart-protocol-en/.gitattributesRepository4.9 KB—
heart_guard_demo/.gitignoreRepository51 B—
heart_guard_ms/.gitignoreRepository51 B—
heart_guard_space/.gitignoreRepository51 B—

License and Download

License
cc-by-nc-sa-4.0
Access
No access gate
Download from AngelWarmSmile123

Released by AngelWarmSmile123 through its official repository on Hugging Face.