Instructions to use LightFury9/nlp-mini-project with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LightFury9/nlp-mini-project with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="LightFury9/nlp-mini-project")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("LightFury9/nlp-mini-project") model = AutoModelForTokenClassification.from_pretrained("LightFury9/nlp-mini-project", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from LightFury9/nlp-mini-project: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/LightFury9/nlp-mini-project/resolve/main/config.json
- Command line
-
hf download hf://LightFury9/nlp-mini-project/config.json
-
curl -L -o config.json https://huggingface.co/LightFury9/nlp-mini-project/resolve/main/config.json
1.05 kB
| { | |
| "_name_or_path": "distilbert-base-uncased", | |
| "activation": "gelu", | |
| "architectures": [ | |
| "DistilBertForTokenClassification" | |
| ], | |
| "attention_dropout": 0.1, | |
| "dim": 768, | |
| "dropout": 0.1, | |
| "finetuning_task": "ner", | |
| "hidden_dim": 3072, | |
| "id2label": { | |
| "0": "B-move", | |
| "1": "I-move", | |
| "2": "B-pick", | |
| "3": "I-pick", | |
| "4": "B-drop", | |
| "5": "I-drop", | |
| "6": "B-obj", | |
| "7": "B-loc", | |
| "8": "I-loc", | |
| "9": "B-furn", | |
| "10": "I-furn", | |
| "11": "O" | |
| }, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "B-drop": 4, | |
| "B-furn": 9, | |
| "B-loc": 7, | |
| "B-move": 0, | |
| "B-obj": 6, | |
| "B-pick": 2, | |
| "I-drop": 5, | |
| "I-furn": 10, | |
| "I-loc": 8, | |
| "I-move": 1, | |
| "I-pick": 3, | |
| "O": 11 | |
| }, | |
| "max_position_embeddings": 512, | |
| "model_type": "distilbert", | |
| "n_heads": 12, | |
| "n_layers": 6, | |
| "pad_token_id": 0, | |
| "qa_dropout": 0.1, | |
| "seq_classif_dropout": 0.2, | |
| "sinusoidal_pos_embds": false, | |
| "tie_weights_": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.35.2", | |
| "vocab_size": 30522 | |
| } | |