协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
gedi_hybrid_training【开发与工程】Compute and test GeDi's hybrid discriminative-generative objective with a deterministic tiny optimizer step.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when training or validating a class-conditional LM as a GeDi, especially when checking the loss decomposition between generative likelihood and discriminative posterior classification.
lambda.params_before, params_after, and before/after loss.lambda * generative + (1-lambda) * discriminative.Run:
python tests/test_training.py
The included script is a deterministic proxy for objective validation, not full GPT-2/GeDi checkpoint training.