Instructions to use bubai567/nifty_bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bubai567/nifty_bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="bubai567/nifty_bert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("bubai567/nifty_bert") model = AutoModelForSequenceClassification.from_pretrained("bubai567/nifty_bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress epoch 0
Browse files- README.md +10 -10
- config.json +1 -1
- tf_model.h5 +1 -1
README.md
CHANGED
|
@@ -15,15 +15,16 @@ probably proofread and complete it, then remove this comment. -->
|
|
| 15 |
|
| 16 |
This model is a fine-tuned version of [nlpaueb/legal-bert-small-uncased](https://huggingface.co/nlpaueb/legal-bert-small-uncased) on an unknown dataset.
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
-
- Train Loss: 0.
|
| 19 |
-
- Train Accuracy: 0.
|
| 20 |
-
- Validation Loss: 0.
|
| 21 |
-
- Validation Accuracy: 0.
|
| 22 |
-
- Epoch:
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
| 26 |
-
|
|
|
|
| 27 |
## Intended uses & limitations
|
| 28 |
|
| 29 |
More information needed
|
|
@@ -37,20 +38,19 @@ More information needed
|
|
| 37 |
### Training hyperparameters
|
| 38 |
|
| 39 |
The following hyperparameters were used during training:
|
| 40 |
-
- optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': False, 'is_legacy_optimizer': False, 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps':
|
| 41 |
- training_precision: float32
|
| 42 |
|
| 43 |
### Training results
|
| 44 |
|
| 45 |
| Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
|
| 46 |
|:----------:|:--------------:|:---------------:|:-------------------:|:-----:|
|
| 47 |
-
| 0.
|
| 48 |
-
| 0.0147 | 0.9962 | 0.0152 | 0.9964 | 1 |
|
| 49 |
|
| 50 |
|
| 51 |
### Framework versions
|
| 52 |
|
| 53 |
-
- Transformers 4.33.
|
| 54 |
- TensorFlow 2.13.0
|
| 55 |
- Datasets 2.14.5
|
| 56 |
- Tokenizers 0.13.3
|
|
|
|
| 15 |
|
| 16 |
This model is a fine-tuned version of [nlpaueb/legal-bert-small-uncased](https://huggingface.co/nlpaueb/legal-bert-small-uncased) on an unknown dataset.
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
+
- Train Loss: 0.1528
|
| 19 |
+
- Train Accuracy: 0.9651
|
| 20 |
+
- Validation Loss: 0.0509
|
| 21 |
+
- Validation Accuracy: 0.9914
|
| 22 |
+
- Epoch: 0
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
## Intended uses & limitations
|
| 29 |
|
| 30 |
More information needed
|
|
|
|
| 38 |
### Training hyperparameters
|
| 39 |
|
| 40 |
The following hyperparameters were used during training:
|
| 41 |
+
- optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': False, 'is_legacy_optimizer': False, 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 608, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
|
| 42 |
- training_precision: float32
|
| 43 |
|
| 44 |
### Training results
|
| 45 |
|
| 46 |
| Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
|
| 47 |
|:----------:|:--------------:|:---------------:|:-------------------:|:-----:|
|
| 48 |
+
| 0.1528 | 0.9651 | 0.0509 | 0.9914 | 0 |
|
|
|
|
| 49 |
|
| 50 |
|
| 51 |
### Framework versions
|
| 52 |
|
| 53 |
+
- Transformers 4.33.2
|
| 54 |
- TensorFlow 2.13.0
|
| 55 |
- Datasets 2.14.5
|
| 56 |
- Tokenizers 0.13.3
|
config.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
| 30 |
"output_past": true,
|
| 31 |
"pad_token_id": 0,
|
| 32 |
"position_embedding_type": "absolute",
|
| 33 |
-
"transformers_version": "4.33.
|
| 34 |
"type_vocab_size": 2,
|
| 35 |
"use_cache": true,
|
| 36 |
"vocab_size": 30522
|
|
|
|
| 30 |
"output_past": true,
|
| 31 |
"pad_token_id": 0,
|
| 32 |
"position_embedding_type": "absolute",
|
| 33 |
+
"transformers_version": "4.33.2",
|
| 34 |
"type_vocab_size": 2,
|
| 35 |
"use_cache": true,
|
| 36 |
"vocab_size": 30522
|
tf_model.h5
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 140427828
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a280dea548e07490d0bd57848feef973d3a585b0c4b54912af48059b62ece449
|
| 3 |
size 140427828
|