@elizaos/training 2.0.0-alpha.20 → 2.0.0-alpha.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/training",
3
- "version": "2.0.0-alpha.20",
3
+ "version": "2.0.0-alpha.21",
4
4
  "description": "ElizaOS RL training pipeline with benchmarking and model publishing support",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -53,5 +53,5 @@
53
53
  "bun-types": "^1.3.2",
54
54
  "typescript": "^5.9.3"
55
55
  },
56
- "gitHead": "8046d35b88cb5ddc0a436920d1f09ba749869648"
56
+ "gitHead": "dd83c65e58df52768d31b55abe591573407ab346"
57
57
  }
@@ -114,8 +114,8 @@ export class BenchmarkRunner {
114
114
 
115
115
  // 1. Load or generate benchmark
116
116
  const snapshot = config.benchmarkPath
117
- ? await loadBenchmark(config.benchmarkPath)
118
- : await generateBenchmark(
117
+ ? await BenchmarkRunner.loadBenchmark(config.benchmarkPath)
118
+ : await BenchmarkRunner.generateBenchmark(
119
119
  config.generatorConfig ??
120
120
  (() => {
121
121
  throw new Error("generatorConfig required when benchmarkPath not provided");
@@ -200,7 +200,7 @@ export class BenchmarkRunner {
200
200
  // Create seeded RNG for baseline strategies (reproducibility)
201
201
  // Use snapshot ID hash as seed for deterministic behavior across runs
202
202
  const baselineSeed = config.forceStrategy
203
- ? snapshot.id.split("").reduce((acc, c) => acc + c.charCodeAt(0), 0)
203
+ ? snapshot.id.split("").reduce((acc: number, c: string) => acc + c.charCodeAt(0), 0)
204
204
  : 0;
205
205
  const baselineRng = config.forceStrategy
206
206
  ? new SeededRandom(baselineSeed)