Instructions to use VMware/tinyroberta-quantized-mrqa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VMware/tinyroberta-quantized-mrqa with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="VMware/tinyroberta-quantized-mrqa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("VMware/tinyroberta-quantized-mrqa") model = AutoModelForQuestionAnswering.from_pretrained("VMware/tinyroberta-quantized-mrqa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download ort_config.json from VMware/tinyroberta-quantized-mrqa: direct link, hf CLI and curl.
- Browser
- Download file 698 Bytes
-
https://huggingface.co/VMware/tinyroberta-quantized-mrqa/resolve/main/ort_config.json
- Command line
-
hf download hf://VMware/tinyroberta-quantized-mrqa/ort_config.json
-
curl -L -o ort_config.json https://huggingface.co/VMware/tinyroberta-quantized-mrqa/resolve/main/ort_config.json
698 Bytes
| { | |
| "opset": null, | |
| "optimization": {}, | |
| "optimum_version": "1.5.1", | |
| "quantization": { | |
| "activations_dtype": "QUInt8", | |
| "activations_symmetric": false, | |
| "format": "QOperator", | |
| "is_static": false, | |
| "mode": "IntegerOps", | |
| "nodes_to_exclude": [], | |
| "nodes_to_quantize": [], | |
| "operators_to_quantize": [ | |
| "MatMul", | |
| "Add" | |
| ], | |
| "per_channel": false, | |
| "qdq_add_pair_to_weight": false, | |
| "qdq_dedicated_pair": false, | |
| "qdq_op_type_per_channel_support_to_axis": { | |
| "MatMul": 1 | |
| }, | |
| "reduce_range": false, | |
| "weights_dtype": "QInt8", | |
| "weights_symmetric": true | |
| }, | |
| "transformers_version": "4.25.1", | |
| "use_external_data_format": false | |
| } | |