Instructions to use BERRAMOU/camembert-math-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BERRAMOU/camembert-math-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="BERRAMOU/camembert-math-classification")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("BERRAMOU/camembert-math-classification") model = AutoModelForSequenceClassification.from_pretrained("BERRAMOU/camembert-math-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse files- README.md +12 -13
- model.safetensors +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -18,13 +18,13 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [camembert-base](https://huggingface.co/camembert-base) on an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
-
- Loss:
|
| 22 |
-
- F1 Macro:
|
| 23 |
-
- F1 Weighted:
|
| 24 |
-
- F1 Correct:
|
| 25 |
-
- F1 Partiel:
|
| 26 |
-
- F1 Incorrect:
|
| 27 |
-
- Accuracy:
|
| 28 |
|
| 29 |
## Model description
|
| 30 |
|
|
@@ -50,18 +50,17 @@ The following hyperparameters were used during training:
|
|
| 50 |
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 51 |
- lr_scheduler_type: linear
|
| 52 |
- lr_scheduler_warmup_steps: 0.1
|
| 53 |
-
- num_epochs:
|
| 54 |
- mixed_precision_training: Native AMP
|
| 55 |
|
| 56 |
### Training results
|
| 57 |
|
| 58 |
| Training Loss | Epoch | Step | Validation Loss | F1 Macro | F1 Weighted | F1 Correct | F1 Partiel | F1 Incorrect | Accuracy |
|
| 59 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:-----------:|:----------:|:----------:|:------------:|:--------:|
|
| 60 |
-
| No log | 1.0 | 15 |
|
| 61 |
-
|
|
| 62 |
-
|
|
| 63 |
-
|
|
| 64 |
-
| 0.4057 | 5.0 | 75 | 0.3074 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 65 |
|
| 66 |
|
| 67 |
### Framework versions
|
|
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [camembert-base](https://huggingface.co/camembert-base) on an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 1.6519
|
| 22 |
+
- F1 Macro: 0.6973
|
| 23 |
+
- F1 Weighted: 0.7076
|
| 24 |
+
- F1 Correct: 0.8571
|
| 25 |
+
- F1 Partiel: 0.8
|
| 26 |
+
- F1 Incorrect: 0.4348
|
| 27 |
+
- Accuracy: 0.75
|
| 28 |
|
| 29 |
## Model description
|
| 30 |
|
|
|
|
| 50 |
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 51 |
- lr_scheduler_type: linear
|
| 52 |
- lr_scheduler_warmup_steps: 0.1
|
| 53 |
+
- num_epochs: 4
|
| 54 |
- mixed_precision_training: Native AMP
|
| 55 |
|
| 56 |
### Training results
|
| 57 |
|
| 58 |
| Training Loss | Epoch | Step | Validation Loss | F1 Macro | F1 Weighted | F1 Correct | F1 Partiel | F1 Incorrect | Accuracy |
|
| 59 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:-----------:|:----------:|:----------:|:------------:|:--------:|
|
| 60 |
+
| No log | 1.0 | 15 | 2.1103 | 0.1905 | 0.2286 | 0.0 | 0.5714 | 0.0 | 0.4 |
|
| 61 |
+
| 2.1496 | 2.0 | 30 | 1.9187 | 0.2928 | 0.3228 | 0.2857 | 0.5926 | 0.0 | 0.45 |
|
| 62 |
+
| 2.0111 | 3.0 | 45 | 1.7323 | 0.7855 | 0.7870 | 0.9412 | 0.8 | 0.6154 | 0.8 |
|
| 63 |
+
| 1.8019 | 4.0 | 60 | 1.6519 | 0.6973 | 0.7076 | 0.8571 | 0.8 | 0.4348 | 0.75 |
|
|
|
|
| 64 |
|
| 65 |
|
| 66 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 442521156
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f1fd8ea1fc9e0427bb286e697e31e6d8253a6f35dfdaaed457312b3ee34c8b5
|
| 3 |
size 442521156
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5329
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c93c94431ed1b105cf39b8089e751149a67138ab2f457268e1b123bce0d578a9
|
| 3 |
size 5329
|