Instructions to use eclec/patentClassfication3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use eclec/patentClassfication3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="eclec/patentClassfication3")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("eclec/patentClassfication3") model = AutoModelForSequenceClassification.from_pretrained("eclec/patentClassfication3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from eclec/patentClassfication3: direct link, hf CLI and curl.
- Browser
- Download file 1.58 kB
-
https://huggingface.co/eclec/patentClassfication3/resolve/refs%2Fpr%2F2/README.md
- Command line
-
hf download hf://eclec/patentClassfication3@refs/pr/2/README.md
-
curl -L -o README.md https://huggingface.co/eclec/patentClassfication3/resolve/refs%2Fpr%2F2/README.md
1.58 kB
metadata
base_model: allenai/scibert_scivocab_uncased
tags:
- generated_from_trainer
metrics:
- accuracy
model-index:
- name: patentClassfication3
results: []
patentClassfication3
This model is a fine-tuned version of allenai/scibert_scivocab_uncased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.5828
- Accuracy: 0.6901
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2.51444e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 61
- gradient_accumulation_steps: 8
- total_train_batch_size: 64
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: cosine
- lr_scheduler_warmup_ratio: 0.1
- lr_scheduler_warmup_steps: 240
- num_epochs: 2
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.6511 | 1.0 | 554 | 0.6841 | 0.6125 |
| 0.5721 | 2.0 | 1108 | 0.5828 | 0.6901 |
Framework versions
- Transformers 4.31.0
- Pytorch 2.0.0
- Datasets 2.14.4
- Tokenizers 0.13.3