CodeBench: file-by-file logiin tokenit, rivimäärä ja tok/s per tiedosto
This commit is contained in:
@@ -389,6 +389,8 @@ async function runPipeline(model, scenario, round = 1) {
|
|||||||
if (code) {
|
if (code) {
|
||||||
files[fileDef.name] = code + '\n';
|
files[fileDef.name] = code + '\n';
|
||||||
context += `=== ${fileDef.name} ===\n${code}\n\n`;
|
context += `=== ${fileDef.name} ===\n${code}\n\n`;
|
||||||
|
const loc = code.split('\n').length;
|
||||||
|
console.log(` [3/5] ${fileResp.tokens} tok, ${loc} lines, ${fileResp.tokPerSec.toFixed(0)} tok/s`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
writeFileSync(`${dir}/_code_raw.txt`, context);
|
writeFileSync(`${dir}/_code_raw.txt`, context);
|
||||||
|
|||||||
Reference in New Issue
Block a user