將 DeepSWE 27 小時運行濃縮成 60 秒:5.9 GB 日誌的實際代價
Condensing a 27-hour DeepSWE run into 60 seconds — what the 5.9 GB log actually cost me
DeepSWE 的一次完整運行歷時 27 小時,作者把全程錄影剪輯成 60 秒影片,並以日誌中的評分檢查點安排剪接,每秒影片約對應一小時實際運行時間。每次運行會產生 5.9 GB 日誌,保留五次運行作比較便需 30 GB;作者因此編寫清理腳本,只保留檢查點片段和壓縮後的中間檔,刪除原始串流。
I just put up a Short walking through a full DeepSWE run from score 0 to 27: https://www.youtube.com/shorts/3hdA_XdxhyA
The reason it exists is simple. Everyone talks about 27-hour time horizons in the abstract, but nobody shows the shape of one. So I recorded the whole trajectory end to end — every tool call, every checkpoint, every retry — and the raw output was a 5.9 GB log file. That file is the real artifact; the video is just a way in.
The concrete detail that made it work: instead of cutting the footage chronologically, I keyed the edit to checkpoint events in the log. Each time the harness wrote a score checkpoint, I cut to it and burned the timestamp and score into the corner, so one second of video maps to roughly an hour of real runtime. The compression ratio is absurd — 5.9 GB of raw trajectory becomes 60 seconds — but the checkpoints are exactly where the interesting state changes happen, so nothing important gets lost.
The thing it costs the operator is storage, and it's not trivial. One run is 5.9 GB. Keep five runs for comparison and you're at 30 GB before you've touched anything else, so I ended up writing a cleanup script that keeps only the checkpoint segments and the compressed intermediates and deletes the raw stream. Disk fills up fast when your unit of work is a day-long session.
來源:DEV Community · dev.to