@huggingface/transformers 3.0.0-alpha.18 → 3.0.0-alpha.19

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.
@@ -4422,7 +4422,7 @@ __webpack_require__.r(__webpack_exports__);
4422
4422
 
4423
4423
 
4424
4424
 
4425
- const VERSION = '3.0.0-alpha.18';
4425
+ const VERSION = '3.0.0-alpha.19';
4426
4426
 
4427
4427
  // Check if various APIs are available (depends on environment)
4428
4428
  const IS_BROWSER_ENV = typeof self !== 'undefined';
@@ -6972,9 +6972,6 @@ async function getSession(pretrained_model_name_or_path, fileName, options) {
6972
6972
  /** @type {Record<string, import('onnxruntime-common').Tensor.DataLocation>} */
6973
6973
  const preferredOutputLocation = {};
6974
6974
  for (const key in shapes) {
6975
- // TODO: For now, we keep encoder outputs on the CPU
6976
- // (otherwise, this causes a memory leak or throws an error "Error: previous buffer is not registered")
6977
- if (key.includes('encoder')) continue;
6978
6975
  preferredOutputLocation[key] = 'gpu-buffer';
6979
6976
  }
6980
6977
  session_options.preferredOutputLocation = preferredOutputLocation;