Instructions to use mohitsha/resnet-tiny-beans-quantized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mohitsha/resnet-tiny-beans-quantized with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="mohitsha/resnet-tiny-beans-quantized") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("mohitsha/resnet-tiny-beans-quantized") model = AutoModelForImageClassification.from_pretrained("mohitsha/resnet-tiny-beans-quantized", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 724 Bytes
aa5b128 | 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 | {
"one_external_file": true,
"opset": null,
"optimization": {},
"optimum_version": "1.7.4.dev0",
"quantization": {
"activations_dtype": "QInt8",
"activations_symmetric": false,
"format": "QDQ",
"is_static": true,
"mode": "QLinearOps",
"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.27.4",
"use_external_data_format": false
}
|