nodepad-hypotheses / fix_test.js
Leon4gr45's picture
Upload folder using huggingface_hub
6b7c888 verified
Raw History Blame Contribute Delete
412 Bytes
const { pipeline, env } = require('@xenova/transformers');
env.allowLocalModels = false;
async function run() {
console.log("Testing with pipeline...");
const extractor = await pipeline("feature-extraction", "Xenova/bge-small-en-v1.5", { quantized: true });
const output = await extractor(["This is a test", "Another test"], { pooling: 'mean', normalize: true });
console.log(output.tolist());
}
run();