Instructions to use SISLab/amc-opt-msmd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SISLab/amc-opt-msmd with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SISLab/amc-opt-msmd", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("SISLab/amc-opt-msmd", trust_remote_code=True) model = AutoModelForSequenceClassification.from_pretrained("SISLab/amc-opt-msmd", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "architectures": [ | |
| "AMC_OPT" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "amc.AMC_OPT_conf", | |
| "AutoModelForSequenceClassification": "amc.AMC_OPT" | |
| }, | |
| "drop_out": 0.1, | |
| "emb_size": 768, | |
| "model_type": "bert", | |
| "out_labels": 3, | |
| "pretrained_model": "m-polignano-uniba/bert_uncased_L-12_H-768_A-12_italian_alb3rt0", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.18.0" | |
| } | |