Instructions to use venkatarajendra/multi-label-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use venkatarajendra/multi-label-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="venkatarajendra/multi-label-classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("venkatarajendra/multi-label-classification") model = AutoModelForSequenceClassification.from_pretrained("venkatarajendra/multi-label-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- config.json +92 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- optimizer.pt +3 -0
- rng_state.pth +3 -0
- scheduler.pt +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- trainer_state.json +40 -0
- training_args.bin +3 -0
- vocab.json +0 -0
config.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "FacebookAI/roberta-base",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"RobertaForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"hidden_dropout_prob": 0.1,
|
| 12 |
+
"hidden_size": 768,
|
| 13 |
+
"id2label": {
|
| 14 |
+
"0": "event organization",
|
| 15 |
+
"1": "executive statement",
|
| 16 |
+
"2": "regulatory approval",
|
| 17 |
+
"3": "hiring",
|
| 18 |
+
"4": "foundation",
|
| 19 |
+
"5": "closing",
|
| 20 |
+
"6": "partnerships & alliances",
|
| 21 |
+
"7": "expanding industry",
|
| 22 |
+
"8": "new initiatives or programs",
|
| 23 |
+
"9": "m&a",
|
| 24 |
+
"10": "service & product providing",
|
| 25 |
+
"11": "event organisation",
|
| 26 |
+
"12": "new initiatives & programs",
|
| 27 |
+
"13": "subsidiary establishment",
|
| 28 |
+
"14": "product launching & presentation",
|
| 29 |
+
"15": "product updates",
|
| 30 |
+
"16": "executive appointment",
|
| 31 |
+
"17": "alliance & partnership",
|
| 32 |
+
"18": "ipo exit",
|
| 33 |
+
"19": "article publication",
|
| 34 |
+
"20": "clinical trial sponsorship",
|
| 35 |
+
"21": "company description",
|
| 36 |
+
"22": "investment in public company",
|
| 37 |
+
"23": "other",
|
| 38 |
+
"24": "expanding geography",
|
| 39 |
+
"25": "participation in an event",
|
| 40 |
+
"26": "support & philanthropy",
|
| 41 |
+
"27": "department establishment",
|
| 42 |
+
"28": "funding round",
|
| 43 |
+
"29": "patent publication"
|
| 44 |
+
},
|
| 45 |
+
"initializer_range": 0.02,
|
| 46 |
+
"intermediate_size": 3072,
|
| 47 |
+
"label2id": {
|
| 48 |
+
"alliance & partnership": 17,
|
| 49 |
+
"article publication": 19,
|
| 50 |
+
"clinical trial sponsorship": 20,
|
| 51 |
+
"closing": 5,
|
| 52 |
+
"company description": 21,
|
| 53 |
+
"department establishment": 27,
|
| 54 |
+
"event organisation": 11,
|
| 55 |
+
"event organization": 0,
|
| 56 |
+
"executive appointment": 16,
|
| 57 |
+
"executive statement": 1,
|
| 58 |
+
"expanding geography": 24,
|
| 59 |
+
"expanding industry": 7,
|
| 60 |
+
"foundation": 4,
|
| 61 |
+
"funding round": 28,
|
| 62 |
+
"hiring": 3,
|
| 63 |
+
"investment in public company": 22,
|
| 64 |
+
"ipo exit": 18,
|
| 65 |
+
"m&a": 9,
|
| 66 |
+
"new initiatives & programs": 12,
|
| 67 |
+
"new initiatives or programs": 8,
|
| 68 |
+
"other": 23,
|
| 69 |
+
"participation in an event": 25,
|
| 70 |
+
"partnerships & alliances": 6,
|
| 71 |
+
"patent publication": 29,
|
| 72 |
+
"product launching & presentation": 14,
|
| 73 |
+
"product updates": 15,
|
| 74 |
+
"regulatory approval": 2,
|
| 75 |
+
"service & product providing": 10,
|
| 76 |
+
"subsidiary establishment": 13,
|
| 77 |
+
"support & philanthropy": 26
|
| 78 |
+
},
|
| 79 |
+
"layer_norm_eps": 1e-05,
|
| 80 |
+
"max_position_embeddings": 514,
|
| 81 |
+
"model_type": "roberta",
|
| 82 |
+
"num_attention_heads": 12,
|
| 83 |
+
"num_hidden_layers": 12,
|
| 84 |
+
"pad_token_id": 1,
|
| 85 |
+
"position_embedding_type": "absolute",
|
| 86 |
+
"problem_type": "multi_label_classification",
|
| 87 |
+
"torch_dtype": "float32",
|
| 88 |
+
"transformers_version": "4.39.0.dev0",
|
| 89 |
+
"type_vocab_size": 1,
|
| 90 |
+
"use_cache": true,
|
| 91 |
+
"vocab_size": 50265
|
| 92 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94551ebcda55808fc1f923ec53866f31b571fcc7a9ef4cb7b46fd7cdff82fadc
|
| 3 |
+
size 498698952
|
optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a10d54e8a110dcd5bd5448384214a16f10a9556660c16a66ca9640e8d3853bd3
|
| 3 |
+
size 997517690
|
rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1ffafc6d33df969009755d068e3cf502d9b6fe372381341364f4cdaa1be393e8
|
| 3 |
+
size 14244
|
scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f69238c917608cb2daca61040a7f330595719176cbada477569f24b7dfa3976
|
| 3 |
+
size 1064
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "<s>",
|
| 3 |
+
"cls_token": "<s>",
|
| 4 |
+
"eos_token": "</s>",
|
| 5 |
+
"mask_token": {
|
| 6 |
+
"content": "<mask>",
|
| 7 |
+
"lstrip": true,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false
|
| 11 |
+
},
|
| 12 |
+
"pad_token": "<pad>",
|
| 13 |
+
"sep_token": "</s>",
|
| 14 |
+
"unk_token": "<unk>"
|
| 15 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"0": {
|
| 5 |
+
"content": "<s>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": true,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"1": {
|
| 13 |
+
"content": "<pad>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": true,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"2": {
|
| 21 |
+
"content": "</s>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": true,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"3": {
|
| 29 |
+
"content": "<unk>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": true,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
},
|
| 36 |
+
"50264": {
|
| 37 |
+
"content": "<mask>",
|
| 38 |
+
"lstrip": true,
|
| 39 |
+
"normalized": false,
|
| 40 |
+
"rstrip": false,
|
| 41 |
+
"single_word": false,
|
| 42 |
+
"special": true
|
| 43 |
+
}
|
| 44 |
+
},
|
| 45 |
+
"bos_token": "<s>",
|
| 46 |
+
"clean_up_tokenization_spaces": true,
|
| 47 |
+
"cls_token": "<s>",
|
| 48 |
+
"eos_token": "</s>",
|
| 49 |
+
"errors": "replace",
|
| 50 |
+
"mask_token": "<mask>",
|
| 51 |
+
"model_max_length": 512,
|
| 52 |
+
"pad_token": "<pad>",
|
| 53 |
+
"sep_token": "</s>",
|
| 54 |
+
"tokenizer_class": "RobertaTokenizer",
|
| 55 |
+
"trim_offsets": true,
|
| 56 |
+
"unk_token": "<unk>"
|
| 57 |
+
}
|
trainer_state.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": 0.1515924334526062,
|
| 3 |
+
"best_model_checkpoint": "multi_label_classification/checkpoint-920",
|
| 4 |
+
"epoch": 1.0,
|
| 5 |
+
"eval_steps": 500,
|
| 6 |
+
"global_step": 920,
|
| 7 |
+
"is_hyper_param_search": false,
|
| 8 |
+
"is_local_process_zero": true,
|
| 9 |
+
"is_world_process_zero": true,
|
| 10 |
+
"log_history": [
|
| 11 |
+
{
|
| 12 |
+
"epoch": 0.54,
|
| 13 |
+
"grad_norm": 0.6740130186080933,
|
| 14 |
+
"learning_rate": 9.130434782608697e-06,
|
| 15 |
+
"loss": 0.2184,
|
| 16 |
+
"step": 500
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"epoch": 1.0,
|
| 20 |
+
"eval_accuracy": 0.9496937882764654,
|
| 21 |
+
"eval_f1": 0.3383199079401611,
|
| 22 |
+
"eval_loss": 0.1515924334526062,
|
| 23 |
+
"eval_precision": 0.6901408450704225,
|
| 24 |
+
"eval_recall": 0.22408536585365854,
|
| 25 |
+
"eval_runtime": 7.3746,
|
| 26 |
+
"eval_samples_per_second": 51.664,
|
| 27 |
+
"eval_steps_per_second": 17.221,
|
| 28 |
+
"step": 920
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"logging_steps": 500,
|
| 32 |
+
"max_steps": 920,
|
| 33 |
+
"num_input_tokens_seen": 0,
|
| 34 |
+
"num_train_epochs": 1,
|
| 35 |
+
"save_steps": 500,
|
| 36 |
+
"total_flos": 717687827063532.0,
|
| 37 |
+
"train_batch_size": 3,
|
| 38 |
+
"trial_name": null,
|
| 39 |
+
"trial_params": null
|
| 40 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:704a35c91e17fdf47384e274f9b04d6084bec671be91cd7bf7c6a1903a15d35f
|
| 3 |
+
size 4920
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|