File size: 882 Bytes
6b71c8b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8b92202
 
 
 
 
6b71c8b
 
 
 
8b92202
af7861e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
tags:
  - question-answering
  - transformers.js
  - onnx
  - distilbert
  - quantized
  - spanish
license: other
---

# distilbert-base-spanish-uncased-finetuned-qa-mlqa-onnx

## Model Description
Spanish DistilBERT model fine-tuned for question answering on the MLQA dataset, exported to ONNX and quantized for use with Transformers.js.

## Files
- `config.json`
- `tokenizer.json`
- `tokenizer_config.json`
- `vocab.txt`
- `onnx/model_quantized.onnx`

## Usage in Transformers.js
```javascript
import { pipeline } from '@xenova/transformers';

// Load the Spanish QA pipeline
pipeline('question-answering', 'jestevesv/distilbert-base-spanish-uncased-finetuned-qa-mlqa-onnx', { quantized: true })
  .then(qa => qa(
    '¿Cuál es la capital de Francia?', 
    'La capital de Francia es París.'
  ))
  .then(result => console.log(result))
  .catch(err => console.error(err));