Instructions to use Wb-az/peft-opt-350m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Wb-az/peft-opt-350m with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("facebook/opt-350m") model = PeftModel.from_pretrained(base_model, "Wb-az/peft-opt-350m") - Transformers
How to use Wb-az/peft-opt-350m with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Wb-az/peft-opt-350m", dtype="auto") - Notebooks
- Google Colab
- Kaggle
peft-opt-350m
This model is a fine-tuned version of facebook/opt-350m on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.1054
- Accuracy: 0.9808
- Matthews Correlation: 0.9744
- F1: 0.9654
- Precision: 0.9620
- Recall: 0.9691
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: 0.0001
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 32
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 1
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Matthews Correlation | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|---|
| 4.3269 | 0.1977 | 1400 | 0.5872 | 0.8729 | 0.8336 | 0.8248 | 0.8057 | 0.8566 |
| 3.3421 | 0.3954 | 2800 | 0.4799 | 0.9599 | 0.9469 | 0.9387 | 0.9298 | 0.9494 |
| 1.3997 | 0.5931 | 4200 | 0.2904 | 0.9703 | 0.9608 | 0.9487 | 0.9502 | 0.9508 |
| 1.1424 | 0.7908 | 5600 | 0.1853 | 0.9762 | 0.9684 | 0.9577 | 0.9495 | 0.9688 |
| 0.8520 | 0.9885 | 7000 | 0.1054 | 0.9808 | 0.9744 | 0.9654 | 0.9620 | 0.9691 |
Framework versions
- PEFT 0.18.1
- Transformers 5.2.0
- Pytorch 2.10.0+cu128
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 2
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for Wb-az/peft-opt-350m
Base model
facebook/opt-350m