返回模型
说明文档
distilbert-base-spanish-uncased-finetuned-qa-mlqa-onnx
模型描述
英文 DistilBERT 模型,在 MLQA 数据集上针对问答任务进行了微调,并导出为 ONNX 格式并量化,以便与 Transformers.js 一起使用。
文件
config.jsontokenizer.jsontokenizer_config.jsononnx/model_quantized.onnx
在 Transformers.js 中使用
import { pipeline } from '@xenova/transformers';
// 加载西班牙语问答管道
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));
jestevesv/distilbert-base-uncased-distilled-squad
作者 jestevesv
question-answering
transformers.js
↓ 1
♥ 0
创建时间: 2025-09-12 21:22:40+00:00
更新时间: 2025-09-12 21:30:18+00:00
在 Hugging Face 上查看文件 (7)
.gitattributes
LICENSE
README.md
config.json
onnx/model_quantized.onnx
ONNX
tokenizer.json
tokenizer_config.json