@genai-fi/nanogpt 0.20.4 → 0.20.5

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/dist/Generator.js CHANGED
@@ -1,2 +1,2 @@
1
- import { c as e, s as t } from "./main-BqRjvJ8B.js";
1
+ import { c as e, s as t } from "./main-PgJdpFTC.js";
2
2
  export { t as default, e as isConversation };
@@ -1,2 +1,2 @@
1
- import { i as e } from "./main-BqRjvJ8B.js";
1
+ import { i as e } from "./main-PgJdpFTC.js";
2
2
  export { e as default };
package/dist/Trainer.d.ts CHANGED
@@ -27,6 +27,7 @@ export default class Trainer extends EE<'start' | 'stop' | 'log'> {
27
27
  constructor(trainer: Trainer, options?: TrainingOptions);
28
28
  get model(): Model<ModelForwardAttributes>;
29
29
  get optimizer(): AdamWOptimizer;
30
+ get isTraining(): boolean;
30
31
  stop(): void;
31
32
  reset(): void;
32
33
  dispose(): void;
package/dist/Trainer.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e } from "./main-BqRjvJ8B.js";
1
+ import { a as e } from "./main-PgJdpFTC.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { d as e, u as t } from "../main-BqRjvJ8B.js";
1
+ import { d as e, u as t } from "../main-PgJdpFTC.js";
2
2
  export { t as VERSION, e as loadModel };
@@ -1,2 +1,2 @@
1
- import { f as e } from "../main-BqRjvJ8B.js";
1
+ import { f as e } from "../main-PgJdpFTC.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { h as e, m as t } from "../main-BqRjvJ8B.js";
1
+ import { h as e, m as t } from "../main-PgJdpFTC.js";
2
2
  export { t as default, e as mapTransformersConfigToGPTConfig };
@@ -1,2 +1,2 @@
1
- import { p as e } from "../main-BqRjvJ8B.js";
1
+ import { p as e } from "../main-PgJdpFTC.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { g as e } from "../main-BqRjvJ8B.js";
1
+ import { g as e } from "../main-PgJdpFTC.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { l as e } from "../main-BqRjvJ8B.js";
1
+ import { l as e } from "../main-PgJdpFTC.js";
2
2
  export { e as saveModel };
@@ -13178,6 +13178,9 @@ var DS = class e extends hc {
13178
13178
  get optimizer() {
13179
13179
  return this.trainer.optimizer;
13180
13180
  }
13181
+ get isTraining() {
13182
+ return this.trainer.isRunning;
13183
+ }
13181
13184
  stop() {
13182
13185
  this.trainer.stop();
13183
13186
  }
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, b as t, i as n, n as r, r as i, s as a, t as o, y as s } from "./main-BqRjvJ8B.js";
1
+ import { a as e, b as t, i as n, n as r, r as i, s as a, t as o, y as s } from "./main-PgJdpFTC.js";
2
2
  import c from "./tokeniser/CharTokeniser.js";
3
3
  import l from "./tokeniser/bpe.js";
4
4
  import { AdamWOptimizer as u } from "./training/AdamW.js";
@@ -1,2 +1,2 @@
1
- import { y as e } from "../main-BqRjvJ8B.js";
1
+ import { y as e } from "../main-PgJdpFTC.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { v as e } from "../main-BqRjvJ8B.js";
1
+ import { v as e } from "../main-PgJdpFTC.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { _ as e } from "../main-BqRjvJ8B.js";
1
+ import { _ as e } from "../main-PgJdpFTC.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { b as e } from "../main-BqRjvJ8B.js";
1
+ import { b as e } from "../main-PgJdpFTC.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { o as e } from "../main-BqRjvJ8B.js";
1
+ import { o as e } from "../main-PgJdpFTC.js";
2
2
  export { e as createTrainValidationSplit };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genai-fi/nanogpt",
3
- "version": "0.20.4",
3
+ "version": "0.20.5",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",