revert: precompute_rep 默认关 — 评测端OOM/超时致提交异常,回到合规安全~68
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+3
-2
@@ -55,8 +55,9 @@ CONFIG = {
|
||||
"dedup_embedding": True, # True=查表前对sign去重(只查唯一值再展开),本地7.80->6.49s,AUC逐位等价
|
||||
"sparse_pool": False, # True=用(段×唯一)稀疏矩阵乘做池化,避免materialize整个[M,512](段内高重复时省)
|
||||
"compile": False, # 是否 torch.compile(实测慢5×,勿开)
|
||||
"precompute_rep": True, # True=不计时的load_model里预计算所有item的RepEncoder向量,
|
||||
# model(batch)按logid gather缓存、跳过embedding层(逐位等价)
|
||||
# 评测端提交曾"异常"(load_model 全量加载数据集 OOM/超时)。默认关,回到合规安全的~68。
|
||||
# 如需重试,改用 build_env/流式过滤避免 OOM(见 RISKS.md)。
|
||||
"precompute_rep": False, # True=不计时的load_model里预计算所有item的RepEncoder向量(有OOM/合规风险)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user