Instructions to use eng-ong/ft-bert-base-uncased-for-binary-search with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use eng-ong/ft-bert-base-uncased-for-binary-search with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="eng-ong/ft-bert-base-uncased-for-binary-search")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("eng-ong/ft-bert-base-uncased-for-binary-search") model = AutoModelForSequenceClassification.from_pretrained("eng-ong/ft-bert-base-uncased-for-binary-search", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +12 -11
- config.json +1 -1
- model.safetensors +1 -1
- training_args.bin +2 -2
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
-
base_model: bert-base-uncased
|
| 3 |
library_name: transformers
|
| 4 |
license: apache-2.0
|
|
|
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
model-index:
|
|
@@ -16,7 +16,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 16 |
|
| 17 |
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the https://www.kaggle.com/datasets/skywardai/network-vulnerability dataset.
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
-
- Loss: 0.
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
@@ -35,25 +35,26 @@ More information needed
|
|
| 35 |
### Training hyperparameters
|
| 36 |
|
| 37 |
The following hyperparameters were used during training:
|
| 38 |
-
- learning_rate:
|
| 39 |
- train_batch_size: 16
|
| 40 |
- eval_batch_size: 16
|
| 41 |
- seed: 42
|
| 42 |
-
- optimizer:
|
| 43 |
- lr_scheduler_type: linear
|
| 44 |
-
- num_epochs:
|
| 45 |
|
| 46 |
### Training results
|
| 47 |
|
| 48 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 49 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 50 |
-
| 0.
|
| 51 |
-
| 0.
|
|
|
|
| 52 |
|
| 53 |
|
| 54 |
### Framework versions
|
| 55 |
|
| 56 |
-
- Transformers 4.
|
| 57 |
-
- Pytorch 2.
|
| 58 |
-
- Datasets 3.
|
| 59 |
-
- Tokenizers 0.20.
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
+
base_model: bert-base-uncased
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
model-index:
|
|
|
|
| 16 |
|
| 17 |
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the https://www.kaggle.com/datasets/skywardai/network-vulnerability dataset.
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
+
- Loss: 0.2093
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
|
|
| 35 |
### Training hyperparameters
|
| 36 |
|
| 37 |
The following hyperparameters were used during training:
|
| 38 |
+
- learning_rate: 2e-05
|
| 39 |
- train_batch_size: 16
|
| 40 |
- eval_batch_size: 16
|
| 41 |
- seed: 42
|
| 42 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 43 |
- lr_scheduler_type: linear
|
| 44 |
+
- num_epochs: 3
|
| 45 |
|
| 46 |
### Training results
|
| 47 |
|
| 48 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 49 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 50 |
+
| 0.2688 | 1.0 | 63 | 0.1958 |
|
| 51 |
+
| 0.2261 | 2.0 | 126 | 0.2015 |
|
| 52 |
+
| 0.2199 | 3.0 | 189 | 0.2093 |
|
| 53 |
|
| 54 |
|
| 55 |
### Framework versions
|
| 56 |
|
| 57 |
+
- Transformers 4.45.1
|
| 58 |
+
- Pytorch 2.4.0+cpu
|
| 59 |
+
- Datasets 3.0.1
|
| 60 |
+
- Tokenizers 0.20.0
|
config.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
"position_embedding_type": "absolute",
|
| 21 |
"problem_type": "single_label_classification",
|
| 22 |
"torch_dtype": "float32",
|
| 23 |
-
"transformers_version": "4.
|
| 24 |
"type_vocab_size": 2,
|
| 25 |
"use_cache": true,
|
| 26 |
"vocab_size": 30522
|
|
|
|
| 20 |
"position_embedding_type": "absolute",
|
| 21 |
"problem_type": "single_label_classification",
|
| 22 |
"torch_dtype": "float32",
|
| 23 |
+
"transformers_version": "4.45.1",
|
| 24 |
"type_vocab_size": 2,
|
| 25 |
"use_cache": true,
|
| 26 |
"vocab_size": 30522
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 437958648
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94adddc97c4b4c75459fce659eadd7a1b82c6b7c5d5fe320764a11d7e690aa92
|
| 3 |
size 437958648
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4b45161449c6a19385aed3501f61d124734f219e7163bd5d7418a76fd87469d
|
| 3 |
+
size 5240
|