Instructions to use ggaaaga/madlad400-web with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ggaaaga/madlad400-web with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" 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("translation", model="ggaaaga/madlad400-web")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("ggaaaga/madlad400-web") model = AutoModelForSeq2SeqLM.from_pretrained("ggaaaga/madlad400-web") - Notebooks
- Google Colab
- Kaggle
| { | |
| "one_external_file": true, | |
| "opset": null, | |
| "optimization": {}, | |
| "optimum_version": "1.16.1", | |
| "quantization": { | |
| "activations_dtype": "QUInt8", | |
| "activations_symmetric": false, | |
| "format": "QOperator", | |
| "is_static": false, | |
| "mode": "IntegerOps", | |
| "nodes_to_exclude": [], | |
| "nodes_to_quantize": [], | |
| "operators_to_quantize": [ | |
| "Conv", | |
| "MatMul", | |
| "Attention", | |
| "LSTM", | |
| "Gather", | |
| "Transpose", | |
| "EmbedLayerNormalization" | |
| ], | |
| "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.36.2", | |
| "use_external_data_format": false | |
| } | |