-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Why do I keep running into an OrtRun error code 6 with a longer string for question-answering task:
const result = await model(question, context, { padding: true, truncation: true, });
Error:
models.js:158 An error occurred during model execution: "Error: failed to call OrtRun(). error code = 6.". models.js:159 Inputs given to model: {input_ids: Proxy(Tensor), attention_mask: Proxy(Tensor), token_type_ids: Proxy(Tensor)} attention_mask : Proxy(Tensor) {dims: Array(2), type: 'int64', data: BigInt64Array(550), size: 550} input_ids : Proxy(Tensor) {dims: Array(2), type: 'int64', data: BigInt64Array(550), size: 550} token_type_ids : Proxy(Tensor) {dims: Array(2), type: 'int64', data: BigInt64Array(550), size: 550} [[Prototype]] : Object ort-web.min.js:6 Uncaught (in promise) Error: failed to call OrtRun(). error code = 6. at Object.run (ort-web.min.js:6:454854) at ort-web.min.js:6:444202 at Object.run (ort-web.min.js:6:447121) at InferenceSession.run (inference-session-impl.js:91:1) at sessionRun (models.js:153:1) at Function._call (models.js:639:1) at Function._call (models.js:1091:1) at Function.closure [as model] (core.js:62:1) at Function._call (pipelines.js:253:1) at closure (core.js:62:1) (anonymous) @ ort-web.min.js:6 (anonymous) @ ort-web.min.js:6 run @ ort-web.min.js:6 run @ inference-session-impl.js:91 sessionRun @ models.js:153 _call @ models.js:639 _call @ models.js:1091 closure @ core.js:62 _call @ pipelines.js:253 closure @ core.js:62 (anonymous) @ background.js:146 await in (anonymous) (async)