Instructions to use Nathali99/tmp_trainer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nathali99/tmp_trainer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Nathali99/tmp_trainer")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Nathali99/tmp_trainer") model = AutoModelForTokenClassification.from_pretrained("Nathali99/tmp_trainer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "bert-base-cased", | |
| "architectures": [ | |
| "BertForTokenClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "gradient_checkpointing": false, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "O", | |
| "1": "B-Disease", | |
| "2": "I-Disease", | |
| "3": "B-Gene", | |
| "4": "I-Gene", | |
| "5": "B-Chemical", | |
| "6": "I-Chemical", | |
| "7": "B-CellLine", | |
| "8": "I-CellLine", | |
| "9": "B-Species", | |
| "10": "I-Species", | |
| "11": "B-Variant", | |
| "12": "I-Variant" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "B-CellLine": 7, | |
| "B-Chemical": 5, | |
| "B-Disease": 1, | |
| "B-Gene": 3, | |
| "B-Species": 9, | |
| "B-Variant": 11, | |
| "I-CellLine": 8, | |
| "I-Chemical": 6, | |
| "I-Disease": 2, | |
| "I-Gene": 4, | |
| "I-Species": 10, | |
| "I-Variant": 12, | |
| "O": 0 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.42.4", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 28996 | |
| } | |