diff --git a/src/pipelines.js b/src/pipelines.js index 805f64736..c7772aa55 100644 --- a/src/pipelines.js +++ b/src/pipelines.js @@ -1255,7 +1255,7 @@ export class FeatureExtractionPipeline extends (/** @type {new (options: TextPip // console.log(outputs) /** @type {Tensor} */ - let result = outputs.last_hidden_state ?? outputs.logits; + let result = outputs.last_hidden_state ?? outputs.logits ?? outputs.token_embeddings; if (pooling === 'none') { // Skip pooling } else if (pooling === 'mean') {