distilbert-base-spanish-uncased-finetuned-qa-mlqa-onnx
Model Description
English DistilBERT model fine-tuned for question answering on the MLQA dataset, exported to ONNX and quantized for use with Transformers.js.
Files
config.jsontokenizer.jsontokenizer_config.jsononnx/model_quantized.onnx
Usage in Transformers.js
import { pipeline } from '@xenova/transformers';
// Load the Spanish QA pipeline
pipeline('question-answering', 'jestevesv/distilbert-base-uncased-distilled-squad', { quantized: true })
.then(qa => qa(
'What is the capital of France?',
'The capital of France is Paris.'
))
.then(result => console.log(result))
.catch(err => console.error(err));
- Downloads last month
- 8